summaryrefslogtreecommitdiff
path: root/net/decnet/netfilter
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2017-07-26 12:40:52 +0300
committerPablo Neira Ayuso <pablo@netfilter.org>2017-07-31 20:10:44 +0300
commit591bb2789bc2a93f379b13d277f441f1b427102d (patch)
treef689ae2ddf68de5a1628d6923dd1d4fcf027ecce /net/decnet/netfilter
parent5da773a3e81e6093c4346ee8cd356fc214d7c76c (diff)
downloadlinux-591bb2789bc2a93f379b13d277f441f1b427102d.tar.xz
netfilter: nf_hook_ops structs can be const
We no longer place these on a list so they can be const. Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/decnet/netfilter')
-rw-r--r--net/decnet/netfilter/dn_rtmsg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/decnet/netfilter/dn_rtmsg.c b/net/decnet/netfilter/dn_rtmsg.c
index aa8ffecc46a4..ab395e55cd78 100644
--- a/net/decnet/netfilter/dn_rtmsg.c
+++ b/net/decnet/netfilter/dn_rtmsg.c
@@ -115,7 +115,7 @@ static inline void dnrmg_receive_user_skb(struct sk_buff *skb)
RCV_SKB_FAIL(-EINVAL);
}
-static struct nf_hook_ops dnrmg_ops __read_mostly = {
+static const struct nf_hook_ops dnrmg_ops = {
.hook = dnrmg_hook,
.pf = NFPROTO_DECNET,
.hooknum = NF_DN_ROUTE,