Skip to contentSkip to conversation

qla2xxx: fix nvme_fc_rcv_ls_req undefined error

PATCH Applied Nilesh Javali 2 participants 3 messages Aug 24, 2023 – Aug 31, 2023

Subsystems (2)
lore
Share & tools
lore

Nilesh Javali

author maintainer
#0 lore raw

PATCH 1/1 qla2xxx: fix nvme_fc_rcv_ls_req undefined error

The kernel robot reported below build error,

Quoted 1 line
Quoted 1 line

ERROR: modpost: "nvme_fc_rcv_ls_req" [drivers/scsi/qla2xxx/qla2xxx.ko] undefined!

Use CONFIG_NVME_FC enabled check to fix the build error.

---
 drivers/scsi/qla2xxx/qla_nvme.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/scsi/qla2xxx/qla_nvme.c +3 -1
index 1a31e877e6cb..62a67662cbf3 100644
@@ -1182,10 +1182,12 @@ qla2xxx_process_purls_pkt(struct scsi_qla_host *vha, struct purex_item *item)
 	struct qla_nvme_unsol_ctx *uctx = item->purls_context;
 	fc_port_t *fcport = uctx->fcport;
 	struct qla_nvme_lsrjt_pt_arg a;
-	int ret;
+	int ret = 1;
 
+#if (IS_ENABLED(CONFIG_NVME_FC))
 	ret = nvme_fc_rcv_ls_req(fcport->nvme_remote_port, &uctx->lsrsp,
 				 &item->iocb, item->size);
+#endif
 	if (ret) {
 		ql_dbg(ql_dbg_unsol, vha, 0x2125, "NVMe tranport ls_req failed\n");
 		memset((void *)&a, 0, sizeof(a));
Signature · 1 line
2.23.1
#1 lore raw

Nilesh,

Quoted 5 lines

The kernel robot reported below build error,

Quoted 1 line
Quoted 1 line

ERROR: modpost: "nvme_fc_rcv_ls_req" [drivers/scsi/qla2xxx/qla2xxx.ko] undefined!

Use CONFIG_NVME_FC enabled check to fix the build error.

Applied to 6.6/scsi-staging, thanks!

Signature · 1 line
Martin K. Petersen	Oracle Linux Engineering
#2 lore raw
In reply to Nilesh Javali
Quoted 8 lines · Nilesh Javali

The kernel robot reported below build error,

Quoted 1 line
Quoted 1 line

ERROR: modpost: "nvme_fc_rcv_ls_req" [drivers/scsi/qla2xxx/qla2xxx.ko] undefined!

Use CONFIG_NVME_FC enabled check to fix the build error.

[...]

Applied to 6.6/scsi-queue, thanks!

[1/1] qla2xxx: fix nvme_fc_rcv_ls_req undefined error

      https://git.kernel.org/mkp/scsi/c/27177862de96
Signature · 1 line
Martin K. Petersen	Oracle Linux Engineering