Commit c0dbf37e78c5c1e3e6cfeb39de30518fdde33e83
Committed by
David S. Miller
1 parent
1853e2e15d
Exists in
master
and in
39 other branches
s2io: make strings at tables const
Put immutable data in read/only section. Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: Jon Mason <jon.mason@exar.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Showing 2 changed files with 6 additions and 6 deletions Side-by-side Diff
drivers/net/s2io.c
... | ... | @@ -91,11 +91,11 @@ |
91 | 91 | #define DRV_VERSION "2.0.26.27" |
92 | 92 | |
93 | 93 | /* S2io Driver name & version. */ |
94 | -static char s2io_driver_name[] = "Neterion"; | |
95 | -static char s2io_driver_version[] = DRV_VERSION; | |
94 | +static const char s2io_driver_name[] = "Neterion"; | |
95 | +static const char s2io_driver_version[] = DRV_VERSION; | |
96 | 96 | |
97 | -static int rxd_size[2] = {32, 48}; | |
98 | -static int rxd_count[2] = {127, 85}; | |
97 | +static const int rxd_size[2] = {32, 48}; | |
98 | +static const int rxd_count[2] = {127, 85}; | |
99 | 99 | |
100 | 100 | static inline int RXD_IS_UP2DT(struct RxD_t *rxdp) |
101 | 101 | { |
drivers/net/s2io.h
... | ... | @@ -360,7 +360,7 @@ |
360 | 360 | #define MAX_TX_DESC (MAX_AVAILABLE_TXDS) |
361 | 361 | |
362 | 362 | /* FIFO mappings for all possible number of fifos configured */ |
363 | -static int fifo_map[][MAX_TX_FIFOS] = { | |
363 | +static const int fifo_map[][MAX_TX_FIFOS] = { | |
364 | 364 | {0, 0, 0, 0, 0, 0, 0, 0}, |
365 | 365 | {0, 0, 0, 0, 1, 1, 1, 1}, |
366 | 366 | {0, 0, 0, 1, 1, 1, 2, 2}, |
... | ... | @@ -371,7 +371,7 @@ |
371 | 371 | {0, 1, 2, 3, 4, 5, 6, 7}, |
372 | 372 | }; |
373 | 373 | |
374 | -static u16 fifo_selector[MAX_TX_FIFOS] = {0, 1, 3, 3, 7, 7, 7, 7}; | |
374 | +static const u16 fifo_selector[MAX_TX_FIFOS] = {0, 1, 3, 3, 7, 7, 7, 7}; | |
375 | 375 | |
376 | 376 | /* Maintains Per FIFO related information. */ |
377 | 377 | struct tx_fifo_config { |