summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2017-02-03 12:03:42 +0300
committerIngo Molnar <mingo@kernel.org>2017-03-03 03:45:33 +0300
commitf780d89a0e820a529cf91fb78b52565e1b37b774 (patch)
tree64ba9f621ec52aa99a0ec0a9a9145063ce48533f
parente26512fea5bcd6602dbf02a551ed073cd4529449 (diff)
downloadlinux-f780d89a0e820a529cf91fb78b52565e1b37b774.tar.xz
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>
-rw-r--r--arch/sh/include/asm/fpu.h2
-rw-r--r--arch/sh/mm/extable_32.c2
-rw-r--r--include/linux/sched.h1
3 files changed, 4 insertions, 1 deletions
diff --git a/arch/sh/include/asm/fpu.h b/arch/sh/include/asm/fpu.h
index 09fc2bc8a790..50921c7cc3f0 100644
--- a/arch/sh/include/asm/fpu.h
+++ b/arch/sh/include/asm/fpu.h
@@ -3,6 +3,8 @@
#ifndef __ASSEMBLY__
+#include <asm/ptrace.h>
+
struct task_struct;
#ifdef CONFIG_SH_FPU
diff --git a/arch/sh/mm/extable_32.c b/arch/sh/mm/extable_32.c
index 24a75d315dcb..940e871bc816 100644
--- a/arch/sh/mm/extable_32.c
+++ b/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;
diff --git a/include/linux/sched.h b/include/linux/sched.h
index 1be69735cef3..9dfa9c113570 100644
--- a/include/linux/sched.h
+++ b/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>