s390: link in devres.o if pci is enabled
PATCH 1/1 s390: link in devres.o if pci is enabled
kernel/irq/devres.o is only built by default if the arch is using GENERIC_HARDIRQS, which s390 is not. As a result, drivers using devm_request{,_threaded}_irq() fail to build on s390. While the utility of those drivers on a mainframe is questionable, these interfaces should be supported on s390 as well, since they don't fundamentally require more than {request,free}_irq.
In the case of CONFIG_PCI, build and link kernel/irq/devres.o into the kernel image.
Signed-off-by Kyle McMartin <[email protected]>
arch/s390/kernel/Makefile +2 -0
@@ -64,6 +64,8 @@ obj-$(CONFIG_PERF_EVENTS) += perf_event.o perf_cpum_cf.o obj-y += runtime_instr.o cache.o endif +obj-$(CONFIG_PCI) += ../../../kernel/irq/devres.o + # vdso obj-$(CONFIG_64BIT) += vdso64/ obj-$(CONFIG_32BIT) += vdso32/