arm: pxa: CPU_PXA27x?
Robert,
Your commit 03ec7fe70c5c ("arm: pxa: add pxa27x device-tree support") is included in today's linux-next (ie, next-20141121). It adds a select statement for CPU_PXA27x. But there's no Kconfig symbol CPU_PXA27x.
Why is that select needed? For what it's worth: __cpu_is_pxa27x() compiles to something interesting if CONFIG_PXA27x is defined.
In https://lkml.org/lkml/2014/9/30/578 I proposed a patch that emits a warning in cases like this. Like _all_ Kconfig related patches I've seen flying by lately it appears to be dropped in /dev/null. What's going on?
Paul Bolle
Quoted 5 lines · Paul Bolle
Robert,
Your commit
03ec7fe70c5c("arm: pxa: add pxa27x device-tree support") is included in today's linux-next (ie, next-20141121). It adds a select statement forCPU_PXA27x. But there's noKconfigsymbolCPU_PXA27x.
Ah yes, you're perfectly right, CPU_PXA27x was not the one, it was PXA27x, sic ..
Quoted 3 lines
Why is that select needed? For what it's worth:
__cpu_is_pxa27x()compiles to something interesting ifCONFIG_PXA27xis defined.
You mean "is not defined", right ?
That (CONFIG_PXA27x) select is needed because without it the arm cpu architecture is not selected, ie. CONFIG_CPU_XSCALE is not set. And this in turn is needed to choose the basic arm operations like TLB handling, cache handling, etc ... You cannot compile a single platform kernel without this.
As a poor excuse, I hadn't seen this because this resulted from a poor merge resolution which brought in both "select PXA27x" and "select CPU_PXA27x".
Quoted 3 lines
In https://lkml.org/lkml/2014/9/30/578 I proposed a patch that emits a warning in cases like this. Like _all_
Kconfigrelated patches I've seen flying by lately it appears to be dropped in/dev/null. What's going on?
For that one I don't know.
Ah, and yes I'll send an update patch to remove the "select CPU_PXA27x", thanks for noticing this.
Cheers.
Signature · 1 line
Robert
Quoted 11 lines · Robert Jarzmik
Quoted 3 lines · Paul Bolle
Your commit
03ec7fe70c5c("arm: pxa: add pxa27x device-tree support") is included in today's linux-next (ie, next-20141121). It adds a select statement forCPU_PXA27x. But there's noKconfigsymbolCPU_PXA27x.Ah yes, you're perfectly right,
CPU_PXA27xwas not the one, it was PXA27x, sic ..Quoted 3 lines
Why is that select needed? For what it's worth:
__cpu_is_pxa27x()compiles to something interesting ifCONFIG_PXA27xis defined.You mean "is not defined", right ?
Perhaps I was ambiguous. This referred to these lines in arch/arm/mach-pxa/include/mach/hardware.h:
#ifdef CONFIG_PXA27x
#define __cpu_is_pxa27x(id) \
({ \
unsigned int _id = (id) >> 4 & 0xfff; \
_id == 0x411; \
})
#else
#define __cpu_is_pxa27x(id) (0)
#endifBut you needed PXA27x anyway, so this seems moot now.
Quoted 7 lines
That (
CONFIG_PXA27x) select is needed because without it the arm cpu architecture is not selected, ie.CONFIG_CPU_XSCALEis not set. And this in turn is needed to choose the basic arm operations like TLB handling, cache handling, etc ... You cannot compile a single platform kernel without this.As a poor excuse, I hadn't seen this because this resulted from a poor merge resolution which brought in both "select PXA27x" and "select
CPU_PXA27x".
Stuff happens. Would my patch have been included you might have seen the warning and this thread wouldn't exist.
Quoted 4 lines
Quoted 3 lines
In https://lkml.org/lkml/2014/9/30/578 I proposed a patch that emits a warning in cases like this. Like _all_
Kconfigrelated patches I've seen flying by lately it appears to be dropped in/dev/null. What's going on?For that one I don't know.
Here I'm dragging you into a discussion about something that's been bugging me for a while now. Hence the addresses that have nothing to do with pxa in Cc:.
Quoted 2 lines
Ah, and yes I'll send an update patch to remove the "select
CPU_PXA27x", thanks for noticing this.
Great!
Paul Bolle