diff options
author | David Howells <dhowells@redhat.com> | 2016-04-07 12:23:23 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-04-11 15:34:40 -0400 |
commit | 5b3e87f19e71b7a2f789c40de04704886932b5cf (patch) | |
tree | eb929677075ea01cf42ce29fd0b9464f085aef7e | |
parent | 8e688d9c166671bb4a6977384de2fe7f46a31ba4 (diff) |
rxrpc: Static arrays of strings should be const char *const[]
Static arrays of strings should be const char *const[].
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | include/rxrpc/packet.h | 2 | ||||
-rw-r--r-- | net/rxrpc/ar-internal.h | 2 | ||||
-rw-r--r-- | net/rxrpc/misc.c | 2 |
3 files changed, 2 insertions, 4 deletions
diff --git a/include/rxrpc/packet.h b/include/rxrpc/packet.h index 9ebab3a8cf0a..b2017440b765 100644 --- a/include/rxrpc/packet.h +++ b/include/rxrpc/packet.h | |||
@@ -68,8 +68,6 @@ struct rxrpc_wire_header { | |||
68 | 68 | ||
69 | } __packed; | 69 | } __packed; |
70 | 70 | ||
71 | extern const char *rxrpc_pkts[]; | ||
72 | |||
73 | #define RXRPC_SUPPORTED_PACKET_TYPES ( \ | 71 | #define RXRPC_SUPPORTED_PACKET_TYPES ( \ |
74 | (1 << RXRPC_PACKET_TYPE_DATA) | \ | 72 | (1 << RXRPC_PACKET_TYPE_DATA) | \ |
75 | (1 << RXRPC_PACKET_TYPE_ACK) | \ | 73 | (1 << RXRPC_PACKET_TYPE_ACK) | \ |
diff --git a/net/rxrpc/ar-internal.h b/net/rxrpc/ar-internal.h index 24126d954f38..eeb829e837e1 100644 --- a/net/rxrpc/ar-internal.h +++ b/net/rxrpc/ar-internal.h | |||
@@ -637,7 +637,7 @@ extern unsigned int rxrpc_rx_window_size; | |||
637 | extern unsigned int rxrpc_rx_mtu; | 637 | extern unsigned int rxrpc_rx_mtu; |
638 | extern unsigned int rxrpc_rx_jumbo_max; | 638 | extern unsigned int rxrpc_rx_jumbo_max; |
639 | 639 | ||
640 | extern const char *rxrpc_pkts[]; | 640 | extern const char *const rxrpc_pkts[]; |
641 | extern const s8 rxrpc_ack_priority[]; | 641 | extern const s8 rxrpc_ack_priority[]; |
642 | 642 | ||
643 | extern const char *rxrpc_acks(u8 reason); | 643 | extern const char *rxrpc_acks(u8 reason); |
diff --git a/net/rxrpc/misc.c b/net/rxrpc/misc.c index 8ebeec3384e1..1afe9876e79f 100644 --- a/net/rxrpc/misc.c +++ b/net/rxrpc/misc.c | |||
@@ -58,7 +58,7 @@ unsigned int rxrpc_rx_mtu = 5692; | |||
58 | */ | 58 | */ |
59 | unsigned int rxrpc_rx_jumbo_max = 4; | 59 | unsigned int rxrpc_rx_jumbo_max = 4; |
60 | 60 | ||
61 | const char *rxrpc_pkts[] = { | 61 | const char *const rxrpc_pkts[] = { |
62 | "?00", | 62 | "?00", |
63 | "DATA", "ACK", "BUSY", "ABORT", "ACKALL", "CHALL", "RESP", "DEBUG", | 63 | "DATA", "ACK", "BUSY", "ABORT", "ACKALL", "CHALL", "RESP", "DEBUG", |
64 | "?09", "?10", "?11", "?12", "VERSION", "?14", "?15" | 64 | "?09", "?10", "?11", "?12", "VERSION", "?14", "?15" |