Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <broonie@kernel.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Mark Brown and committed by
Linus Torvalds
fd4a61e0 9763dd6f

+3
+3
kernel/sched/core.c
··· 23 23 24 24 #include <asm/switch_to.h> 25 25 #include <asm/tlb.h> 26 + #ifdef CONFIG_PARAVIRT 27 + #include <asm/paravirt.h> 28 + #endif 26 29 27 30 #include "sched.h" 28 31 #include "../workqueue_internal.h"