diff options
author | Bart Van Assche <bart.vanassche@sandisk.com> | 2017-01-17 12:34:14 -0500 |
---|---|---|
committer | Bart Van Assche <bart.vanassche@sandisk.com> | 2017-01-17 14:26:35 -0500 |
commit | ca825828a5c797d431f6ec6a83c912787ffbb8af (patch) | |
tree | a06c55ccaa985884959dd6633ddb481eef14534c | |
parent | c2a5d94ffd042db6aaee17b767c43502da3bd8f5 (diff) |
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>
-rw-r--r-- | drivers/scsi/qla2xxx/qla_mbx.c | 2 |
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 @@ | |||
10 | #include <linux/delay.h> | 10 | #include <linux/delay.h> |
11 | #include <linux/gfp.h> | 11 | #include <linux/gfp.h> |
12 | 12 | ||
13 | struct rom_cmd { | 13 | static struct rom_cmd { |
14 | uint16_t cmd; | 14 | uint16_t cmd; |
15 | } rom_cmds[] = { | 15 | } rom_cmds[] = { |
16 | { MBC_LOAD_RAM }, | 16 | { MBC_LOAD_RAM }, |