]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
um: Don't pollute kernel namespace with uapi
authorRichard Weinberger <richard@nod.at>
Thu, 25 Jun 2015 20:44:11 +0000 (22:44 +0200)
committerRichard Weinberger <richard@nod.at>
Thu, 25 Jun 2015 20:44:11 +0000 (22:44 +0200)
Don't include ptrace uapi stuff in arch headers, it will
pollute the kernel namespace and conflict with existing
stuff.
In this case it fixes clashes with common names like R8.

Signed-off-by: Richard Weinberger <richard@nod.at>
arch/um/include/asm/ptrace-generic.h
arch/um/kernel/ptrace.c
arch/x86/um/ptrace_32.c
arch/x86/um/ptrace_64.c
arch/x86/um/tls_32.c
arch/x86/um/tls_64.c

index 283480a7ad23f5b5d5b8def1998aa6f8f7fd889e..2966adbbdf6c954650c7327c77060c18deae797f 100644 (file)
@@ -8,7 +8,6 @@
 
 #ifndef __ASSEMBLY__
 
-#include <asm/ptrace-abi.h>
 #include <sysdep/ptrace.h>
 
 struct pt_regs {
index cac2ea058b7a6a4408d3a10d4f214b24ed061f2a..6a826cbb15c4d97097f39e690a250bc6f52eb9f2 100644 (file)
@@ -8,6 +8,7 @@
 #include <linux/sched.h>
 #include <linux/tracehook.h>
 #include <asm/uaccess.h>
+#include <asm/ptrace-abi.h>
 
 void user_enable_single_step(struct task_struct *child)
 {
index ce3dd4f36f3ff387a61c894ba0db52b31811341e..a29756f2d9402e45b7156aa609213663a935f671 100644 (file)
@@ -6,6 +6,7 @@
 #include <linux/mm.h>
 #include <linux/sched.h>
 #include <asm/uaccess.h>
+#include <asm/ptrace-abi.h>
 #include <skas.h>
 
 extern int arch_switch_tls(struct task_struct *to);
index 3b52bf0b418acad9f0194db70f6bc6533d6f0ac8..a629694ee750ff7c6c245bd6166a7264c0d36e85 100644 (file)
@@ -11,6 +11,7 @@
 #define __FRAME_OFFSETS
 #include <asm/ptrace.h>
 #include <asm/uaccess.h>
+#include <asm/ptrace-abi.h>
 
 /*
  * determines which flags the user has access to.
index 80ffa5b9982dd68cfe5537a40c06d7b467bf665b..48e38584d5c1de82b00710ef3546cbb0b4e2d5a2 100644 (file)
@@ -7,6 +7,7 @@
 #include <linux/sched.h>
 #include <linux/syscalls.h>
 #include <asm/uaccess.h>
+#include <asm/ptrace-abi.h>
 #include <os.h>
 #include <skas.h>
 #include <sysdep/tls.h>
index d22363cb854e51327b1b551ea85b07c9d904489d..3ad714373d7f13ca2130ef3ebcc3c811840b4b8e 100644 (file)
@@ -1,4 +1,5 @@
 #include <linux/sched.h>
+#include <asm/ptrace-abi.h>
 
 void clear_flushed_tls(struct task_struct *task)
 {