projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c2a5d94
)
qla2xxx: Declare an array with file scope static
author
Bart Van Assche
<
[email protected]
>
Tue, 17 Jan 2017 17:34:14 +0000
(09:34 -0800)
committer
Bart Van Assche
<
[email protected]
>
Tue, 17 Jan 2017 19:26:35 +0000
(11:26 -0800)
This patch avoids that building with W=1 triggers a compiler warning
about a missing declaration.
Signed-off-by: Bart Van Assche <
[email protected]
>
Acked-by: Himanshu Madhani <
[email protected]
>
Cc: Quinn Tran <
[email protected]
>
Cc: Christoph Hellwig <
[email protected]
>
drivers/scsi/qla2xxx/qla_mbx.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/qla2xxx/qla_mbx.c
b/drivers/scsi/qla2xxx/qla_mbx.c
index 3f0b592f02bf759e67bdd3277a83a800bc3b2c2d..b3a9f6a40a448b2421207aa4810b37ca9eb93a10 100644
(file)
--- 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 {
+st
atic st
ruct rom_cmd {
uint16_t cmd;
} rom_cmds[] = {
{ MBC_LOAD_RAM },