alpha: drop pci_iomap/pci_iounmap from pci-noop.c
I notice that io.h on alpha pulls in asm-generic/iomap.h. This header includes these bits:
#ifdef CONFIG_PCI
/* Create a virtual mapping cookie for a PCI BAR (memory or IO) */ struct pci_dev;
extern void __iomem *pci_iomap(struct pci_dev *dev, int bar, unsigned ong max);
extern void pci_iounmap(struct pci_dev *dev, void __iomem *); #else
struct pci_dev;
static inline void __iomem *pci_iomap(struct pci_dev *dev, int bar, nsigned long max)
{
return NULL;
}static inline void pci_iounmap(struct pci_dev *dev, void __iomem *addr) { }
#endif
#endif
Thus if PCI is not selected we get pci_iomap and pci_iounmap stubbed out with inline functions. However, on the Jenkins architecture, arch/alpha/kernel/pci-noop.c is compiled, which includes offline versions of same stubs. Since Jenkins disables PCI, I wonder how does this compile - won't the two definitions conflict?
It's possible that the ones in arch/alpha/kernel/pci-noop.c can just be removed, and that the conflict is avoided by luck and the offline functions are never used.
If true, would the following (untested) patch be the right thing to do?
Feedback from someone who has the tools to build the Jenkins config would also be appreciated.
Thanks!
-->
alpha: drop pci_iomap/pci_iounmap from pci-noop.c
Jenkins disables PCI so asm-generic provides inline stubs for these, we don't need offline stubs as well.
---
arch/alpha/kernel/pci-noop.c +0 -12
@@ -185,15 +185,3 @@ struct dma_map_ops alpha_noop_ops = {struct dma_map_ops *dma_ops = &alpha_noop_ops;EXPORT_SYMBOL (dma_ops); - -void __iomem *pci_iomap (struct pci_dev *dev,int bar,unsigned long maxlen) -{ -return NULL ; -} - -void pci_iounmap (struct pci_dev *dev,void __iomem * addr) -{ -} - -EXPORT_SYMBOL (pci_iomap); -EXPORT_SYMBOL (pci_iounmap);
Signature · 1 line
MST
Raúl Porcel
Tested-byQuoted 2 lines · Michael S. Tsirkin
I notice that
io.hon alpha pulls inasm-generic/iomap.h. This header includes these bits:
[snip]
WFM on my DS20E with the "[PATCH-RFC 03/10] alpha: switch to GENERIC_PCI_IOMAP" patch series using 3.2.0-rc4-00231-g958c6c2
so,
--
To unsubscribe from this list: send the line "unsubscribe linux-alpha" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html