diff options
author | Ingo Molnar <mingo@kernel.org> | 2017-02-02 08:47:27 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2017-03-02 02:42:31 -0500 |
commit | 7fce777cd4eacc0bdcb33017e5a4c495d28afed1 (patch) | |
tree | 436dfd22326163f42d5e7461949a319cbce253f2 /kernel | |
parent | 1e4bae6468375f81a3d4bdf436deaa9ea294e12b (diff) |
sched/headers: Prepare header dependency changes, move the <asm/paravirt.h> include to kernel/sched/sched.h
Recent header reorganizations unearthed this hidden dependency:
kernel/sched/core.c:199:25: error: 'paravirt_steal_rq_enabled' undeclared (first use in this function)
kernel/sched/core.c:200:11: error: implicit declaration of function 'paravirt_steal_clock' [-Werror=implicit-function-declaration]
So move the asm/paravirt.h include from kernel/sched/cpuclock.c to kernel/sched/sched.h.
( NOTE: We do this change before doing the changes that introduce the build failure,
so the series remains fully bisectable. )
Reported-by: kbuild test robot <fengguang.wu@intel.com>
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>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/sched/cputime.c | 4 | ||||
-rw-r--r-- | kernel/sched/sched.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/kernel/sched/cputime.c b/kernel/sched/cputime.c index 2ecec3a4f1ee..54031fa681e2 100644 --- a/kernel/sched/cputime.c +++ b/kernel/sched/cputime.c | |||
@@ -6,10 +6,6 @@ | |||
6 | #include <linux/context_tracking.h> | 6 | #include <linux/context_tracking.h> |
7 | #include <linux/cputime.h> | 7 | #include <linux/cputime.h> |
8 | #include "sched.h" | 8 | #include "sched.h" |
9 | #ifdef CONFIG_PARAVIRT | ||
10 | #include <asm/paravirt.h> | ||
11 | #endif | ||
12 | |||
13 | 9 | ||
14 | #ifdef CONFIG_IRQ_TIME_ACCOUNTING | 10 | #ifdef CONFIG_IRQ_TIME_ACCOUNTING |
15 | 11 | ||
diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h index 7e8ce0347fbf..04f376cf7ba9 100644 --- a/kernel/sched/sched.h +++ b/kernel/sched/sched.h | |||
@@ -20,6 +20,10 @@ | |||
20 | #include <linux/tick.h> | 20 | #include <linux/tick.h> |
21 | #include <linux/slab.h> | 21 | #include <linux/slab.h> |
22 | 22 | ||
23 | #ifdef CONFIG_PARAVIRT | ||
24 | #include <asm/paravirt.h> | ||
25 | #endif | ||
26 | |||
23 | #include "cpupri.h" | 27 | #include "cpupri.h" |
24 | #include "cpudeadline.h" | 28 | #include "cpudeadline.h" |
25 | #include "cpuacct.h" | 29 | #include "cpuacct.h" |