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 <heinrich.schuchardt@canonical.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Heinrich Schuchardt
2024-01-03 09:07:20 +01:00
parent 1b6228f28d
commit efe441a0a3
3 changed files with 7 additions and 5 deletions

View File

@@ -5,8 +5,11 @@
#define LOG_CATEGORY LOGC_BOOT
#include <errno.h>
#include <smbios.h>
#include <string.h>
#include <tables_csum.h>
#include <linux/kernel.h>
const struct smbios_entry *smbios_entry(u64 address, u32 size)
{