From patchwork Thu May 11 11:43:17 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 99616 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp685860qge; Thu, 11 May 2017 04:43:51 -0700 (PDT) X-Received: by 10.98.57.212 with SMTP id u81mr12140853pfj.9.1494503031833; Thu, 11 May 2017 04:43:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1494503031; cv=none; d=google.com; s=arc-20160816; b=lXrdiuhrxjsodDaLeEwZz7OopRZHWxx7HRo3IfYfJ03emA+AbwQoHDmWK5F2Kx2R2w VzL2osQzf3QwCDnxYls7/AQrTEOX1C+G7TgdjOnDR5kICmDCIp6XtHhTp6qDs+x7PMrZ tgwjw2kHrA4E4z6ODKtV4SyDZAosFT8WG+SXDvAZ/pSRz7qV6IeSyF3xMe1VdJronIPX dJ2/K36WFMAKXj8T7NV/62AwEPPSgamqkp7YgkF8MqFZvucvvDVqtLBrCxuAFyysjeh5 dnEqcA8gvmQk1e5VWh2udYc4ah97964KM7rW2pCq+HEoKUVTIGAV5wBG3vq0rw53P9pX wGCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=ESfyNYJ9LBy/mf3DlmG1f2uw3ttP4rIormE4euwragg=; b=rSki75GYDi2xVg+Mb692FpjOfWQJOQP4Wrme1JOM57OLQWePot1p+nzFlNd64WvhWU ud4uAn2iWOxGj8kpj5yYJlWsp0SFGgbjS8ltnhOkFCsNkmJvQrqCqpEo55v3BrCWqSXE swO2+QHlGYkj/7d5Abk9U4REu1tImHNw5ahNEPSkybYZbeqN3vkEGNCZ3hxP4gGQ1EKN J3fXA57AWz2aCTJE6rqGhB1u9LYlx+d95W0LysTpwK/Q3xs/WD6MzqBnzptZS7oZw3df HHUZ2p8dS3jf8PKag3dq/P2OWyLRl1/o+qFhBiIdktYczrjULDDLAmxmLiDqGncCweUh Nh4w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-efi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-efi-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 133si228243pgb.29.2017.05.11.04.43.51; Thu, 11 May 2017 04:43:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-efi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-efi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-efi-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932426AbdEKLnv (ORCPT + 2 others); Thu, 11 May 2017 07:43:51 -0400 Received: from mout.kundenserver.de ([212.227.126.134]:52012 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932370AbdEKLnt (ORCPT ); Thu, 11 May 2017 07:43:49 -0400 Received: from wuerfel.lan ([78.42.17.5]) by mrelayeu.kundenserver.de (mreue002 [212.227.15.129]) with ESMTPA (Nemesis) id 0Lq1p2-1ddjbu3HtI-00dpvp; Thu, 11 May 2017 13:43:38 +0200 From: Arnd Bergmann To: Matt Fleming , Ard Biesheuvel Cc: Arnd Bergmann , Ingo Molnar , David Howells , Josh Boyer , linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] efi: remove duplicate 'const' specifiers Date: Thu, 11 May 2017 13:43:17 +0200 Message-Id: <20170511114337.2803599-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:kRFbEVrzzNQCW0IOKhRfWxfa9omBEdr9/8/5maXUWxm4ABklOu8 tjy5+D7DKsjhCsHHrEB4NTbQUoIeQj/bhGSDNaPrnhnFxmud+XL3mq5YxLWj00jIk7yH6qJ H7v3jQpQv6WojzTiRr34Fuynuy2IX/+wh3WuKmwi17YpLWbmn7TeRzVqHdGXz2JVWh1M8qB owLnbg5vvxoTkrsduDN4w== X-UI-Out-Filterresults: notjunk:1; V01:K0:TJiCZZFDAnE=:jyC9GtvzhlOSi1l1c6I9/U 4RjCLputhijQiSkZSUfOWITauXMxzQ3Leor+RHuPiOuxrVhhT09ZqNi+V1tbXjUzeA0Lfekyn L9QTT3KEsC1pkCw4S4fCdpUlYxJVjoOC7SLd8bl4u4wZ2cJy8SaUnTrbGFsEJFiev93291jMv qsCVnPg7MaDLr6dEqNx59ZrtM95fTUtnkLbEwWwILaFJv1EVwS6NFxn1E05yn5W8Jkx3KLIPZ 2BO1asYnnv5KuEBSdjU3qwiOh/1lFRnPaeygDtQmupGCwWJdqXZxj/ebAGHfErfRmADurOrfr xii0bXf4GKOBpkseSRnYb4KrEkVfCCT2c3DRyEOdwhQT0s5JYJqVEF/EIIigAV3vbgGG8jx2K 5XSlOxJQZ1An0Wjmu+kuKFXcUNvbdrXE5Yqqm0FZjXxYgK2/UdaOFPlwjJQFwvhEsjBn3fjTH 2VjmLZqqqj8DXhuvvDItufvk0cpNl6jZCiFVxxfK1s9miaxiFy2kX46jOKqaO2ylghcckMy/K 2mhFNZt7QZeKhWWcx18AGfSGFYWS377ihIGQ3XJj54p+R3S3/ZiggNMQ7SYhKjwLfR1jUPz1D HNMTnRTZApXjklOXMqyh8Ygz90v/nRy5/XpPqw+FnHSkmTQqqO4dT1P4dV4Rx+bqh1qwJNrHM FSlAJOrac/NOmyIIHAEXZGirjSxQZJ8e6m0DbFA/sbj5v9HfoBhK+ZGQ93zGXFnXho3I= Sender: linux-efi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-efi@vger.kernel.org gcc-7 shows a harmless warning: drivers/firmware/efi/libstub/secureboot.c:19:27: error: duplicate 'const' declaration specifier [-Werror=duplicate-decl-specifier] static const efi_char16_t const efi_SecureBoot_name[] = { drivers/firmware/efi/libstub/secureboot.c:22:27: error: duplicate 'const' declaration specifier [-Werror=duplicate-decl-specifier] Removing one of the specifiers gives us the expected behavior. Fixes: de8cb458625c ("efi: Get and store the secure boot status") Signed-off-by: Arnd Bergmann --- drivers/firmware/efi/libstub/secureboot.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.9.0 -- To unsubscribe from this list: send the line "unsubscribe linux-efi" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Reviewed-by: David Howells diff --git a/drivers/firmware/efi/libstub/secureboot.c b/drivers/firmware/efi/libstub/secureboot.c index 8c34d50a4d80..959777ec8a77 100644 --- a/drivers/firmware/efi/libstub/secureboot.c +++ b/drivers/firmware/efi/libstub/secureboot.c @@ -16,10 +16,10 @@ /* BIOS variables */ static const efi_guid_t efi_variable_guid = EFI_GLOBAL_VARIABLE_GUID; -static const efi_char16_t const efi_SecureBoot_name[] = { +static const efi_char16_t efi_SecureBoot_name[] = { 'S', 'e', 'c', 'u', 'r', 'e', 'B', 'o', 'o', 't', 0 }; -static const efi_char16_t const efi_SetupMode_name[] = { +static const efi_char16_t efi_SetupMode_name[] = { 'S', 'e', 't', 'u', 'p', 'M', 'o', 'd', 'e', 0 };