sched/headers: Prepare for the removal of <asm/ptrace.h> from <linux/sched.h>
authorIngo Molnar <mingo@kernel.org>
Fri, 3 Feb 2017 09:03:42 +0000 (10:03 +0100)
committerIngo Molnar <mingo@kernel.org>
Thu, 2 Mar 2017 07:42:31 +0000 (08:42 +0100)
Fix up missing #includes in other places that rely on sched.h doing that for them.

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>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/alpha/math-emu/math.c
arch/sh/kernel/cpu/fpu.c
arch/sh/kernel/process.c
drivers/oprofile/cpu_buffer.c

index fa5ae0ad8983b67c65fe27956324438dc1582fdb..d17d705f65453c6306067fabdc4e751358faa37e 100644 (file)
@@ -2,6 +2,7 @@
 #include <linux/types.h>
 #include <linux/kernel.h>
 #include <linux/sched.h>
+#include <asm/ptrace.h>
 
 #include <linux/uaccess.h>
 
index 4e332244ea75c36b93fc63dfb9b1601e7f960759..4d4737d099c654e289430c2a1d4643e9c0ab6d78 100644 (file)
@@ -3,6 +3,7 @@
 #include <asm/processor.h>
 #include <asm/fpu.h>
 #include <asm/traps.h>
+#include <asm/ptrace.h>
 
 int init_fpu(struct task_struct *tsk)
 {
index 53bc6c4c84ecdf1984bd422f69a3b46ef9032873..30bff33e810ea7498063fd00b8cbbc0d0aa39515 100644 (file)
@@ -5,6 +5,7 @@
 #include <linux/export.h>
 #include <linux/stackprotector.h>
 #include <asm/fpu.h>
+#include <asm/ptrace.h>
 
 struct kmem_cache *task_xstate_cachep = NULL;
 unsigned int xstate_size;
index 0581461c3a67be58ebeebee854bdc091e5f2befb..eda2633a393d56826430d3124870255a4670d56c 100644 (file)
@@ -23,6 +23,8 @@
 #include <linux/oprofile.h>
 #include <linux/errno.h>
 
+#include <asm/ptrace.h>
+
 #include "event_buffer.h"
 #include "cpu_buffer.h"
 #include "buffer_sync.h"