Skip to contentSkip to conversation

MIPS: asm/ptrace.h: include linux/types.h

PATCH In review Mike Frysinger 2 participants 2 messages Nov 1, 2014 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 MIPS: asm/ptrace.h: include linux/types.h

The header uses __u64 but doesn't include linux/types.h which breaks userspace apps that try to use asm/ptrace.h. Like gdb:

In file included from mips-linux-nat.c:37:0:
/usr/include/asm/ptrace.h:32:2: error: unknown type name '__u64'
__u64 regs[32];

---
 arch/mips/include/uapi/asm/ptrace.h | 2 ++
 1 file changed, 2 insertions(+)
arch/mips/include/uapi/asm/ptrace.h +2 -0
index bbcfb8b..91a3d19 100644
@@ -9,6 +9,8 @@
 #ifndef _UAPI_ASM_PTRACE_H
 #define _UAPI_ASM_PTRACE_H
 
+#include <linux/types.h>
+
 /* 0 - 31 are integer registers, 32 - 63 are fp registers.  */
 #define FPR_BASE	32
 #define PC		64
Signature · 1 line
2.1.2
#1 lore raw

Hi,

Quoted 2 lines · Mike Frysinger

The header uses __u64 but doesn't include linux/types.h which breaks userspace apps that try to use asm/ptrace.h. Like gdb:

Already fixed in the mainline, see cdb685ad44996e9a113a10002cb42d40ff29db99 (MIPS: ptrace.h: Add a missing include).

A.