aboutsummaryrefslogtreecommitdiffstats
path: root/net/netfilter/nf_conntrack_proto_generic.c
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/netfilter/nf_conntrack_proto_generic.c
parentnetfilter: mark expected switch fall-throughs (diff)
downloadlinux-dev-2c9e8637ea15cf7f060b48f73b79e5055ffa93ad.tar.xz
linux-dev-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/netfilter/nf_conntrack_proto_generic.c')
-rw-r--r--net/netfilter/nf_conntrack_proto_generic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/nf_conntrack_proto_generic.c b/net/netfilter/nf_conntrack_proto_generic.c
index f2d22442c89e..6c6896d21cd7 100644
--- a/net/netfilter/nf_conntrack_proto_generic.c
+++ b/net/netfilter/nf_conntrack_proto_generic.c
@@ -12,7 +12,7 @@
#include <linux/netfilter.h>
#include <net/netfilter/nf_conntrack_l4proto.h>
-static unsigned int nf_ct_generic_timeout __read_mostly = 600*HZ;
+static const unsigned int nf_ct_generic_timeout = 600*HZ;
static bool nf_generic_should_process(u8 proto)
{