Skip to content

Commit

Permalink
netfilter: nft_set_pipapo: remove static in nft_pipapo_get()
Browse files Browse the repository at this point in the history
[ Upstream commit ab0beaf ]

This has slipped through when reducing memory footprint for set
elements, remove it.

Fixes: 9dad402 ("netfilter: nf_tables: expose opaque set element as struct nft_elem_priv")
Reported-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
ummakynes authored and gregkh committed Feb 16, 2024
1 parent a938eab commit b4b2571
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/netfilter/nft_set_pipapo.c
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@ static struct nft_elem_priv *
nft_pipapo_get(const struct net *net, const struct nft_set *set,
const struct nft_set_elem *elem, unsigned int flags)
{
static struct nft_pipapo_elem *e;
struct nft_pipapo_elem *e;

e = pipapo_get(net, set, (const u8 *)elem->key.val.data,
nft_genmask_cur(net));
Expand Down

0 comments on commit b4b2571

Please sign in to comment.