aboutsummaryrefslogtreecommitdiff
path: root/net/netfilter/nf_nat_core.c
diff options
context:
space:
mode:
authorGravatar Florian Westphal <fw@strlen.de> 2022-01-07 05:03:24 +0100
committerGravatar Pablo Neira Ayuso <pablo@netfilter.org> 2022-01-09 23:30:13 +0100
commit285c8a7a58158cb1805c97ff03875df2ba2ea1fe (patch)
tree06131d5dc9664286d32c3de730b7f54c14119748 /net/netfilter/nf_nat_core.c
parentnetfilter: core: move ip_ct_attach indirection to struct nf_ct_hook (diff)
downloadlinux-285c8a7a58158cb1805c97ff03875df2ba2ea1fe.tar.gz
linux-285c8a7a58158cb1805c97ff03875df2ba2ea1fe.tar.bz2
linux-285c8a7a58158cb1805c97ff03875df2ba2ea1fe.zip
netfilter: make function op structures const
No functional changes, these structures should be const. Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/nf_nat_core.c')
-rw-r--r--net/netfilter/nf_nat_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/nf_nat_core.c b/net/netfilter/nf_nat_core.c
index 3dd130487b5b..2d06a66899b2 100644
--- a/net/netfilter/nf_nat_core.c
+++ b/net/netfilter/nf_nat_core.c
@@ -1167,7 +1167,7 @@ static struct pernet_operations nat_net_ops = {
.size = sizeof(struct nat_net),
};
-static struct nf_nat_hook nat_hook = {
+static const struct nf_nat_hook nat_hook = {
.parse_nat_setup = nfnetlink_parse_nat_setup,
#ifdef CONFIG_XFRM
.decode_session = __nf_nat_decode_session,