netfilter: ctnetlink: fix up for "netfilter: conntrack: remove unconfirmed list"
authorStephen Rothwell <sfr@canb.auug.org.au>
Tue, 17 May 2022 08:58:43 +0000 (18:58 +1000)
committerFlorian Westphal <fw@strlen.de>
Wed, 18 May 2022 07:21:59 +0000 (09:21 +0200)
After merging the net-next tree, today's linux-next build (powerpc
ppc64_defconfig) produced this warning:

nf_conntrack_netlink.c:1717 warning: 'ctnetlink_dump_one_entry' defined but not used

Fixes: 8a75a2c17410 ("netfilter: conntrack: remove unconfirmed list")
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Florian Westphal <fw@strlen.de>
net/netfilter/nf_conntrack_netlink.c

index e768f59..722af5e 100644 (file)
@@ -1714,6 +1714,7 @@ static int ctnetlink_done_list(struct netlink_callback *cb)
        return 0;
 }
 
+#ifdef CONFIG_NF_CONNTRACK_EVENTS
 static int ctnetlink_dump_one_entry(struct sk_buff *skb,
                                    struct netlink_callback *cb,
                                    struct nf_conn *ct,
@@ -1754,6 +1755,7 @@ static int ctnetlink_dump_one_entry(struct sk_buff *skb,
 
        return res;
 }
+#endif
 
 static int
 ctnetlink_dump_unconfirmed(struct sk_buff *skb, struct netlink_callback *cb)