Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1265899
| From | Peter Zijlstra <peterz@infradead.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v11 2/5] missing include asm/paravirt.h in cputime.c |
| Date | 2015-11-09 18:40 +0100 |
| Message-ID | <qsYAc-123-51@gated-at.bofh.it> (permalink) |
| References | <qrvTA-IK-37@gated-at.bofh.it> <qrvTA-IK-39@gated-at.bofh.it> <qrvTA-IK-35@gated-at.bofh.it> <qsYAc-123-53@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Thu, Nov 05, 2015 at 05:30:01PM +0000, Stefano Stabellini wrote:
> 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 <asm/paravirt.h> 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 <kernel/sched/sched.h>
> #include <linux/spinlock.h>
> #include <linux/preempt.h>
> #include <asm/preempt.h>
> #include <linux/thread_info.h>
> #include <asm/thread_info.h>
> #include <asm/processor.h>
> #include <asm/msr.h>
> #include <asm/paravirt.h>
Fair enough; a slightly shorter version of that for a changelog will do
nicely.
Thanks!
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: [PATCH v11 2/5] missing include asm/paravirt.h in cputime.c Peter Zijlstra <peterz@infradead.org> - 2015-11-05 17:50 +0100
Re: [PATCH v11 2/5] missing include asm/paravirt.h in cputime.c Peter Zijlstra <peterz@infradead.org> - 2015-11-09 18:40 +0100
Re: [PATCH v11 2/5] missing include asm/paravirt.h in cputime.c Stefano Stabellini <stefano.stabellini@eu.citrix.com> - 2015-11-10 12:30 +0100
Re: [PATCH v11 2/5] missing include asm/paravirt.h in cputime.c Peter Zijlstra <peterz@infradead.org> - 2015-11-10 13:20 +0100
csiph-web