[PATCH 04/13] m68k: asm/ptrace.h: include linux/types.h

Rasmus Villemoes ravi at prevas.dk
Thu Oct 3 23:27:53 CEST 2024


Modifying a generic header like watchdog.h, removing not directly used
#includes, can apparently break the build of m68k, because the
asm/ptrace.h header relies on whoever includes it to already have
included something that defines the type ulong.

Make the asm/ptrace.h header self-contained by including the proper
header.

Signed-off-by: Rasmus Villemoes <ravi at prevas.dk>
---
 arch/m68k/include/asm/ptrace.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/m68k/include/asm/ptrace.h b/arch/m68k/include/asm/ptrace.h
index d419824806c..5decf73a1d1 100644
--- a/arch/m68k/include/asm/ptrace.h
+++ b/arch/m68k/include/asm/ptrace.h
@@ -9,6 +9,8 @@
  */
 #ifndef __ASSEMBLY__
 
+#include <linux/types.h>
+
 struct pt_regs {
 	ulong d0;
 	ulong d1;
-- 
2.46.2



More information about the U-Boot mailing list