icmp: move icmp_err_convert[] to .rodata
authorAlexey Dobriyan <adobriyan@gmail.com>
Fri, 22 Jan 2010 10:18:25 +0000 (10:18 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 23 Jan 2010 09:21:28 +0000 (01:21 -0800)
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/icmp.h
net/ipv4/icmp.c

index dfa72d4e89071c01ee02044864411c46f4d5b2cb..15b3dfe9fce8334611ba4549e3d32353585e036d 100644 (file)
@@ -28,7 +28,7 @@ struct icmp_err {
   unsigned     fatal:1;
 };
 
-extern struct icmp_err icmp_err_convert[];
+extern const struct icmp_err icmp_err_convert[];
 #define ICMP_INC_STATS(net, field)     SNMP_INC_STATS((net)->mib.icmp_statistics, field)
 #define ICMP_INC_STATS_BH(net, field)  SNMP_INC_STATS_BH((net)->mib.icmp_statistics, field)
 #define ICMPMSGOUT_INC_STATS(net, field)       SNMP_INC_STATS((net)->mib.icmpmsg_statistics, field+256)
index fe11f60ce41ba645d7f9535e13524419f16dff90..4b4c2bcd15db4b4464be428a954ee8686769b68b 100644 (file)
@@ -114,7 +114,7 @@ struct icmp_bxm {
 /* An array of errno for error messages from dest unreach. */
 /* RFC 1122: 3.2.2.1 States that NET_UNREACH, HOST_UNREACH and SR_FAILED MUST be considered 'transient errs'. */
 
-struct icmp_err icmp_err_convert[] = {
+const struct icmp_err icmp_err_convert[] = {
        {
                .errno = ENETUNREACH,   /* ICMP_NET_UNREACH */
                .fatal = 0,