From: Mark Brown Date: Tue, 21 Feb 2017 17:29:01 +0000 (-0800) Subject: sched/core: Fix build paravirt build on arm and arm64 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fd4a61e08aa79f2b7835b25c6f94f27bd2d65990;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git sched/core: Fix build paravirt build on arm and arm64 Commit 004172bdad64 ("sched/core: Remove unnecessary #include headers") removed the inclusion of asm/paravirt.h which is used to get declarations of paravirt_steal_rq_enabled and paravirt_steal_clock. It is implicitly included on x86 but not on arm and arm64 breaking the build if paravirtualization is used. Since things from that header are used directly fix the build by putting the direct inclusion back. Signed-off-by: Mark Brown Signed-off-by: Linus Torvalds --- diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 34e2291a9a6c..e1ae6ac15eac 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -23,6 +23,9 @@ #include #include +#ifdef CONFIG_PARAVIRT +#include +#endif #include "sched.h" #include "../workqueue_internal.h"