summaryrefslogtreecommitdiff
path: root/src/cpu/x86/smm
diff options
context:
space:
mode:
authorElyes Haouas <ehaouas@noos.fr>2022-10-07 10:07:12 +0200
committerFelix Held <felix-coreboot@felixheld.de>2022-10-26 16:37:34 +0000
commit45d3205ba565ababcaf1e9e85a63dd7a0b1d72be (patch)
tree69fb098295fb88197d4f2ce77bfda3af1a957c9b /src/cpu/x86/smm
parentdeb5645644edf8b8594f89acf4d33544a8ea6f44 (diff)
cpu/x86: Clean up includes
Signed-off-by: Elyes Haouas <ehaouas@noos.fr> Change-Id: I01c6651079333686cb0eb68e89e56d7907868124 Reviewed-on: https://review.coreboot.org/c/coreboot/+/68204 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Martin Roth <martin.roth@amd.corp-partner.google.com>
Diffstat (limited to 'src/cpu/x86/smm')
-rw-r--r--src/cpu/x86/smm/save_state.c4
-rw-r--r--src/cpu/x86/smm/smm_module_handler.c5
2 files changed, 7 insertions, 2 deletions
diff --git a/src/cpu/x86/smm/save_state.c b/src/cpu/x86/smm/save_state.c
index bb08f86414..d8c44a85e0 100644
--- a/src/cpu/x86/smm/save_state.c
+++ b/src/cpu/x86/smm/save_state.c
@@ -1,7 +1,9 @@
/* SPDX-License-Identifier: GPL-2.0-only */
-#include <cpu/x86/smm.h>
+#include <commonlib/bsd/helpers.h>
#include <cpu/x86/save_state.h>
+#include <cpu/x86/smm.h>
+#include <types.h>
/* These are weakly linked such that platforms can link only the save state
ops they actually require. */
diff --git a/src/cpu/x86/smm/smm_module_handler.c b/src/cpu/x86/smm/smm_module_handler.c
index e18a26a250..e813f786e6 100644
--- a/src/cpu/x86/smm/smm_module_handler.c
+++ b/src/cpu/x86/smm/smm_module_handler.c
@@ -1,11 +1,14 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#include <arch/io.h>
+#include <commonlib/bsd/compiler.h>
+#include <commonlib/region.h>
#include <console/cbmem_console.h>
#include <console/console.h>
-#include <commonlib/region.h>
+#include <cpu/cpu.h>
#include <cpu/x86/smm.h>
#include <rmodule.h>
+#include <types.h>
#if CONFIG(SPI_FLASH_SMM)
#include <spi-generic.h>