summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2014-11-01 02:11:08 +0000
committerMike Frysinger <vapier@gentoo.org>2014-11-01 02:11:08 +0000
commite6b934e4368575aa4756ddc04163180e0659e182 (patch)
treedad0eb3b6b853e100ab043977f9ad38c12782fb9
parentinitial 3.17 patchset based on last 3.16 patchset (diff)
downloadlinux-headers-patches-e6b934e4368575aa4756ddc04163180e0659e182.tar.gz
linux-headers-patches-e6b934e4368575aa4756ddc04163180e0659e182.tar.bz2
linux-headers-patches-e6b934e4368575aa4756ddc04163180e0659e182.zip
fix mips asm/ptrace.h #527642
-rw-r--r--3.17/00_all_0007-MIPS-asm-ptrace.h-include-linux-types.h.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/3.17/00_all_0007-MIPS-asm-ptrace.h-include-linux-types.h.patch b/3.17/00_all_0007-MIPS-asm-ptrace.h-include-linux-types.h.patch
new file mode 100644
index 0000000..372b1ea
--- /dev/null
+++ b/3.17/00_all_0007-MIPS-asm-ptrace.h-include-linux-types.h.patch
@@ -0,0 +1,35 @@
+https://bugs.gentoo.org/527642
+
+From b4f21bcfa89c3a60746b751ec1bfe27d29a868e8 Mon Sep 17 00:00:00 2001
+From: Mike Frysinger <vapier@gentoo.org>
+Date: Fri, 31 Oct 2014 21:57:46 -0400
+Subject: [PATCH] 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];
+
+Signed-off-by: Mike Frysinger <vapier@gentoo.org>
+---
+ arch/mips/include/uapi/asm/ptrace.h | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/arch/mips/include/uapi/asm/ptrace.h b/arch/mips/include/uapi/asm/ptrace.h
+index bbcfb8b..91a3d19 100644
+--- a/arch/mips/include/uapi/asm/ptrace.h
++++ b/arch/mips/include/uapi/asm/ptrace.h
+@@ -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
+--
+2.1.2
+