Commit bd0d7aa6b20a9e78def76a0ba8c414daf253c295
Committed by
David S. Miller
1 parent
6d1a3e042f
Exists in
master
and in
6 other branches
drivers/net: static should be at beginning of declaration
Make sure that the 'static' keywork is at the beginning of declaration for drivers/net/usb/kalmia.c This gets rid of warnings like warning: ‘static’ is not at beginning of declaration when building with -Wold-style-declaration (and/or -Wextra which also enables it). Signed-off-by: Jesper Juhl <jj@chaosbits.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Showing 1 changed file with 6 additions and 6 deletions Side-by-side Diff
drivers/net/usb/kalmia.c
... | ... | @@ -100,13 +100,13 @@ |
100 | 100 | static int |
101 | 101 | kalmia_init_and_get_ethernet_addr(struct usbnet *dev, u8 *ethernet_addr) |
102 | 102 | { |
103 | - const static char init_msg_1[] = | |
103 | + static const char init_msg_1[] = | |
104 | 104 | { 0x57, 0x50, 0x04, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, |
105 | 105 | 0x00, 0x00 }; |
106 | - const static char init_msg_2[] = | |
106 | + static const char init_msg_2[] = | |
107 | 107 | { 0x57, 0x50, 0x04, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0xf4, |
108 | 108 | 0x00, 0x00 }; |
109 | - const static int buflen = 28; | |
109 | + static const int buflen = 28; | |
110 | 110 | char *usb_buf; |
111 | 111 | int status; |
112 | 112 | |
113 | 113 | |
114 | 114 | |
... | ... | @@ -239,11 +239,11 @@ |
239 | 239 | * Our task here is to strip off framing, leaving skb with one |
240 | 240 | * data frame for the usbnet framework code to process. |
241 | 241 | */ |
242 | - const static u8 HEADER_END_OF_USB_PACKET[] = | |
242 | + static const u8 HEADER_END_OF_USB_PACKET[] = | |
243 | 243 | { 0x57, 0x5a, 0x00, 0x00, 0x08, 0x00 }; |
244 | - const static u8 EXPECTED_UNKNOWN_HEADER_1[] = | |
244 | + static const u8 EXPECTED_UNKNOWN_HEADER_1[] = | |
245 | 245 | { 0x57, 0x43, 0x1e, 0x00, 0x15, 0x02 }; |
246 | - const static u8 EXPECTED_UNKNOWN_HEADER_2[] = | |
246 | + static const u8 EXPECTED_UNKNOWN_HEADER_2[] = | |
247 | 247 | { 0x57, 0x50, 0x0e, 0x00, 0x00, 0x00 }; |
248 | 248 | int i = 0; |
249 | 249 |