From 2940708eb27a6b6f6c1adc1510fbd85a9055b447 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Mon, 18 Nov 2024 10:19:48 +0100 Subject: NetworkPkg/DxeNetLib: drop GLOBAL_REMOVE_IF_UNREFERENCED With mSecureHashAlgorithms being static this should not be needed any more. Suggested-by: Ard Biesheuvel Signed-off-by: Gerd Hoffmann --- NetworkPkg/Library/DxeNetLib/DxeNetLib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NetworkPkg/Library/DxeNetLib/DxeNetLib.c b/NetworkPkg/Library/DxeNetLib/DxeNetLib.c index 9acc21caeb..eef3386ebb 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 -- cgit