diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2013-06-13 08:34:50 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2013-06-21 12:07:01 -0400 |
commit | 4f675e8a6b338ff6ac510595649c647d4888576e (patch) | |
tree | 22dd9160e7636d657a9d9057b1bd147ee1a05d42 /arch/mips/pci | |
parent | 73ec78b06ecadb2ce67aae2509e8683ad8b92d14 (diff) |
MIPS: IP27: Fix build error if CONFIG_PCI=y and CONFIG_NUMA disabled.
Then <asm-generic/topology.h> will define cpp macro as default definition
for pcibus_to_node resulting in:
CC arch/mips/pci/pci-ip27.o
arch/mips/pci/pci-ip27.c:220:7: error: expected identifier or ‘(’ before ‘void’
arch/mips/pci/pci-ip27.c:220:12: error: expected ‘)’ before ‘(’ token
make[1]: *** [arch/mips/pci/pci-ip27.o] Error 1
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/pci')
-rw-r--r-- | arch/mips/pci/pci-ip27.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/mips/pci/pci-ip27.c b/arch/mips/pci/pci-ip27.c index 6eb65e44d9e4..7b2ac81e1f59 100644 --- a/arch/mips/pci/pci-ip27.c +++ b/arch/mips/pci/pci-ip27.c | |||
@@ -217,6 +217,7 @@ static void pci_fixup_ioc3(struct pci_dev *d) | |||
217 | pci_disable_swapping(d); | 217 | pci_disable_swapping(d); |
218 | } | 218 | } |
219 | 219 | ||
220 | #ifdef CONFIG_NUMA | ||
220 | int pcibus_to_node(struct pci_bus *bus) | 221 | int pcibus_to_node(struct pci_bus *bus) |
221 | { | 222 | { |
222 | struct bridge_controller *bc = BRIDGE_CONTROLLER(bus); | 223 | struct bridge_controller *bc = BRIDGE_CONTROLLER(bus); |
@@ -224,6 +225,7 @@ int pcibus_to_node(struct pci_bus *bus) | |||
224 | return bc->nasid; | 225 | return bc->nasid; |
225 | } | 226 | } |
226 | EXPORT_SYMBOL(pcibus_to_node); | 227 | EXPORT_SYMBOL(pcibus_to_node); |
228 | #endif /* CONFIG_NUMA */ | ||
227 | 229 | ||
228 | DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_SGI, PCI_DEVICE_ID_SGI_IOC3, | 230 | DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_SGI, PCI_DEVICE_ID_SGI_IOC3, |
229 | pci_fixup_ioc3); | 231 | pci_fixup_ioc3); |