diff options
| author | Heinrich Schuchardt <[email protected]> | 2024-01-03 09:07:20 +0100 |
|---|---|---|
| committer | Heinrich Schuchardt <[email protected]> | 2024-01-09 10:09:15 +0100 |
| commit | efe441a0a3ad852b7f6921898775ed57f83f15d9 (patch) | |
| tree | c498d4fcd26f3b4f3f738da9dbc79f00010d8cb8 /lib | |
| parent | 1b6228f28d9336620fb508ed198ad8be1eb7aa9c (diff) | |
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 <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/efi_loader/efi_smbios.c | 3 | ||||
| -rw-r--r-- | lib/smbios-parser.c | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/lib/efi_loader/efi_smbios.c b/lib/efi_loader/efi_smbios.c index eb6d2ba43c9..b2ec1f79194 100644 --- a/lib/efi_loader/efi_smbios.c +++ b/lib/efi_loader/efi_smbios.c @@ -13,6 +13,9 @@ #include <mapmem.h> #include <smbios.h> #include <linux/sizes.h> +#include <asm/global_data.h> + +DECLARE_GLOBAL_DATA_PTR; const efi_guid_t smbios3_guid = SMBIOS3_TABLE_GUID; 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 <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) { |
