[lkml]   [2019]   [Aug]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[PATCH] misc: xilinx-sdfec: fix dependency and build error
From: Randy Dunlap <>

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 <>
Cc: Derek Kiernan <>
Cc: Dragan Cvetic <>
Cc: Greg Kroah-Hartman <>
Cc: Geert Uytterhoeven <>
Cc: Arnd Bergmann <>
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

tristate "Xilinx SDFEC 16"
+ depends on HAS_IOMEM
This option enables support for the Xilinx SDFEC (Soft Decision
Forward Error Correction) driver. This enables a char driver

 \ /
  Last update: 2019-08-14 01:02    [W:0.090 / U:0.012 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site