efi: remove duplicate 'const' specifiers
PATCH 1/1 efi: remove duplicate 'const' specifiers
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.
--- drivers/firmware/efi/libstub/secureboot.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/firmware/efi/libstub/secureboot.c +2 -2
@@ -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 };
Signature · 1 line
2.9.0
Quoted 10 lines · Arnd Bergmann
gcc-7 shows a harmless warning:
drivers/firmware/efi/libstub/secureboot.c:19:27: error: duplicate 'const' declaration specifier [-Werror=duplicate-decl-specifier]
static constefi_char16_tconst 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 <[email protected]>
Quoted 24 lines
--- drivers/firmware/efi/libstub/secureboot.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/firmware/efi/libstub/secureboot.c +2
-3@@ -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 }; --2.9.0
Quoted 10 lines · Arnd Bergmann
gcc-7 shows a harmless warning:
drivers/firmware/efi/libstub/secureboot.c:19:27: error: duplicate 'const' declaration specifier [-Werror=duplicate-decl-specifier]
static constefi_char16_tconst 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 <[email protected]>
Matt Fleming
AppliedQuoted 6 lines · Arnd Bergmann
gcc-7 shows a harmless warning:
drivers/firmware/efi/libstub/secureboot.c:19:27: error: duplicate 'const' declaration specifier [-Werror=duplicate-decl-specifier]
static constefi_char16_tconst efi_SecureBoot_name[] = {drivers/firmware/efi/libstub/secureboot.c:22:27: error: duplicate 'const' declaration specifier [-Werror=duplicate-decl-specifier]
Quoted 7 lines
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 <[email protected]>--- drivers/firmware/efi/libstub/secureboot.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Thanks, applied to the urgent queue.