Re: [PATCH] efi: remove duplicate 'const' specifiers

From: David Howells
Date: Thu May 11 2017 - 11:41:37 EST


Arnd Bergmann <arnd@xxxxxxxx> wrote:

> 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 <arnd@xxxxxxxx>

Reviewed-by: David Howells <dhowells@xxxxxxxxxx>