OSDN Git Service

scsi: qla4xxx: Move 'qla4_82xx_reg_tbl' to the only place its used
authorLee Jones <lee.jones@linaro.org>
Tue, 21 Jul 2020 16:41:27 +0000 (17:41 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Sat, 25 Jul 2020 02:10:00 +0000 (22:10 -0400)
commitf30554c2711224a6ecf6e875c964183fbc4c5445
treeffeb16a8b78beb55dd4e198dd09ac93fd56ab2b1
parent685f94794f9a6705f5630a261e9b24553c969b11
scsi: qla4xxx: Move 'qla4_82xx_reg_tbl' to the only place its used

Fixes the following W=1 kernel build warning(s):

 In file included from drivers/scsi/qla4xxx/ql4_def.h:43,
 from drivers/scsi/qla4xxx/ql4_mbx.c:9:
 drivers/scsi/qla4xxx/ql4_nx.h:602:23: warning: ‘qla4_82xx_reg_tbl’ defined but not used [-Wunused-const-variable=]
 602 | static const uint32_t qla4_82xx_reg_tbl[] = {
 | ^~~~~~~~~~~~~~~~~
 [...]
 NB: Lots of these

Link: https://lore.kernel.org/r/20200721164148.2617584-20-lee.jones@linaro.org
Cc: QLogic-Storage-Upstream@qlogic.com
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla4xxx/ql4_nx.h
drivers/scsi/qla4xxx/ql4_os.c