diff options
author | Arnd Bergmann <arnd@arndb.de> | 2019-03-04 20:39:08 +0100 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2019-03-06 19:26:46 -0500 |
commit | 352b205a3bac6bb68f27228768a5c12294e650bf (patch) | |
tree | daf3b0816bf9607c12a029db01450c3abf124f5b /scripts/gdb/linux/proc.py | |
parent | 98effe4746c6e64b76703bbf5fd64e304e3e5396 (diff) | |
download | linux-352b205a3bac6bb68f27228768a5c12294e650bf.tar.gz linux-352b205a3bac6bb68f27228768a5c12294e650bf.tar.bz2 linux-352b205a3bac6bb68f27228768a5c12294e650bf.zip |
scsi: lpfc: fix unused variable warning
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: 63df6d637e33 ("scsi: lpfc: Adapt cpucheck debugfs logic to Hardware Queues")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'scripts/gdb/linux/proc.py')
0 files changed, 0 insertions, 0 deletions