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
@@ -652,7 +652,8 @@ DECLARE_PER_CPU_SHARED_ALIGNED(struct rds_statistics, rds_stats);
|
||||
int __init rds_stats_init(void);
|
||||
void rds_stats_exit(void);
|
||||
void rds_stats_info_copy(struct rds_info_iterator *iter,
|
||||
uint64_t *values, char **names, size_t nr);
|
||||
uint64_t *values, const char *const *names,
|
||||
size_t nr);
|
||||
|
||||
/* sysctl.c */
|
||||
int __init rds_sysctl_init(void);
|
||||
|
Reference in New Issue
Block a user