aboutsummaryrefslogtreecommitdiff
path: root/include/smbios.h
diff options
context:
space:
mode:
authorHeinrich Schuchardt2024-01-03 09:07:20 +0100
committerHeinrich Schuchardt2024-01-09 10:09:15 +0100
commitefe441a0a3ad852b7f6921898775ed57f83f15d9 (patch)
treec498d4fcd26f3b4f3f738da9dbc79f00010d8cb8 /include/smbios.h
parent1b6228f28d9336620fb508ed198ad8be1eb7aa9c (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 <heinrich.schuchardt@canonical.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/smbios.h')
-rw-r--r--include/smbios.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/include/smbios.h b/include/smbios.h
index 49de32fec2d..b507b9d9d72 100644
--- a/include/smbios.h
+++ b/include/smbios.h
@@ -8,7 +8,7 @@
#ifndef _SMBIOS_H_
#define _SMBIOS_H_
-#include <dm/ofnode.h>
+#include <linux/types.h>
/* SMBIOS spec version implemented */
#define SMBIOS_MAJOR_VER 3
@@ -80,10 +80,6 @@ struct __packed smbios3_entry {
u64 struct_table_address;
};
-/* These two structures should use the same amount of 16-byte-aligned space */
-static_assert(ALIGN(16, sizeof(struct smbios_entry)) ==
- ALIGN(16, sizeof(struct smbios3_entry)));
-
/* BIOS characteristics */
#define BIOS_CHARACTERISTICS_PCI_SUPPORTED (1 << 7)
#define BIOS_CHARACTERISTICS_UPGRADEABLE (1 << 11)