]> err.no Git - linux-2.6/blobdiff - include/asm-powerpc/topology.h
[PATCH] LOG2: Alter get_order() so that it can make use of ilog2() on a constant
[linux-2.6] / include / asm-powerpc / topology.h
index 9fe7894ee035648f9c1678b496f4dfa723a63b5a..50c014007de754c3019fa7f838160a515b6f38f1 100644 (file)
@@ -32,7 +32,14 @@ static inline int node_to_first_cpu(int node)
 int of_node_to_nid(struct device_node *device);
 
 struct pci_bus;
+#ifdef CONFIG_PCI
 extern int pcibus_to_node(struct pci_bus *bus);
+#else
+static inline int pcibus_to_node(struct pci_bus *bus)
+{
+       return -1;
+}
+#endif
 
 #define pcibus_to_cpumask(bus) (pcibus_to_node(bus) == -1 ? \
                                        CPU_MASK_ALL : \