* [PATCH] misc: xilinx-sdfec: fix dependency and build error
@ 2019-08-13 23:01 Randy Dunlap
0 siblings, 0 replies; only message in thread
From: Randy Dunlap @ 2019-08-13 23:01 UTC (permalink / raw)
To: LKML
Cc: Derek Kiernan, Dragan Cvetic, Greg Kroah-Hartman,
Geert Uytterhoeven, Arnd Bergmann
From: Randy Dunlap <rdunlap@infradead.org>
lib/devres.c, which implements devm_ioremap_resource(), is only built
when CONFIG_HAS_IOMEM is set/enabled, so XILINX_SDFEC should depend
on HAS_IOMEM. Fixes this build error (as seen on UML builds):
ERROR: "devm_ioremap_resource" [drivers/misc/xilinx_sdfec.ko] undefined!
Fixes: 76d83e1c3233 ("misc: xilinx-sdfec: add core driver")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Derek Kiernan <derek.kiernan@xilinx.com>
Cc: Dragan Cvetic <dragan.cvetic@xilinx.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Arnd Bergmann <arnd@arndb.de>
---
drivers/misc/Kconfig | 1 +
1 file changed, 1 insertion(+)
--- lnx-53-rc4.orig/drivers/misc/Kconfig
+++ lnx-53-rc4/drivers/misc/Kconfig
@@ -465,6 +465,7 @@ config PCI_ENDPOINT_TEST
config XILINX_SDFEC
tristate "Xilinx SDFEC 16"
+ depends on HAS_IOMEM
help
This option enables support for the Xilinx SDFEC (Soft Decision
Forward Error Correction) driver. This enables a char driver
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-08-13 23:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-13 23:01 [PATCH] misc: xilinx-sdfec: fix dependency and build error Randy Dunlap
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).