From patchwork Fri May 26 20:17:17 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Kees Cook X-Patchwork-Id: 9751099 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 1F57C60246 for ; Fri, 26 May 2017 20:19:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1296028334 for ; Fri, 26 May 2017 20:19:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0770628347; Fri, 26 May 2017 20:19:51 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from mother.openwall.net (mother.openwall.net [195.42.179.200]) by mail.wl.linuxfoundation.org (Postfix) with SMTP id 18A5928334 for ; Fri, 26 May 2017 20:19:49 +0000 (UTC) Received: (qmail 8168 invoked by uid 550); 26 May 2017 20:18:39 -0000 Mailing-List: contact kernel-hardening-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Delivered-To: mailing list kernel-hardening@lists.openwall.com Received: (qmail 8104 invoked from network); 26 May 2017 20:18:38 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=/NCdiaWAtRuUTk8Z4SRmpggNVLy6ZQj0LzvekDq4Rlg=; b=ohn3qNVwu5P8FEsmyN1+annok7g7xEgSsbGKTi3py9q5iqNEZVClQmgnXNm49FYQZY QBl/yOavWIm/OEYvk3/00M4yEScrAjqfQJepF7JZK3h6PqphM0cr8vcn5AGibvzXQfMk HShiv7kfCh2wOCpPoq30BQVGNZWGMo2ycIkDY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=/NCdiaWAtRuUTk8Z4SRmpggNVLy6ZQj0LzvekDq4Rlg=; b=cNy/dsIdJJe/rJNmS8SkCEpYxCCQSyGckgYDygKtBVQfRrF61sF/g2cFSHxFnErDMc 0PbNxxtLua9aeeHHgy6zmGM0Avdi1hyDG0sZFsTXVbQxPCvNu8ph4BEF9uDKTpoE4B9N e4e9i0AF6eY7W0JUW8K01l2pVMvH2QWxJhBUzoSJ1NXQIZ+QhKMk/N6/KMqXBI2QPEY1 doQY4coMIl3isqTlCP3alGC2SShWV2q1Pb5MDZx33X6WiWjh1k7wjMAg7ZZJdJat4U4u RprT1KRRYyFzNNEPd4e5cHI6MW7bMCpj/JqkIAC/zNA15SHAx911mZrptGKN/uxsLo4x oAkg== X-Gm-Message-State: AODbwcDZEcUXWT8NGXXS//i+JU7lPhOJfqR/8NfGstWkkYUCB7mJw1Mo M2ScSiKksTPlyUpW X-Received: by 10.98.214.14 with SMTP id r14mr4449203pfg.156.1495829906393; Fri, 26 May 2017 13:18:26 -0700 (PDT) From: Kees Cook To: kernel-hardening@lists.openwall.com Cc: Kees Cook , Alex Deucher , =?UTF-8?q?Christian=20K=C3=B6nig?= , Laura Abbott , x86@kernel.org, linux-kernel@vger.kernel.org Date: Fri, 26 May 2017 13:17:17 -0700 Message-Id: <1495829844-69341-14-git-send-email-keescook@chromium.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1495829844-69341-1-git-send-email-keescook@chromium.org> References: <1495829844-69341-1-git-send-email-keescook@chromium.org> MIME-Version: 1.0 Subject: [kernel-hardening] [PATCH v2 13/20] drm/amdgpu: Use designated initializers X-Virus-Scanned: ClamAV using ClamSMTP The randstruct plugin requires structures that are entirely function pointers be initialized using designated initializers. Cc: Alex Deucher Cc: Christian König Signed-off-by: Kees Cook --- drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c index a4831fe0223b..a2c59a08b2bd 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c @@ -220,9 +220,9 @@ static void amdgpu_vram_mgr_debug(struct ttm_mem_type_manager *man, } const struct ttm_mem_type_manager_func amdgpu_vram_mgr_func = { - amdgpu_vram_mgr_init, - amdgpu_vram_mgr_fini, - amdgpu_vram_mgr_new, - amdgpu_vram_mgr_del, - amdgpu_vram_mgr_debug + .init = amdgpu_vram_mgr_init, + .takedown = amdgpu_vram_mgr_fini, + .get_node = amdgpu_vram_mgr_new, + .put_node = amdgpu_vram_mgr_del, + .debug = amdgpu_vram_mgr_debug };