lpfc: Fix build error in lpfc_scsi.c
Subsystems (3)
PATCH 1/1 lpfc: Fix build error in lpfc_scsi.c
Integration with VMID patches resulted in a build error when CONFIG_DEBUG_FS is disabled and driver option CONFIG_SCSI_LPFC_DEBUG_FS is disabled.
It results in an undefined variable:
lpfc_scsi:5595:3: error: 'uuid' undeclared (first use in this function); did you mean 'upid'?
Fixes 33c79741deaf ("scsi: lpfc: vmid: Introduce VMID in I/O path")
Reported-by kernel test robot <[email protected]>
Signed-off-by James Smart <[email protected]>
--- drivers/scsi/lpfc/lpfc_scsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/scsi/lpfc/lpfc_scsi.c +1 -1
@@ -5455,9 +5455,9 @@ lpfc_queuecommand(struct Scsi_Host *shost, struct scsi_cmnd *cmnd)struct lpfc_io_buf *lpfc_cmd;struct fc_rport *rport =starget_to_rport (scsi_target (cmnd->device));int err, idx; +u8 *uuid =NULL ;#ifdef CONFIG_SCSI_LPFC_DEBUG_FS uint64_t start =0L ; -u8 *uuid =NULL ;if (phba->ktime_on) start =ktime_get_ns ();
Signature · 1 line
2.26.2
Martin K. Petersen
AppliedJames,
Quoted 3 lines
Integration with VMID patches resulted in a build error when
CONFIG_DEBUG_FSis disabled and driver optionCONFIG_SCSI_LPFC_DEBUG_FSis disabled.
Applied to 5.14/scsi-staging, thanks!
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering