• Arnd Bergmann's avatar
    scsi: lpfc: fix unused variable warning · 352b205a
    Arnd Bergmann authored
    The newly introduced 'cpu' variable is only used inside of an optional
    block, so we get a warning without CONFIG_SCSI_LPFC_DEBUG_FS:
    
    drivers/scsi/lpfc/lpfc_nvme.c: In function 'lpfc_nvme_io_cmd_wqe_cmpl':
    drivers/scsi/lpfc/lpfc_nvme.c:968:30: error: unused variable 'cpu' [-Werror=unused-variable]
      uint32_t code, status, idx, cpu;
    
    Move the declaration into the same block to avoid the warning.
    
    Fixes: 63df6d63 ("scsi: lpfc: Adapt cpucheck debugfs logic to Hardware Queues")
    Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
    Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
    352b205a
lpfc_nvme.c 77.6 KB