[PATCH] s390: link in devres.o if pci is enabled

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <kyle@xxxxxxxxxx>

--- a/arch/s390/kernel/Makefile
+++ b/arch/s390/kernel/Makefile
@@ -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/
--
To unsubscribe from this list: send the line "unsubscribe linux-s390" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Kernel Development]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Info]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Linux Media]     [Device Mapper]

  Powered by Linux