From: Benjamin Herrenschmidt <benh@kernel.crashing.org> Date: 2011-08-05 06:04:13
Commit fea80311a939a746533a6d7e7c3183729d6a3faf
"iomap: make IOPORT/PCI mapping functions conditional"
Broke powerpc build without CONFIG_PCI as we would still define
pci_iomap(), which overlaps with the new empty inline in the headers.
Make our implementation conditional on CONFIG_PCI
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
---
arch/powerpc/kernel/iomap.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
From: Stephen Rothwell <hidden> Date: 2011-08-05 07:37:07
Hi Ben,
On Fri, 05 Aug 2011 16:04:07 +1000 Benjamin Herrenschmidt [off-list ref] wrote:
Commit fea80311a939a746533a6d7e7c3183729d6a3faf
"iomap: make IOPORT/PCI mapping functions conditional"
Broke powerpc build without CONFIG_PCI as we would still define
pci_iomap(), which overlaps with the new empty inline in the headers.
If we are using a static inline implementation for !CONFIG_PCI, then we
should probably not EXPORT it in that case either ...
From: Benjamin Herrenschmidt <benh@kernel.crashing.org> Date: 2011-08-05 10:16:54
On Fri, 2011-08-05 at 17:37 +1000, Stephen Rothwell wrote:
Hi Ben,
On Fri, 05 Aug 2011 16:04:07 +1000 Benjamin Herrenschmidt [off-list ref] wrote:
quoted
Commit fea80311a939a746533a6d7e7c3183729d6a3faf
"iomap: make IOPORT/PCI mapping functions conditional"
Broke powerpc build without CONFIG_PCI as we would still define
pci_iomap(), which overlaps with the new empty inline in the headers.
If we are using a static inline implementation for !CONFIG_PCI, then we
should probably not EXPORT it in that case either ...
Good point, interesting that my build test didn't catch it ... I'll
add another patch on top before I ask Linus to pull.
Cheers,
Ben.