From f8988a5e457a2e9342204414425acb3579e4f646 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 20 Dec 2024 12:03:50 +0100 Subject: [PATCH] chid-fundamental: make namespace GUID static, too --- src/fundamental/chid-fundamental.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fundamental/chid-fundamental.c b/src/fundamental/chid-fundamental.c index ab366ca8ee..4e2b229bd7 100644 --- a/src/fundamental/chid-fundamental.c +++ b/src/fundamental/chid-fundamental.c @@ -35,11 +35,11 @@ static void get_chid( assert(mask != 0); assert(ret_chid); - const EFI_GUID namespace = { UINT32_C(0x12d8ff70), UINT16_C(0x7f4c), UINT16_C(0x7d4c), {} }; /* Swapped to BE */ struct sha1_ctx ctx = {}; sha1_init_ctx(&ctx); + static const EFI_GUID namespace = { UINT32_C(0x12d8ff70), UINT16_C(0x7f4c), UINT16_C(0x7d4c), {} }; /* Swapped to BE */ sha1_process_bytes(&namespace, sizeof(namespace), &ctx); for (unsigned i = 0; i < _CHID_SMBIOS_FIELDS_MAX; i++) {