diff mbox series

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

Message ID 20241003212802.3810-5-ravi@prevas.dk
State New
Delegated to: Stefan Roese
Headers show
Series disentangling cyclic API from schedule() | expand

Commit Message

Rasmus Villemoes Oct. 3, 2024, 9:27 p.m. UTC
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@prevas.dk>
---
 arch/m68k/include/asm/ptrace.h | 2 ++
 1 file changed, 2 insertions(+)

Comments

Tom Rini Oct. 4, 2024, 5:14 p.m. UTC | #1
On Thu, Oct 03, 2024 at 11:27:53PM +0200, Rasmus Villemoes wrote:

> 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@prevas.dk>

Reviewed-by: Tom Rini <trini@konsulko.com>
diff mbox series

Patch

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;