From: YueHaibing Date: Tue, 19 Mar 2019 14:40:21 +0000 (+0800) Subject: netfilter: nft_redir: Make nft_redir_dump static X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=b3dfee340a9b35ccde43f886b1dd59d634945b50;p=openwrt%2Fstaging%2Fblogic.git 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: YueHaibing Signed-off-by: Pablo Neira Ayuso --- diff --git a/net/netfilter/nft_redir.c b/net/netfilter/nft_redir.c index a340cd8a751b..02f4b4a6f887 100644 --- a/net/netfilter/nft_redir.c +++ b/net/netfilter/nft_redir.c @@ -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);