From mboxrd@z Thu Jan 1 00:00:00 1970 From: stefano.stabellini@eu.citrix.com (Stefano Stabellini) Date: Thu, 5 Nov 2015 17:30:01 +0000 Subject: [PATCH v11 2/5] missing include asm/paravirt.h in cputime.c In-Reply-To: <20151105164032.GG3604@twins.programming.kicks-ass.net> References: <1446737696-9749-2-git-send-email-stefano.stabellini@eu.citrix.com> <20151105164032.GG3604@twins.programming.kicks-ass.net> Message-ID: To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Thu, 5 Nov 2015, Peter Zijlstra wrote: > How can this be missing? Things compile fine now, right? Fair enough. > So please better explain why we do this change. asm/paravirt.h is included by one of the other headers included in kernel/sched/cputime.c on x86, but not on other architecures. 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: kernel/sched/cputime.c: In function ?steal_account_process_tick?: kernel/sched/cputime.c:260:24: error: ?paravirt_steal_enabled? undeclared (first use in this function) if (static_key_false(¶virt_steal_enabled)) { A bit of digging on x86 (using gcc -E on cputime.c) tells me that asm/paravirt.h is coming from the following include chain: #include #include #include #include #include #include #include #include #include