From: Bart Van Assche Date: Tue, 17 Jan 2017 17:34:14 +0000 (-0800) Subject: qla2xxx: Declare an array with file scope static X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=ca825828a5c797d431f6ec6a83c912787ffbb8af;p=openwrt%2Fstaging%2Fblogic.git 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 Acked-by: Himanshu Madhani Cc: Quinn Tran Cc: Christoph Hellwig --- 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 #include -struct rom_cmd { +static struct rom_cmd { uint16_t cmd; } rom_cmds[] = { { MBC_LOAD_RAM },