summaryrefslogtreecommitdiff
path: root/drivers/scsi/qla2xxx/qla_mbx.c
diff options
context:
space:
mode:
authorBart Van Assche <bart.vanassche@sandisk.com>2017-01-17 20:34:14 +0300
committerBart Van Assche <bart.vanassche@sandisk.com>2017-01-17 22:26:35 +0300
commitca825828a5c797d431f6ec6a83c912787ffbb8af (patch)
treea06c55ccaa985884959dd6633ddb481eef14534c /drivers/scsi/qla2xxx/qla_mbx.c
parentc2a5d94ffd042db6aaee17b767c43502da3bd8f5 (diff)
downloadlinux-ca825828a5c797d431f6ec6a83c912787ffbb8af.tar.xz
qla2xxx: Declare an array with file scope static
This patch avoids that building with W=1 triggers a compiler warning about a missing declaration. Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com> Acked-by: Himanshu Madhani <himanshu.madhani@qlogic.com> Cc: Quinn Tran <quinn.tran@qlogic.com> Cc: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_mbx.c')
-rw-r--r--drivers/scsi/qla2xxx/qla_mbx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/qla2xxx/qla_mbx.c b/drivers/scsi/qla2xxx/qla_mbx.c
index 3f0b592f02bf..b3a9f6a40a44 100644
--- a/drivers/scsi/qla2xxx/qla_mbx.c
+++ b/drivers/scsi/qla2xxx/qla_mbx.c
@@ -10,7 +10,7 @@
#include <linux/delay.h>
#include <linux/gfp.h>
-struct rom_cmd {
+static struct rom_cmd {
uint16_t cmd;
} rom_cmds[] = {
{ MBC_LOAD_RAM },