Browse Source

sched/headers: Remove <asm/ptrace.h> from <linux/sched.h>

This reduces header dependencies.

Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Ingo Molnar 8 năm trước cách đây
mục cha
commit
f780d89a0e
3 tập tin đã thay đổi với 4 bổ sung1 xóa
  1. 2 0
      arch/sh/include/asm/fpu.h
  2. 2 0
      arch/sh/mm/extable_32.c
  3. 0 1
      include/linux/sched.h

+ 2 - 0
arch/sh/include/asm/fpu.h

@@ -3,6 +3,8 @@
 
 #ifndef __ASSEMBLY__
 
+#include <asm/ptrace.h>
+
 struct task_struct;
 
 #ifdef CONFIG_SH_FPU

+ 2 - 0
arch/sh/mm/extable_32.c

@@ -7,6 +7,8 @@
 #include <linux/extable.h>
 #include <linux/uaccess.h>
 
+#include <asm/ptrace.h>
+
 int fixup_exception(struct pt_regs *regs)
 {
 	const struct exception_table_entry *fixup;

+ 0 - 1
include/linux/sched.h

@@ -8,7 +8,6 @@
 #include <linux/mutex.h>
 #include <linux/plist.h>
 #include <linux/mm_types_task.h>
-#include <asm/ptrace.h>
 
 #include <linux/sem.h>
 #include <linux/shm.h>