diff options
author | 2020-02-10 16:51:09 +0800 | |
---|---|---|
committer | 2020-03-15 15:20:16 +0100 | |
commit | eb9d7af3b7bd6d1b51c6522de53a5bf9c57e81db (patch) | |
tree | 6244854ec2a3a1b72a5f66fd0c31e28e031fa632 | |
parent | netfilter: cleanup unused macro (diff) | |
download | wireguard-linux-eb9d7af3b7bd6d1b51c6522de53a5bf9c57e81db.tar.xz wireguard-linux-eb9d7af3b7bd6d1b51c6522de53a5bf9c57e81db.zip |
netfilter: nft_set_pipapo: make the symbol 'nft_pipapo_get' static
Fix the following sparse warning:
net/netfilter/nft_set_pipapo.c:739:6: warning: symbol 'nft_pipapo_get' was not declared. Should it be static?
Fixes: 3c4287f62044 ("nf_tables: Add set type for arbitrary concatenation of ranges")
Signed-off-by: Chen Wandun <chenwandun@huawei.com>
Acked-by: Stefano Brivio <sbrivio@redhat.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
-rw-r--r-- | net/netfilter/nft_set_pipapo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/netfilter/nft_set_pipapo.c b/net/netfilter/nft_set_pipapo.c index 34a1678cf290..d752a39b97d6 100644 --- a/net/netfilter/nft_set_pipapo.c +++ b/net/netfilter/nft_set_pipapo.c @@ -736,8 +736,8 @@ out: * @elem: nftables API element representation containing key data * @flags: Unused */ -void *nft_pipapo_get(const struct net *net, const struct nft_set *set, - const struct nft_set_elem *elem, unsigned int flags) +static void *nft_pipapo_get(const struct net *net, const struct nft_set *set, + const struct nft_set_elem *elem, unsigned int flags) { return pipapo_get(net, set, (const u8 *)elem->key.val.data, nft_genmask_cur(net)); |