summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVenkat Rao Bagalkote <venkat88@linux.ibm.com>2026-09-03 13:13:29 +0530
committerMartin K. Petersen (Oracle) <mkp@kernel.org>2026-09-09 21:41:10 -0400
commit1274045b0eda1df5a5cdd3e63ed48cf013b3b4ea (patch)
treef7322cc4e2391d897964a3a468de4baa7272ca62
parent779f202a92ef10a426efc07d0f4267918cb07ca3 (diff)
downloadlinux-next-1274045b0eda1df5a5cdd3e63ed48cf013b3b4ea.tar.gz
linux-next-1274045b0eda1df5a5cdd3e63ed48cf013b3b4ea.zip
scsi: ibmvfc: Add Kconfig dependency to fix link failure when NVME_FC=m
Building with CONFIG_SCSI_IBMVFC=y and CONFIG_NVME_FC=m results in a link failure: ibmvfc-nvme.o: undefined reference to `nvme_fc_register_localport' ibmvfc-nvme.o: undefined reference to `nvme_fc_register_remoteport' ibmvfc-nvme.o: undefined reference to `nvme_fc_unregister_localport' ibmvfc-nvme.o: undefined reference to `nvme_fc_unregister_remoteport' ibmvfc-core.o: undefined reference to `nvme_fc_rescan_remoteport' IS_ENABLED() evaluates to 1 for both =y and =m, so the nvme_fc_* call sites are kept in the object file. When SCSI_IBMVFC=y (built-in) but NVME_FC=m (loadable module), the linker cannot resolve these symbols at vmlinux link time. Add the same "depends on NVME_FC || NVME_FC=n" constraint already used by SCSI_LPFC to prevent this configuration. Reported-by: Pavithra <pavrampu@linux.ibm.com> Closes: https://lore.kernel.org/all/327877a29337aa526cc50ac88fbddb86@linux.ibm.com/ Signed-off-by: Venkat Rao Bagalkote <venkat88@linux.ibm.com> Tested-by: Pavithra <pavrampu@linux.ibm.com> Acked-by: Tyrel Datwyler <tyreld@linux.ibm.com> Link: https://patch.msgid.link/20260903074329.6705-1-venkat88@linux.ibm.com Signed-off-by: Martin K. Petersen (Oracle) <mkp@kernel.org>
-rw-r--r--drivers/scsi/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/Kconfig b/drivers/scsi/Kconfig
index 4a2af0f702e1..1eec66195cf4 100644
--- a/drivers/scsi/Kconfig
+++ b/drivers/scsi/Kconfig
@@ -753,6 +753,7 @@ config SCSI_IBMVFC
tristate "IBM Virtual FC support"
depends on PPC_PSERIES && SCSI
depends on SCSI_FC_ATTRS
+ depends on NVME_FC || NVME_FC=n
help
This is the IBM POWER Virtual FC Client