Commit b3dfee34 authored by YueHaibing's avatar YueHaibing Committed by Pablo Neira Ayuso

netfilter: nft_redir: Make nft_redir_dump static

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: default avatarYueHaibing <yuehaibing@huawei.com>
Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
parent f7e840ee
...@@ -82,7 +82,7 @@ static int nft_redir_init(const struct nft_ctx *ctx, ...@@ -82,7 +82,7 @@ static int nft_redir_init(const struct nft_ctx *ctx,
return nf_ct_netns_get(ctx->net, ctx->family); 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); const struct nft_redir *priv = nft_expr_priv(expr);
......
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