summaryrefslogtreecommitdiffstats
path: root/net/ipv4
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2017-11-12 20:42:01 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2018-01-08 18:01:02 +0100
commit2c9e8637ea15cf7f060b48f73b79e5055ffa93ad (patch)
treef08d3e4ea6a20d0cc1364457d2bfb86e5dce0db8 /net/ipv4
parente8542dcec002b31339f7771441fd5dffb42223ae (diff)
downloadlinux-stable-2c9e8637ea15cf7f060b48f73b79e5055ffa93ad.tar.gz
linux-stable-2c9e8637ea15cf7f060b48f73b79e5055ffa93ad.tar.bz2
linux-stable-2c9e8637ea15cf7f060b48f73b79e5055ffa93ad.zip
netfilter: conntrack: timeouts can be const
Nowadays this is just the default template that is used when setting up the net namespace, so nothing writes to these locations. Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/ipv4')
-rw-r--r--net/ipv4/netfilter/nf_conntrack_proto_icmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/netfilter/nf_conntrack_proto_icmp.c b/net/ipv4/netfilter/nf_conntrack_proto_icmp.c
index 669e586b6b8f..5c15beafa711 100644
--- a/net/ipv4/netfilter/nf_conntrack_proto_icmp.c
+++ b/net/ipv4/netfilter/nf_conntrack_proto_icmp.c
@@ -22,7 +22,7 @@
#include <net/netfilter/nf_conntrack_zones.h>
#include <net/netfilter/nf_log.h>
-static unsigned int nf_ct_icmp_timeout __read_mostly = 30*HZ;
+static const unsigned int nf_ct_icmp_timeout = 30*HZ;
static inline struct nf_icmp_net *icmp_pernet(struct net *net)
{