Skip to contentSkip to conversation

can: ctucanfd: platform: add missing dependency to HAS_IOMEM

PATCH In review Marc Kleine-Budde 2 participants 2 messages May 23, 2022

Subsystems (2)
lore
Share & tools
lore

Marc Kleine-Budde

author maintainer
#0 lore raw

PATCH 1/1 can: ctucanfd: platform: add missing dependency to HAS_IOMEM

The kernel test robot noticed that the ctucanfd platform driver fails during modpost on platforms that don't support IOMEM.

| ERROR: modpost: "devm_ioremap_resource" [drivers/net/can/ctucanfd/ctucanfd_platform.ko] undefined!

This patch adds the missing HAS_IOMEM dependency.

Fixes e8f0c23a2415 ("can: ctucanfd: CTU CAN FD open-source IP core - platform/SoC support.")
Cc Pavel Pisa <[email protected]> (maintainer:CTU CAN FD DRIVER)
Cc Ondrej Ille <[email protected]> (maintainer:CTU CAN FD DRIVER)
---
 drivers/net/can/ctucanfd/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/can/ctucanfd/Kconfig +1 -1
index 3c383612eb17..6e2073351a8f 100644
@@ -23,7 +23,7 @@ config CAN_CTUCANFD_PCI
 
 config CAN_CTUCANFD_PLATFORM
 	tristate "CTU CAN-FD IP core platform (FPGA, SoC) driver"
-	depends on OF || COMPILE_TEST
+	depends on HAS_IOMEM && (OF || COMPILE_TEST)
 	select CAN_CTUCANFD
 	help
 	  The core has been tested together with OpenCores SJA1000
Signature · 1 line
2.35.1
maintainer Acked-by on v1 1/1
#1 lore raw

Hello Marc,

thanks much for correction.

Quoted 6 lines · On Monday 23 of May 2022 14:37:20 Marc Kleine-Budde wrote:

The kernel test robot noticed that the ctucanfd platform driver fails during modpost on platforms that don't support IOMEM.

| ERROR: modpost: "devm_ioremap_resource"
| [drivers/net/can/ctucanfd/ctucanfd_platform.ko] undefined!

Quoted 7 lines

This patch adds the missing HAS_IOMEM dependency.

Fixes e8f0c23a2415 ("can: ctucanfd: CTU CAN FD open-source IP core -

platform/SoC support.") Reported-by: kernel test robot <[email protected]>

Cc Pavel Pisa <[email protected]> (maintainer:CTU CAN FD DRIVER)
Cc Ondrej Ille <[email protected]> (maintainer:CTU CAN FD DRIVER)
Quoted 17 lines
---
 drivers/net/can/ctucanfd/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
(quoted diff) +0 -0

b/drivers/net/can/ctucanfd/Kconfig index 3c383612eb17..6e2073351a8f 100644

drivers/net/can/ctucanfd/Kconfig +1 -1
@@ -23,7 +23,7 @@ config CAN_CTUCANFD_PCI
 
 config CAN_CTUCANFD_PLATFORM
 	tristate "CTU CAN-FD IP core platform (FPGA, SoC) driver"
-	depends on OF || COMPILE_TEST
+	depends on HAS_IOMEM && (OF || COMPILE_TEST)
 	select CAN_CTUCANFD
 	help
 	  The core has been tested together with OpenCores SJA1000