From: Chen Wandun Date: Mon, 10 Feb 2020 08:51:09 +0000 (+0800) Subject: netfilter: nft_set_pipapo: make the symbol 'nft_pipapo_get' static X-Git-Tag: baikal/mips/sdk5.9~14007^2~137^2~22 X-Git-Url: https://git.baikalelectronics.ru/sdk/?a=commitdiff_plain;h=5a10239d23c0996a58bfca9ce9afd152012d2da2;p=kernel.git 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: 81037b76e5aa ("nf_tables: Add set type for arbitrary concatenation of ranges") Signed-off-by: Chen Wandun Acked-by: Stefano Brivio Signed-off-by: Pablo Neira Ayuso --- diff --git a/net/netfilter/nft_set_pipapo.c b/net/netfilter/nft_set_pipapo.c index 34a1678cf290a..d752a39b97d6d 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));