Skip to contentSkip to conversation

sfc: fix CONFIG_CXL_MEM dependency

PATCH Applied Arnd Bergmann 3 participants 3 messages Sep 17 – Sep 21

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sfc: fix CONFIG_CXL_MEM dependency

From: Arnd Bergmann <[email protected]>

A recent patch introduced a call to devm_cxl_probe_mem(), which is only available when CXL_MEM is enabled. If CXL_MEM is in a loadable module, this causes a link failure for a builtin driver:

s390-linux-ld: drivers/net/ethernet/sfc/efx_cxl.o: in function `efx_cxl_init':
efx_cxl.c:(.text+0x156): undefined reference to `devm_cxl_probe_mem'

Adapt the dependency to require CXL_MEM instead of CXL_BUS, which we know is available when CXL_MEM is.

Fixes 0418860ef2ca ("sfc: obtain and map cxl range using devm_cxl_probe_mem")
---
 drivers/net/ethernet/sfc/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/sfc/Kconfig +1 -1
index 979f2801e2a8..e2898ec2e6e9 100644
@@ -68,7 +68,7 @@ config SFC_MCDI_LOGGING
 	  a sysfs file 'mcdi_logging' under the PCI device.
 config SFC_CXL
 	bool "Solarflare SFC9100-family CXL support"
-	depends on SFC && CXL_BUS >= SFC
+	depends on SFC && CXL_MEM >= SFC
 	default SFC
 	help
 	  This enables SFC CXL support if the kernel is configuring CXL for
Signature · 1 line
2.53.0
Reviewed-by Alejandro Lucero on v1 1/1
#1 lore raw
Quoted 23 lines · Arnd Bergmann

From: Arnd Bergmann <[email protected]>

A recent patch introduced a call to devm_cxl_probe_mem(), which is only available when CXL_MEM is enabled. If CXL_MEM is in a loadable module, this causes a link failure for a builtin driver:

s390-linux-ld: drivers/net/ethernet/sfc/efx_cxl.o: in function `efx_cxl_init':
efx_cxl.c:(.text+0x156): undefined reference to `devm_cxl_probe_mem'

Adapt the dependency to require CXL_MEM instead of CXL_BUS, which we know is available when CXL_MEM is.

Fixes 0418860ef2ca ("sfc: obtain and map cxl range using devm_cxl_probe_mem")
---
  drivers/net/ethernet/sfc/Kconfig | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/sfc/Kconfig +0 -0
index 979f2801e2a8..e2898ec2e6e9 100644

drivers/net/ethernet/sfc/Kconfig config SFC_MCDI_LOGGING · line 74

Quoted 8 lines
drivers/net/ethernet/sfc/Kconfig +1 -1
@@ -68,7 +68,7 @@ config SFC_MCDI_LOGGING
  	  a sysfs file 'mcdi_logging' under the PCI device.
  config SFC_CXL
  	bool "Solarflare SFC9100-family CXL support"
-	depends on SFC && CXL_BUS >= SFC
+	depends on SFC && CXL_MEM >= SFC
  	default SFC
  	help
  	  This enables SFC CXL support if the kernel is configuring CXL for
#2 lore raw
In reply to Arnd Bergmann
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Quoted 10 lines · On Thu, 17 Sep 2026 17:55:11 +0200 you wrote:

From: Arnd Bergmann <[email protected]>

A recent patch introduced a call to devm_cxl_probe_mem(), which is only available when CXL_MEM is enabled. If CXL_MEM is in a loadable module, this causes a link failure for a builtin driver:

s390-linux-ld: drivers/net/ethernet/sfc/efx_cxl.o: in function `efx_cxl_init':
efx_cxl.c:(.text+0x156): undefined reference to `devm_cxl_probe_mem'

[...]

Here is the summary with links:
- sfc: fix CONFIG_CXL_MEM dependency

    https://git.kernel.org/netdev/net-next/c/c6219deaee41

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html