]> err.no Git - linux-2.6/commitdiff
[PATCH] ppc64: pcibus_to_node fix
authorChristoph Lameter <christoph@lameter.com>
Thu, 23 Jun 2005 07:08:17 +0000 (00:08 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Thu, 23 Jun 2005 16:45:08 +0000 (09:45 -0700)
asm-generic/topology.h must also be included if CONFIG_NUMA is set in order to
provide the fall back pcibus_to_node function.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/asm-ppc64/topology.h

index d58d9dd799980b05cff9f79eb6db95e0e1a89639..fcdcfd26a26bcbc41b6ed18cfd4e3c98bade84f4 100644 (file)
@@ -59,10 +59,8 @@ static inline int node_to_first_cpu(int node)
        .nr_balance_failed      = 0,                    \
 }
 
-#else /* !CONFIG_NUMA */
+#endif /* CONFIG_NUMA */
 
 #include <asm-generic/topology.h>
 
-#endif /* CONFIG_NUMA */
-
 #endif /* _ASM_PPC64_TOPOLOGY_H */