x86: fix warning about nodeid
authorYinghai Lu <yinghai@kernel.org>
Thu, 5 Mar 2009 20:04:57 +0000 (12:04 -0800)
committerIngo Molnar <mingo@elte.hu>
Sun, 8 Mar 2009 18:34:17 +0000 (19:34 +0100)
commite954ef20c29b7af07a8cb5452f14fb69e3d9d2b2
tree184ddda4789b9a8ba15b6bb28714bc32393ad4a1
parent5dd61dfabcaa5bfb67afb8a2d255bd1e156562e3
x86: fix warning about nodeid

Impact: cleanup

Ingo found there warning about nodeid with some configs.

try to use for_each_online_node for non numa too. in that case
nodeid will be 0.

also move out boundary checking from setup_node_bootmem(), so
non-numa config will not check it.

Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
LKML-Reference: <49B03069.80001@kernel.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/mm/init_32.c