From: H Hartley Sweeten Date: Tue, 6 Dec 2011 20:22:03 +0000 (-0800) Subject: x86: Use the same node_distance for 32 and 64-bit X-Git-Tag: v3.3-rc1~188^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=79f1ddd06471b094ae30eb17b33beb9f1234ca93;p=pandora-kernel.git x86: Use the same node_distance for 32 and 64-bit The node_distance function is not x86 64-bit specific. Having the #ifdef around the extern function declaration and the #define causes the default node_distance macro to be used in asm-generic/topology.h. This also causes a sparse warning in arch/x86/mm/numa.c when CONFIG_X86_64 is not set: warning: symbol '__node_distance' was not declared. Should it be static? Remove the #ifdef to fix both issues. Signed-off-by: H Hartley Sweeten Signed-off-by: David Rientjes Acked-by: Tejun Heo Cc: Yinghai Lu Link: http://lkml.kernel.org/r/alpine.DEB.2.00.1112061220310.28251@chino.kir.corp.google.com Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed