Commit eb9d7af3 authored by Chen Wandun's avatar Chen Wandun Committed by Pablo Neira Ayuso

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: 3c4287f6 ("nf_tables: Add set type for arbitrary concatenation of ranges")
Signed-off-by: default avatarChen Wandun <chenwandun@huawei.com>
Acked-by: default avatarStefano Brivio <sbrivio@redhat.com>
Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
parent 9325f070
...@@ -736,8 +736,8 @@ static struct nft_pipapo_elem *pipapo_get(const struct net *net, ...@@ -736,8 +736,8 @@ static struct nft_pipapo_elem *pipapo_get(const struct net *net,
* @elem: nftables API element representation containing key data * @elem: nftables API element representation containing key data
* @flags: Unused * @flags: Unused
*/ */
void *nft_pipapo_get(const struct net *net, const struct nft_set *set, static void *nft_pipapo_get(const struct net *net, const struct nft_set *set,
const struct nft_set_elem *elem, unsigned int flags) const struct nft_set_elem *elem, unsigned int flags)
{ {
return pipapo_get(net, set, (const u8 *)elem->key.val.data, return pipapo_get(net, set, (const u8 *)elem->key.val.data,
nft_genmask_cur(net)); nft_genmask_cur(net));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment