X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=include%2Fasm-i386%2Ftopology.h;h=19b2dafd0c81b1f822e8fa34d8b65c91cd0378c6;hb=7616ee95f27a04fd5a6434e9ef4a82cec4b2807c;hp=7fc512d90ea85762884f419b3ae8285a34e2028f;hpb=b643b0fdbc59cf6bbb086974b29d2571e9e9f646;p=linux-2.6 diff --git a/include/asm-i386/topology.h b/include/asm-i386/topology.h index 7fc512d90e..19b2dafd0c 100644 --- a/include/asm-i386/topology.h +++ b/include/asm-i386/topology.h @@ -67,7 +67,7 @@ static inline int node_to_first_cpu(int node) return first_cpu(mask); } -#define pcibus_to_node(bus) ((long) (bus)->sysdata) +#define pcibus_to_node(bus) ((struct pci_sysdata *)((bus)->sysdata))->node #define pcibus_to_cpumask(bus) node_to_cpumask(pcibus_to_node(bus)) /* sched_domains SD_NODE_INIT for NUMAQ machines */