소스 검색

um: Don't pollute kernel namespace with uapi

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>
Richard Weinberger 10 년 전
부모
커밋
da028d5e54
6개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 0 1
      arch/um/include/asm/ptrace-generic.h
  2. 1 0
      arch/um/kernel/ptrace.c
  3. 1 0
      arch/x86/um/ptrace_32.c
  4. 1 0
      arch/x86/um/ptrace_64.c
  5. 1 0
      arch/x86/um/tls_32.c
  6. 1 0
      arch/x86/um/tls_64.c

+ 0 - 1
arch/um/include/asm/ptrace-generic.h

@@ -8,7 +8,6 @@
 
 #ifndef __ASSEMBLY__
 
-#include <asm/ptrace-abi.h>
 #include <sysdep/ptrace.h>
 
 struct pt_regs {

+ 1 - 0
arch/um/kernel/ptrace.c

@@ -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)
 {

+ 1 - 0
arch/x86/um/ptrace_32.c

@@ -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);

+ 1 - 0
arch/x86/um/ptrace_64.c

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

+ 1 - 0
arch/x86/um/tls_32.c

@@ -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>

+ 1 - 0
arch/x86/um/tls_64.c

@@ -1,4 +1,5 @@
 #include <linux/sched.h>
+#include <asm/ptrace-abi.h>
 
 void clear_flushed_tls(struct task_struct *task)
 {