mirror of
https://github.com/torvalds/linux.git
synced 2026-09-22 12:44:03 +02:00
scsi: fnic: Fix built-in NVMe/FC build
The fnic NVMe/FC code is guarded with IS_ENABLED(CONFIG_NVME_FC). That also evaluates true when NVME_FC is built as a module. When fnic is built into vmlinux and NVME_FC=m, fnic_nvme.o still references the NVMe/FC transport helpers even though those helpers are not reachable from built-in code. The final vmlinux link then fails with undefined nvme_fc_* symbols. Use IS_REACHABLE(CONFIG_NVME_FC) for the fnic NVMe/FC implementation and prototypes so built-in fnic uses the disabled stubs unless the NVMe/FC transport is reachable. Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202608092246.XZe7Hlrt-lkp@intel.com/ Reviewed-by: Sesidhar Baddela <sebaddel@cisco.com> Reviewed-by: Arulprabhu Ponnusamy <arulponn@cisco.com> Reviewed-by: Gian Carlo Boffa <gcboffa@cisco.com> Reviewed-by: Arun Easi <aeasi@cisco.com> Signed-off-by: Karan Tilak Kumar <kartilak@cisco.com> Link: https://patch.msgid.link/20260810110627.4521-1-kartilak@cisco.com Signed-off-by: Martin K. Petersen (Oracle) <mkp@kernel.org>
This commit is contained in:
parent
15b7fe6db6
commit
376a3960e5
|
|
@ -22,7 +22,7 @@
|
|||
#include "fnic_trace.h"
|
||||
#include "fdls_fc.h"
|
||||
|
||||
#if IS_ENABLED(CONFIG_NVME_FC)
|
||||
#if IS_REACHABLE(CONFIG_NVME_FC)
|
||||
|
||||
static bool nvfnic_ls_req_cleanup(struct fnic_iport_s *iport,
|
||||
struct nvmefc_ls_req *lsreq,
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ struct nvfnic_ls_req {
|
|||
unsigned int flags;
|
||||
};
|
||||
|
||||
#if IS_ENABLED(CONFIG_NVME_FC)
|
||||
#if IS_REACHABLE(CONFIG_NVME_FC)
|
||||
int nvfnic_nvme_io_done_handler(void *arg);
|
||||
struct fnic_io_req *nvfnic_find_io_req_by_tag(struct fnic *fnic, uint16_t tag);
|
||||
void nvfnic_reset_fcpio_tag_pool(struct fnic_iport_s *iport);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user