Skip to content

Commit

Permalink
netfilter: nft_redir: Make nft_redir_dump static
Browse files Browse the repository at this point in the history
Fix sparse warning:

net/netfilter/nft_redir.c:85:5:
 warning: symbol 'nft_redir_dump' was not declared. Should it be static?

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
  • Loading branch information
YueHaibing authored and Pablo Neira Ayuso committed Apr 8, 2019
1 parent f7e840e commit b3dfee3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/netfilter/nft_redir.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ static int nft_redir_init(const struct nft_ctx *ctx,
return nf_ct_netns_get(ctx->net, ctx->family);
}

int nft_redir_dump(struct sk_buff *skb, const struct nft_expr *expr)
static int nft_redir_dump(struct sk_buff *skb, const struct nft_expr *expr)
{
const struct nft_redir *priv = nft_expr_priv(expr);

Expand Down

0 comments on commit b3dfee3

Please sign in to comment.