Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo commit in src/patchsets/gentoo-headers/3.17: 00_all_0007-MIPS-asm-ptrace.h-include-linux-types.h.patch
Date: Sat, 01 Nov 2014 02:11:12
Message-Id: 20141101021108.B379992E1@oystercatcher.gentoo.org
1 vapier 14/11/01 02:11:08
2
3 Added:
4 00_all_0007-MIPS-asm-ptrace.h-include-linux-types.h.patch
5 Log:
6 fix mips asm/ptrace.h #527642
7
8 Revision Changes Path
9 1.1 src/patchsets/gentoo-headers/3.17/00_all_0007-MIPS-asm-ptrace.h-include-linux-types.h.patch
10
11 file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/3.17/00_all_0007-MIPS-asm-ptrace.h-include-linux-types.h.patch?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/3.17/00_all_0007-MIPS-asm-ptrace.h-include-linux-types.h.patch?rev=1.1&content-type=text/plain
13
14 Index: 00_all_0007-MIPS-asm-ptrace.h-include-linux-types.h.patch
15 ===================================================================
16 https://bugs.gentoo.org/527642
17
18 From b4f21bcfa89c3a60746b751ec1bfe27d29a868e8 Mon Sep 17 00:00:00 2001
19 From: Mike Frysinger <vapier@g.o>
20 Date: Fri, 31 Oct 2014 21:57:46 -0400
21 Subject: [PATCH] MIPS: asm/ptrace.h: include linux/types.h
22
23 The header uses __u64 but doesn't include linux/types.h which breaks
24 userspace apps that try to use asm/ptrace.h. Like gdb:
25
26 In file included from mips-linux-nat.c:37:0:
27 /usr/include/asm/ptrace.h:32:2: error: unknown type name '__u64'
28 __u64 regs[32];
29
30 Signed-off-by: Mike Frysinger <vapier@g.o>
31 ---
32 arch/mips/include/uapi/asm/ptrace.h | 2 ++
33 1 file changed, 2 insertions(+)
34
35 diff --git a/arch/mips/include/uapi/asm/ptrace.h b/arch/mips/include/uapi/asm/ptrace.h
36 index bbcfb8b..91a3d19 100644
37 --- a/arch/mips/include/uapi/asm/ptrace.h
38 +++ b/arch/mips/include/uapi/asm/ptrace.h
39 @@ -9,6 +9,8 @@
40 #ifndef _UAPI_ASM_PTRACE_H
41 #define _UAPI_ASM_PTRACE_H
42
43 +#include <linux/types.h>
44 +
45 /* 0 - 31 are integer registers, 32 - 63 are fp registers. */
46 #define FPR_BASE 32
47 #define PC 64
48 --
49 2.1.2