parisc: fix longstanding build failures for !CONFIG_PCI
Subsystems (2)
PATCH 1/1 parisc: fix longstanding build failures for !CONFIG_PCI
Upstream commit fea80311a939a746533a6d7e7c3183729d6a3faf
"iomap: make IOPORT/PCI mapping functions conditional"
introduced an arch independent stub for pci_iounmap() but the parisc had its own that was unconditionally built. So builds since v3.0-3553-gfea8031 have been failing with:
arch/parisc/lib/iomap.c:439:6: error: redefinition of 'pci_iounmap' include/asm-generic/iomap.h:75:20: note: previous definition of 'pci_iounmap' was here
Making the parisc one specific to CONFIG_PCI fixes the problem.
---
[This fixes the linux-next builds that have been consistently failing
since last July -- http://kisskb.ellerman.id.au/kisskb/target/2069/ ]
arch/parisc/lib/iomap.c +3 -1
@@ -436,12 +436,15 @@ void ioport_unmap(void __iomem *addr) } } +#ifdef CONFIG_PCI void pci_iounmap (struct pci_dev *dev,void __iomem * addr) {if (!INDIRECT_ADDR (addr)) {iounmap (addr); } } +EXPORT_SYMBOL (pci_iounmap); +#endif EXPORT_SYMBOL (ioread8);EXPORT_SYMBOL (ioread16);
@@ -461,4 +464,3 @@ EXPORT_SYMBOL(iowrite16_rep);EXPORT_SYMBOL (iowrite32_rep);EXPORT_SYMBOL (ioport_map);EXPORT_SYMBOL (ioport_unmap); -EXPORT_SYMBOL (pci_iounmap);
Signature · 1 line
1.7.9.1
James Bottomley
maintainerarch/parisc/lib/iomap.c
Quoted 24 lines · Paul Gortmaker
Upstream commit
fea80311a939a746533a6d7e7c3183729d6a3faf"iomap: make IOPORT/PCI mapping functions conditional"
introduced an arch independent stub for
pci_iounmap()but the parisc had its own that was unconditionally built. So builds since v3.0-3553-gfea8031 have been failing with:
arch/parisc/lib/iomap.c:439:6: error: redefinition of 'pci_iounmap'include/asm-generic/iomap.h:75:20: note: previous definition of 'pci_iounmap' was hereMaking the parisc one specific to
CONFIG_PCIfixes the problem.CC Randy Dunlap <[email protected]>Signed-off-by Paul Gortmaker <[email protected]>---
[This fixes the linux-next builds that have been consistently failing
since last July -- http://kisskb.ellerman.id.au/kisskb/target/2069/ ]arch/parisc/lib/iomap.c +0
-0
This should break more than just PARISC ... any non-PCI build for any arch should be broken, so this is the proposed generic fix:
http://marc.info/?l=linux-parisc&m=132794183521355
James
Quoted 29 lines · James Bottomley
arch/parisc/lib/iomap.c
Quoted 24 lines · Paul Gortmaker
Upstream commit
fea80311a939a746533a6d7e7c3183729d6a3faf"iomap: make IOPORT/PCI mapping functions conditional"
introduced an arch independent stub for
pci_iounmap()but the parisc had its own that was unconditionally built. So builds since v3.0-3553-gfea8031 have been failing with:
arch/parisc/lib/iomap.c:439:6: error: redefinition of 'pci_iounmap'include/asm-generic/iomap.h:75:20: note: previous definition of 'pci_iounmap' was hereMaking the parisc one specific to
CONFIG_PCIfixes the problem.CC Randy Dunlap <[email protected]>Signed-off-by Paul Gortmaker <[email protected]>---
[This fixes the linux-next builds that have been consistently failing
since last July -- http://kisskb.ellerman.id.au/kisskb/target/2069/ ]arch/parisc/lib/iomap.c +0
-0This should break more than just PARISC ... any non-PCI build for any arch should be broken, so this is the proposed generic fix:
Quoted 1 line
Similar comments here, it would have saved me looking at it at all if this was simply present in linux-next anytime after last July.
Thanks,
Paul.
Quoted 4 lines
James