From: Stefano Stabellini Date: Tue, 10 Nov 2015 12:36:46 +0000 (+0000) Subject: missing include asm/paravirt.h in cputime.c X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1fe7c4ef88bd32e039f5f4126537c3f20c340414;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git missing include asm/paravirt.h in cputime.c Add include asm/paravirt.h to cputime.c, as steal_account_process_tick calls paravirt_steal_clock, which is defined in asm/paravirt.h. The ifdef CONFIG_PARAVIRT is necessary because not all archs have an asm/paravirt.h to include. The reason why currently cputime.c compiles, even though include is missing, is that on x86 asm/paravirt.h is included by one of the other headers included in kernel/sched/cputime.c: On arm and arm64, where I am about to introduce asm/paravirt.h and stolen time support, without #include in cputime.c, I would get an error. Signed-off-by: Stefano Stabellini Acked-by: Peter Zijlstra (Intel) --- diff --git a/kernel/sched/cputime.c b/kernel/sched/cputime.c index 05de80b48586..851b00f344ae 100644 --- a/kernel/sched/cputime.c +++ b/kernel/sched/cputime.c @@ -5,6 +5,9 @@ #include #include #include "sched.h" +#ifdef CONFIG_PARAVIRT +#include +#endif #ifdef CONFIG_IRQ_TIME_ACCOUNTING