summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2024-11-18 10:20:55 +0100
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2024-12-04 22:25:37 +0000
commitd31fd8bcb7577d8faa35bbe3007f73dbe71722cb (patch)
treec31e6767b5792ee079a90b4d1069b2e93b37a6f5
parent061bccff3a22e62833599d4d77790fd2ba962897 (diff)
downloadedk2-d31fd8bcb7577d8faa35bbe3007f73dbe71722cb.tar.gz
MdePkg/DxeRngLib: drop GLOBAL_REMOVE_IF_UNREFERENCED
With mSecureHashAlgorithms being static this should not be needed any more. Suggested-by: Ard Biesheuvel <ardb@kernel.org> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
-rw-r--r--MdePkg/Library/DxeRngLib/DxeRngLib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/MdePkg/Library/DxeRngLib/DxeRngLib.c b/MdePkg/Library/DxeRngLib/DxeRngLib.c
index c0644d3c5e..4c1b5721ea 100644
--- a/MdePkg/Library/DxeRngLib/DxeRngLib.c
+++ b/MdePkg/Library/DxeRngLib/DxeRngLib.c
@@ -32,7 +32,7 @@ typedef struct {
// These represent UEFI SPEC defined algorithms that should be supported by
// the RNG protocol and are generally considered secure.
//
-static GLOBAL_REMOVE_IF_UNREFERENCED SECURE_RNG_ALGO_ARRAY mSecureHashAlgorithms[] = {
+static SECURE_RNG_ALGO_ARRAY mSecureHashAlgorithms[] = {
#ifdef MDE_CPU_AARCH64
{
&gEfiRngAlgorithmArmRndr, // unspecified SP800-90A DRBG (through RNDR instr.)