From 4f8bdb060a2915587ac15093f492f0d9784e56f4 Mon Sep 17 00:00:00 2001
From: Vladimir Serbinenko <phco...@gmail.com>
Date: Sat, 8 Jul 2023 08:28:51 +0200
Subject: [PATCH 1/2] smbios: Export grub_smbios_get_eps3 function

Signed-off-by: Vladimir Serbinenko <phco...@gmail.com>
---
 grub-core/commands/smbios.c | 2 +-
 include/grub/smbios.h       | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/grub-core/commands/smbios.c b/grub-core/commands/smbios.c
index 1a9086ddd..8d9b2e548 100644
--- a/grub-core/commands/smbios.c
+++ b/grub-core/commands/smbios.c
@@ -51,7 +51,7 @@ grub_smbios_get_eps (void)
 }
 
 /* Locate the SMBIOS3 entry point structure depending on the hardware. */
-static struct grub_smbios_eps3 *
+struct grub_smbios_eps3 *
 grub_smbios_get_eps3 (void)
 {
   static struct grub_smbios_eps3 *eps = NULL;
diff --git a/include/grub/smbios.h b/include/grub/smbios.h
index 15ec260b3..0dfa7c348 100644
--- a/include/grub/smbios.h
+++ b/include/grub/smbios.h
@@ -65,5 +65,6 @@ extern struct grub_smbios_eps *grub_machine_smbios_get_eps (void);
 extern struct grub_smbios_eps3 *grub_machine_smbios_get_eps3 (void);
 
 extern struct grub_smbios_eps *EXPORT_FUNC (grub_smbios_get_eps) (void);
+extern struct grub_smbios_eps3 *grub_smbios_get_eps3 (void);
 
 #endif /* ! GRUB_SMBIOS_HEADER */
-- 
2.42.0

_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to