(I'm so sorry!) Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git

sfc: fix CONFIG_CXL_MEM dependency

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") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Reviewed-by: Alejandro Lucero <alucerop@amd.com> Link: https://patch.msgid.link/20260917155519.2121486-1-arnd@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>


Author Arnd Bergmann Committer Jakub Kicinski Date Commit Parent 2fba9318
+1 -1
1 changed file
+1 -1
1 changed file