linux-next: build failure after merge of the final tree (akpm tree related)
Subsystems (11)
Hi Andrew,
Today's linux-next fails to build (s390 allnoconfig) like this:
In file included from arch/s390/mm/maccess.c:15:include/linux/gfp.h: In function 'gfp_zonelist':include/linux/gfp.h:267: error: '__enabled_CONFIG_NUMA' undeclared (first use in this function) include/linux/gfp.h:267: error: (Each undeclared identifier is reported only once include/linux/gfp.h:267: error: for each function it appears in.) include/linux/gfp.h:267: error: '__enabled_CONFIG_NUMA_MODULE' undeclared (first use in this function)
and many more. This also happens in other architectures and configs but (obviously) not all builds.
Presumably caused by commit 053361e1a072 ("mm: replace NUMA_BUILD with IS_ENABLED(CONFIG_NUMA)").
Signature · 2 lines
Cheers, Stephen Rothwell [email protected]
Quoted 11 lines · Stephen Rothwell
Hi Andrew,
Today's linux-next fails to build (s390 allnoconfig) like this:
In file included from
arch/s390/mm/maccess.c:15:include/linux/gfp.h: In function 'gfp_zonelist':include/linux/gfp.h:267: error: '__enabled_CONFIG_NUMA' undeclared (first use in this function)include/linux/gfp.h:267: error: (Each undeclared identifier is reported only onceinclude/linux/gfp.h:267: error: for each function it appears in.)include/linux/gfp.h:267: error: '__enabled_CONFIG_NUMA_MODULE' undeclared (first use in this function)
Quoted 6 lines
and many more. This also happens in other architectures and configs but (obviously) not all builds.
Presumably caused by commit
053361e1a072("mm: replaceNUMA_BUILDwithIS_ENABLED(CONFIG_NUMA)").
Oops, yes, my fault.
'config NUMA' defined in arch-specific Kconfig, some of them does not have it. Thus Kconfig generates these constants not for all architectures.
config MIGRATION and config COMPACTION already in generic mm/Kconfig
PATCH 1/1 mm: add config NUMA stub to all architectures
Config NUMA must be defined for all architectures, otherwise IS_ENABLED(CONFIG_NUMA) does not work. Some arch-specific Kconfig already has this stub. This patch adds it to all remaining.
--- arch/arm/Kconfig | 3 +++ arch/avr32/Kconfig | 2 ++ arch/blackfin/Kconfig | 3 +++ arch/cris/Kconfig | 3 +++ arch/frv/Kconfig | 3 +++ arch/h8300/Kconfig | 3 +++ arch/hexagon/Kconfig | 3 +++ arch/m68k/Kconfig | 3 +++ arch/microblaze/Kconfig | 3 +++ arch/openrisc/Kconfig | 3 +++ arch/parisc/Kconfig | 3 +++ arch/s390/Kconfig | 3 +++ arch/score/Kconfig | 3 +++ arch/um/Kconfig.common | 3 +++ arch/unicore32/Kconfig | 3 +++ arch/xtensa/Kconfig | 3 +++ 16 files changed, 47 insertions(+), 0 deletions(-)
arch/arm/Kconfig +3 -0
@@ -246,6 +246,9 @@ config MMU Select if you want MMU-based virtualised addressing space support by paged memory management. If unsure, say 'Y'. +config NUMA + def_bool n + # # The "ARM system type" choice list is ordered alphabetically by option # text. Please add new entries in the option alphabetic order.
arch/avr32/Kconfig +2 -0
@@ -69,6 +69,8 @@ config SUBARCH_AVR32B bool config MMU bool +config NUMA + def_bool n config PERFORMANCE_COUNTERS bool
arch/blackfin/Kconfig +3 -0
@@ -5,6 +5,9 @@ config SYMBOL_PREFIX config MMU def_bool n +config NUMA + def_bool n + config FPU def_bool n
arch/cris/Kconfig +3 -0
@@ -2,6 +2,9 @@ config MMU bool default y +config NUMA + def_bool n + config ZONE_DMA bool default y
arch/frv/Kconfig +3 -0
@@ -64,6 +64,9 @@ config MMU CPUs support this. Currently only the FR451 has a sufficiently featured MMU. +config NUMA + def_bool n + config FRV_OUTOFLINE_ATOMIC_OPS bool "Out-of-line the FRV atomic operations" default n
arch/h8300/Kconfig +3 -0
@@ -14,6 +14,9 @@ config MMU bool default n +config NUMA + def_bool n + config SWAP bool default n
arch/hexagon/Kconfig +3 -0
@@ -62,6 +62,9 @@ config KTIME_SCALAR config MMU def_bool y +config NUMA + def_bool n + config TRACE_IRQFLAGS_SUPPORT def_bool y
arch/m68k/Kconfig +3 -0
@@ -84,6 +84,9 @@ config MMU Select if you want MMU-based virtualised addressing space support by paged memory management. If unsure, say 'Y'. +config NUMA + def_bool n + config MMU_MOTOROLA bool
arch/microblaze/Kconfig +3 -0
@@ -86,6 +86,9 @@ config NO_MMU depends on !MMU default y +config NUMA + def_bool n + comment "Boot options" config CMDLINE_BOOL
arch/openrisc/Kconfig +3 -0
@@ -20,6 +20,9 @@ config OPENRISC config MMU def_bool y +config NUMA + def_bool n + config SYMBOL_PREFIX string default ""
arch/parisc/Kconfig +3 -0
@@ -27,6 +27,9 @@ config PARISC config MMU def_bool y +config NUMA + def_bool n + config STACK_GROWSUP def_bool y
arch/s390/Kconfig +3 -0
@@ -1,6 +1,9 @@ config MMU def_bool y +config NUMA + def_bool n + config ZONE_DMA def_bool y
arch/score/Kconfig +3 -0
@@ -88,6 +88,9 @@ source "init/Kconfig" config MMU def_bool y +config NUMA + def_bool n + menu "Executable file formats" source "fs/Kconfig.binfmt"
arch/um/Kconfig.common +3 -0
@@ -14,6 +14,9 @@ config MMU bool default y +config NUMA + def_bool n + config NO_IOMEM def_bool y
arch/unicore32/Kconfig +3 -0
@@ -79,6 +79,9 @@ menu "System Type" config MMU def_bool y +config NUMA + def_bool n + config ARCH_FPGA bool
arch/xtensa/Kconfig +3 -0
@@ -46,6 +46,9 @@ source "kernel/Kconfig.freezer" config MMU def_bool n +config NUMA + def_bool n + config VARIANT_IRQ_SWITCH def_bool n
Re: [PATCH] mm: add config NUMA stub to all architectures
Hi Konstantin,
Quoted 5 lines · On Fri, 17 Feb 2012 16:08:15 +0400 Konstantin Khlebnikov…
Config NUMA must be defined for all architectures, otherwise
IS_ENABLED(CONFIG_NUMA)does not work. Some arch-specificKconfigalready has this stub. This patch adds it to all remaining.
Why not add it somewhere generic (like mm/Kconfig, maybe) and then it can be removed from the architecture specific places over time (if necessary
- I am pretty sure it is ok to have it there twice)?
Signature · 2 lines
Cheers, Stephen Rothwell [email protected]
Re: [PATCH] mm: add config NUMA stub to all architectures
Quoted 4 lines · Stephen Rothwell
Hi Konstantin,
Quoted 1 line · On Fri, 17 Feb 2012 16:08:15 +0400 Konstantin…
Quoted 9 lines
Quoted 4 lines
Config NUMA must be defined for all architectures, otherwise
IS_ENABLED(CONFIG_NUMA)does not work. Some arch-specificKconfigalready has this stub. This patch adds it to all remaining.Why not add it somewhere generic (like mm/Kconfig, maybe) and then it can be removed from the architecture specific places over time (if necessary
- I am pretty sure it is ok to have it there twice)?
Different architectures has different dependencies for NUMA.
Seems like Kconfig allow config option duplication, but it use default state from first. If we add "config NUMA\n def_bool n" somewhere in generic Kconfig, default will be n if Kconfig see this declaration first.
Re: [PATCH] mm: add config NUMA stub to all architectures
Quoted 15 lines · Konstantin Khlebnikov
Quoted 4 lines · Stephen Rothwell
Hi Konstantin,
Quoted 1 line · On Fri, 17 Feb 2012 16:08:15 +0400 Konstantin…
Quoted 9 lines
Quoted 4 lines
Config NUMA must be defined for all architectures, otherwise
IS_ENABLED(CONFIG_NUMA)does not work. Some arch-specificKconfigalready has this stub. This patch adds it to all remaining.Why not add it somewhere generic (like mm/Kconfig, maybe) and then it can be removed from the architecture specific places over time (if necessary
- I am pretty sure it is ok to have it there twice)?
Quoted 5 lines
Different architectures has different dependencies for NUMA.
Seems like
Kconfigallow config option duplication, but it use default state from first. If we add "config NUMA\ndef_booln" somewhere in genericKconfig, default will be n ifKconfigsee this declaration first.
Correct.
And as n is default there is no need to specify it.
But please add a help text that explain the symbol - even if it is not visible in menuconfig.
Sam
Re: [PATCH] mm: add config NUMA stub to all architectures
Hi Sam,
Quoted 8 lines · On Fri, 17 Feb 2012 14:44:04 +0100 Sam Ravnborg <[email protected]> wrote:
Quoted 4 lines
Seems like
Kconfigallow config option duplication, but it use default state from first. If we add "config NUMA\ndef_booln" somewhere in genericKconfig, default will be n ifKconfigsee this declaration first.Correct.
And as n is default there is no need to specify it.
But please add a help text that explain the symbol - even if it is not visible in menuconfig.
So does that mean that a simple
config NUMA
bool
help
some help text
in mm/Kconfig will have no effect on the defaults and dependencies if "config NUMA" is specified elsewhere? (except to add the needed __enabled_CONFIG_NUMA defines, of course). If that is the case, then that is what we should add, right?
Signature · 2 lines
Cheers, Stephen Rothwell [email protected]
Re: [PATCH] mm: add config NUMA stub to all architectures
In reply to Konstantin KhlebnikovQuoted 4 lines · On Fri, 17 Feb 2012 16:08:15 +0400 Konstantin Khlebnikov…
Config NUMA must be defined for all architectures, otherwise
IS_ENABLED(CONFIG_NUMA)does not work. Some arch-specificKconfigalready has this stub. This patch adds it to all remaining.
It would be better to teach IS_ENABLED() to handle this situation. I don't think there's a way of doing this with cpp :(
This limitation makes IS_ENABLED pretty dangerous, doesn't it? It makes it very easy to introduce build breakage with unexpected Kconfig combinations.
Geert Uytterhoeven
maintainerRe: [PATCH] mm: add config NUMA stub to all architectures
Quoted 8 lines · Andrew Morton
Quoted 4 lines · On Fri, 17 Feb 2012 16:08:15 +0400 Konstantin Khlebnikov…
Config NUMA must be defined for all architectures, otherwise
IS_ENABLED(CONFIG_NUMA)does not work. Some arch-specificKconfigalready has this stub. This patch adds it to all remaining.
Quoted 6 lines
It would be better to teach
IS_ENABLED()to handle this situation. I don't think there's a way of doing this with cpp :(This limitation makes
IS_ENABLEDpretty dangerous, doesn't it? It makes it very easy to introduce build breakage with unexpectedKconfigcombinations.
Indeed. Recently I discovered IS_ENABLED() and started recommending it to people for new code. But now I've seen the CONFIG_NUMA breakage, I no longer think this is a good recommendation.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds
Re: [PATCH] mm: add config NUMA stub to all architectures
Quoted 12 lines · Geert Uytterhoeven
Quoted 11 lines · Andrew Morton
Quoted 4 lines · On Fri, 17 Feb 2012 16:08:15 +0400 Konstantin…
Config NUMA must be defined for all architectures, otherwise
IS_ENABLED(CONFIG_NUMA)does not work. Some arch-specificKconfigalready has this stub. This patch adds it to all remaining.It would be better to teach
IS_ENABLED()to handle this situation. I don't think there's a way of doing this with cpp :(
Quoted 7 lines
Quoted 3 lines
This limitation makes
IS_ENABLEDpretty dangerous, doesn't it? It makes it very easy to introduce build breakage with unexpectedKconfigcombinations.Indeed. Recently I discovered
IS_ENABLED()and started recommending it to people for new code. But now I've seen theCONFIG_NUMAbreakage, I no longer think this is a good recommendation.
adding Michal & linux-kbuild to cc: list.
Signature · 1 line
~Randy
Re: [PATCH] mm: add config NUMA stub to all architectures
Hi,
Quoted 22 lines · Randy Dunlap
Quoted 21 lines · Geert Uytterhoeven
Quoted 16 lines · Andrew Morton
Quoted 4 lines · On Fri, 17 Feb 2012 16:08:15 +0400 Konstantin…
Config NUMA must be defined for all architectures, otherwise
IS_ENABLED(CONFIG_NUMA)does not work. Some arch-specificKconfigalready has this stub. This patch adds it to all remaining.It would be better to teach
IS_ENABLED()to handle this situation. I don't think there's a way of doing this with cpp :(This limitation makes
IS_ENABLEDpretty dangerous, doesn't it? It makes it very easy to introduce build breakage with unexpectedKconfigcombinations.
Quoted 6 lines
Quoted 3 lines
Indeed. Recently I discovered
IS_ENABLED()and started recommending it to people for new code. But now I've seen theCONFIG_NUMAbreakage, I no longer think this is a good recommendation.adding Michal & linux-kbuild to cc: list.
I do not really see any way to fix this, beside having a unique architecture-wide configuration namespace :/
- Arnaud
--
To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH] mm: add config NUMA stub to all architectures
Quoted 13 lines · Arnaud Lacombe
Quoted 12 lines · Randy Dunlap
Quoted 11 lines · Geert Uytterhoeven
Quoted 6 lines · Andrew Morton
It would be better to teach
IS_ENABLED()to handle this situation. I don't think there's a way of doing this with cpp :(This limitation makes
IS_ENABLEDpretty dangerous, doesn't it? It makes it very easy to introduce build breakage with unexpectedKconfigcombinations.
Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
Indeed. Recently I discovered
IS_ENABLED()and started recommending it to people for new code. But now I've seen theCONFIG_NUMAbreakage, I no longer think this is a good recommendation.adding Michal & linux-kbuild to cc: list.
I do not really see any way to fix this, beside having a unique architecture-wide configuration namespace :/
Having a single namespace, or less ambitiously, having less arch-specific config symbol definitions, would be a plus. IS_ENABLED requiring the symbol to be defined is not bad per se, it prevents typos.
Michal
Hi Andrew,
Quoted 10 lines · On Fri, 17 Feb 2012 21:20:37 +1100 Stephen Rothwell <[email protected]>…
Today's linux-next fails to build (s390 allnoconfig) like this:
In file included from
arch/s390/mm/maccess.c:15:include/linux/gfp.h: In function 'gfp_zonelist':include/linux/gfp.h:267: error: '__enabled_CONFIG_NUMA' undeclared (first use in this function)include/linux/gfp.h:267: error: (Each undeclared identifier is reported only onceinclude/linux/gfp.h:267: error: for each function it appears in.)include/linux/gfp.h:267: error: '__enabled_CONFIG_NUMA_MODULE' undeclared (first use in this function)
Quoted 5 lines
and many more. This also happens in other architectures and configs but (obviously) not all builds.
Presumably caused by commit
053361e1a072("mm: replaceNUMA_BUILDwithIS_ENABLED(CONFIG_NUMA)").
I have removed that patch from the akpm tree until a solution is worked out.
Everything seemed to rebase ok with out it and I can't see much actually depending on it.
Signature · 2 lines
Cheers, Stephen Rothwell [email protected]
Quoted 16 lines · On Mon, 20 Feb 2012 10:04:36 +1100 Stephen Rothwell <[email protected]>…
Hi Andrew,
Quoted 13 lines · On Fri, 17 Feb 2012 21:20:37 +1100 Stephen Rothwell <[email protected]>…
Today's linux-next fails to build (s390 allnoconfig) like this:
In file included from
arch/s390/mm/maccess.c:15:include/linux/gfp.h: In function 'gfp_zonelist':include/linux/gfp.h:267: error: '__enabled_CONFIG_NUMA' undeclared (first use in this function)include/linux/gfp.h:267: error: (Each undeclared identifier is reported only onceinclude/linux/gfp.h:267: error: for each function it appears in.)include/linux/gfp.h:267: error: '__enabled_CONFIG_NUMA_MODULE' undeclared (first use in this function)and many more. This also happens in other architectures and configs but (obviously) not all builds.
Quoted 7 lines
Quoted 2 lines
Presumably caused by commit
053361e1a072("mm: replaceNUMA_BUILDwithIS_ENABLED(CONFIG_NUMA)").I have removed that patch from the akpm tree until a solution is worked out.
Everything seemed to rebase ok with out it and I can't see much actually depending on it.
yup, I've removed it from the for-next sections and will probably drop it altogether.