Re: [PATCH] mm: add config NUMA stub to all architectures

From
Geert Uytterhoeven <geert@linux-m68k.org>
Date
2012-02-19 17:01:36
Also in
lkml
Reply to
Andrew Morton, 2012-02-17
On Fri, Feb 17, 2012 at 21:30, Andrew Morton [off-list ref] wrote:
On Fri, 17 Feb 2012 16:08:15 +0400
Konstantin Khlebnikov [off-list ref] wrote:
quoted
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.
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.
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 -- geert@linux-m68k.org

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
Thread (14 messages) 14 messages, 8 authors, last reply 2012-02-20
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help