From efe441a0a3ad852b7f6921898775ed57f83f15d9 Mon Sep 17 00:00:00 2001 From: Heinrich Schuchardt Date: Wed, 3 Jan 2024 09:07:20 +0100 Subject: smbios: smbios.h should not import ofnode.h The smbios.h include does not use any definitions from ofnode.h. So don't include it. As DECLARE_GLOBAL_DATA_PTR is no longer defined via dm/of.h we need to add it to efi_smbios.c. Add now missing includes to smbios-parser.c. Remove a superfluous check comparing the sizes of the SMBIOS 2.1 and SMBIOS 3.0 anchors. Signed-off-by: Heinrich Schuchardt Reviewed-by: Simon Glass --- lib/smbios-parser.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/smbios-parser.c') diff --git a/lib/smbios-parser.c b/lib/smbios-parser.c index 4a3732bcf2e..e1180efae18 100644 --- a/lib/smbios-parser.c +++ b/lib/smbios-parser.c @@ -5,8 +5,11 @@ #define LOG_CATEGORY LOGC_BOOT +#include #include +#include #include +#include const struct smbios_entry *smbios_entry(u64 address, u32 size) { -- cgit v1.2.3