Skip to contentSkip to conversation

x86/efi: remove unused variables

PATCH In review YueHaibing 3 participants 3 messages Nov 15, 2019 – Dec 2, 2019

Subsystems (4)
lore
Share & tools
lore

YueHaibing

author
#0 lore raw

PATCH 1/1 x86/efi: remove unused variables

commit ad723674d675 ("x86/efi: move common keyring handler functions to new file") leave this unused.

---
 security/integrity/platform_certs/load_uefi.c | 5 -----
 1 file changed, 5 deletions(-)
security/integrity/platform_certs/load_uefi.c +0 -5
index 4369204..111898a 100644
@@ -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
#1 lore raw
Quoted 8 lines · YueHaibing

commit ad723674d675 ("x86/efi: move common keyring handler functions to new file") leave this unused.

---
 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
index 4369204..111898a 100644
@@ -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
#2 lore raw
In reply to YueHaibing
Quoted 15 lines · YueHaibing

commit ad723674d675 ("x86/efi: move common keyring handler functions to new file") leave this unused.

---
  security/integrity/platform_certs/load_uefi.c | 5 -----
  1 file changed, 5 deletions(-)
security/integrity/platform_certs/load_uefi.c +0 -0
index 4369204..111898a 100644
@@ -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