summaryrefslogtreecommitdiff
path: root/NetworkPkg/Library
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2024-11-18 10:19:48 +0100
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2024-12-04 22:25:37 +0000
commit2940708eb27a6b6f6c1adc1510fbd85a9055b447 (patch)
treed161aff118ebfa01fef7ae68f66747008d94bb46 /NetworkPkg/Library
parentd31fd8bcb7577d8faa35bbe3007f73dbe71722cb (diff)
downloadedk2-2940708eb27a6b6f6c1adc1510fbd85a9055b447.zip
edk2-2940708eb27a6b6f6c1adc1510fbd85a9055b447.tar.gz
edk2-2940708eb27a6b6f6c1adc1510fbd85a9055b447.tar.bz2
NetworkPkg/DxeNetLib: 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>
Diffstat (limited to 'NetworkPkg/Library')
-rw-r--r--NetworkPkg/Library/DxeNetLib/DxeNetLib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/NetworkPkg/Library/DxeNetLib/DxeNetLib.c b/NetworkPkg/Library/DxeNetLib/DxeNetLib.c
index 9acc21c..eef3386 100644
--- a/NetworkPkg/Library/DxeNetLib/DxeNetLib.c
+++ b/NetworkPkg/Library/DxeNetLib/DxeNetLib.c
@@ -144,7 +144,7 @@ GLOBAL_REMOVE_IF_UNREFERENCED VLAN_DEVICE_PATH mNetVlanDevicePathTemplate = {
// If your platform needs to use a specific algorithm for the random number
// generator, then you should modify this array.
//
-static GLOBAL_REMOVE_IF_UNREFERENCED EFI_GUID *mSecureHashAlgorithms[] = {
+static EFI_GUID *CONST mSecureHashAlgorithms[] = {
&gEfiRngAlgorithmSp80090Ctr256Guid, // SP800-90A DRBG CTR using AES-256
&gEfiRngAlgorithmSp80090Hmac256Guid, // SP800-90A DRBG HMAC using SHA-256
&gEfiRngAlgorithmSp80090Hash256Guid, // SP800-90A DRBG Hash using SHA-256