x86/efi: remove unused variables
Subsystems (4)
PATCH 1/1 x86/efi: remove unused variables
commit ad723674d675 ("x86/efi: move common keyring handler functions to new file") leave this unused.
Reported-by Hulk Robot <[email protected]>
Signed-off-by YueHaibing <[email protected]>
--- security/integrity/platform_certs/load_uefi.c | 5 ----- 1 file changed, 5 deletions(-)
security/integrity/platform_certs/load_uefi.c +0 -5
@@ -11,11 +11,6 @@#include "../integrity.h" #include "keyring_handler.h" -static efi_guid_t efi_cert_x509_guid__initdata =EFI_CERT_X509_GUID ; -static efi_guid_t efi_cert_x509_sha256_guid__initdata = -EFI_CERT_X509_SHA256_GUID ; -static efi_guid_t efi_cert_sha256_guid__initdata =EFI_CERT_SHA256_GUID ; -/* * Look to see if a UEFI variable called MokIgnoreDB exists and return true if * it does.
Signature · 1 line
2.7.4
Quoted 8 lines · YueHaibing
commit
ad723674d675("x86/efi: move common keyring handler functions to new file") leave this unused.Reported-by Hulk Robot <[email protected]>Signed-off-by YueHaibing <[email protected]>--- security/integrity/platform_certs/load_uefi.c | 5 ----- 1 file changed, 5 deletions(-)
Thanks for spotting this, my x86 test builds did trigger it, but I didn't notice the new warnings.
I've picked this up into the powerpc tree, as that's where the offending commit is.
cheers
Quoted 18 lines
security/integrity/platform_certs/load_uefi.c +0
-5@@ -11,11 +11,6 @@#include "../integrity.h" #include "keyring_handler.h" -static efi_guid_t efi_cert_x509_guid__initdata =EFI_CERT_X509_GUID ; -static efi_guid_t efi_cert_x509_sha256_guid__initdata = -EFI_CERT_X509_SHA256_GUID ; -static efi_guid_t efi_cert_sha256_guid__initdata =EFI_CERT_SHA256_GUID ; -/* * Look to see if a UEFI variable called MokIgnoreDB exists and return true if * it does. Signature · 1 line
2.7.4
Quoted 15 lines · YueHaibing
commit
ad723674d675("x86/efi: move common keyring handler functions to new file") leave this unused.Reported-by Hulk Robot <[email protected]>Signed-off-by YueHaibing <[email protected]>--- security/integrity/platform_certs/load_uefi.c | 5 ----- 1 file changed, 5 deletions(-)security/integrity/platform_certs/load_uefi.c +0
-0@@ -11,11 +11,6 @@#include "../integrity.h"
security/integrity/platform_certs/load_uefi.c line 16
Quoted 10 lines
security/integrity/platform_certs/load_uefi.c +0
-5#include "keyring_handler.h" -static efi_guid_t efi_cert_x509_guid__initdata =EFI_CERT_X509_GUID ; -static efi_guid_t efi_cert_x509_sha256_guid__initdata = -EFI_CERT_X509_SHA256_GUID ; -static efi_guid_t efi_cert_sha256_guid__initdata =EFI_CERT_SHA256_GUID ; -/* * Look to see if a UEFI variable called MokIgnoreDB exists and return true if * it does.
Thanks for noticing and fixing this.
Thanks & Regards,
- Nayna