iomap s390 build fix
PATCH 1/1 iomap s390 build fix
From: Heiko Carstens <[email protected]>
9ac7849e35f705830f7b016ff272b0ff1f7ff759 breaks s390, we don't have any PCI devices...
lib/built-in.o(.text+0xcdc): In function `devm_ioport_map_release':
: undefined reference to ioport_unmap' lib/built-in.o(.text+0xd64): In function devm_ioport_map':
: undefined reference to ioport_map' lib/built-in.o(.text+0xdd2): In function devm_ioport_unmap':
: undefined reference to ioport_unmap' lib/built-in.o(.text+0x10a2): In function pcim_iomap_release':
: undefined reference to pci_iounmap' lib/built-in.o(.text+0x11bc): In function pcim_iomap':
: undefined reference to pci_iomap' lib/built-in.o(.text+0x121e): In function pcim_iounmap':
: undefined reference to pci_iounmap' lib/built-in.o(.text+0x136c): In function pcim_iomap_regions':
: undefined reference to pci_request_region' lib/built-in.o(.text+0x13b4): In function pcim_iomap_regions':
: undefined reference to pci_release_region' lib/built-in.o(.text+0x13e4): In function pcim_iomap_regions':
: undefined reference to `pci_release_region'
make: *** [.tmp_vmlinux1] Error 1
--- lib/Makefile | 3 ++- 1 files changed, 2 insertions(+), 1 deletion(-)
lib/Makefile +2 -1
@@ -12,13 +12,14 @@ lib-$(CONFIG_SMP) += cpumask.o lib-y += kobject.o kref.o kobject_uevent.o klist.o -obj-y += sort.o parser.o halfmd4.o debug_locks.o random32.o iomap.o +obj-y += sort.o parser.o halfmd4.o debug_locks.o random32.o ifeq ($(CONFIG_DEBUG_KOBJECT),y) CFLAGS_kobject.o += -DDEBUG CFLAGS_kobject_uevent.o += -DDEBUG endif +obj-$(CONFIG_PCI) += iomap.o obj-$(CONFIG_IOMAP_COPY) += iomap_copy.o obj-$(CONFIG_DEBUG_LOCKING_API_SELFTESTS) += locking-selftest.o obj-$(CONFIG_DEBUG_SPINLOCK) += spinlock_debug.o