net: mark read-only arrays as const
String literals are constant, and usually, we can also tag the array of pointers const too, moving it to the .rodata section. Signed-off-by: Jan Engelhardt <jengelh@medozas.de> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
db71789c01
commit
36cbd3dcc1
@ -66,8 +66,8 @@ struct ircomm_tty_info {
|
||||
__u8 dlsap_sel;
|
||||
};
|
||||
|
||||
extern char *ircomm_state[];
|
||||
extern char *ircomm_tty_state[];
|
||||
extern const char *const ircomm_state[];
|
||||
extern const char *const ircomm_tty_state[];
|
||||
|
||||
int ircomm_tty_do_event(struct ircomm_tty_cb *self, IRCOMM_TTY_EVENT event,
|
||||
struct sk_buff *skb, struct ircomm_tty_info *info);
|
||||
|
Reference in New Issue
Block a user