[PATCH 1/6] armv8: spin_table: Fix missing includes

Sam Day me at samcday.com
Tue Jan 28 00:02:53 CET 2025


Dropping the common.h header resulted in the spin table header missing
asm/types.h and the source unit missing the errno.h includes.

Fixes: 7410cde67de ("arm: Remove <common.h> and add needed includes")
Signed-off-by: Sam Day <me at samcday.com>
---
 arch/arm/cpu/armv8/spin_table.c   | 1 +
 arch/arm/include/asm/spin_table.h | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/arch/arm/cpu/armv8/spin_table.c b/arch/arm/cpu/armv8/spin_table.c
index 485294b88d0ac5516f58fb616ca59eebe30ef022..13b300f5c67a6dd257b2cb53350a7b5bafa3db96 100644
--- a/arch/arm/cpu/armv8/spin_table.c
+++ b/arch/arm/cpu/armv8/spin_table.c
@@ -6,6 +6,7 @@
 
 #include <linux/libfdt.h>
 #include <asm/spin_table.h>
+#include <errno.h>
 
 int spin_table_update_dt(void *fdt)
 {
diff --git a/arch/arm/include/asm/spin_table.h b/arch/arm/include/asm/spin_table.h
index dec18c6e5c1ba15c8f96ccae8e9bb5415c845a5b..8fc61237e07559f267e1da1fbc8ee646ef08721f 100644
--- a/arch/arm/include/asm/spin_table.h
+++ b/arch/arm/include/asm/spin_table.h
@@ -3,6 +3,8 @@
 #ifndef __ASM_SPIN_TABLE_H__
 #define __ASM_SPIN_TABLE_H__
 
+#include <asm/types.h>
+
 extern u64 spin_table_cpu_release_addr;
 extern char spin_table_reserve_begin;
 extern char spin_table_reserve_end;

-- 
2.47.1




More information about the U-Boot mailing list