提交 cad43944 编写于 作者: S stephen hemminger 提交者: Pablo Neira Ayuso

netfilter: nft_rt: make local functions static

Resolves warnings:
net/netfilter/nft_rt.c:26:6: warning: no previous prototype for ‘nft_rt_get_eval’ [-Wmissing-prototypes]
net/netfilter/nft_rt.c:75:5: warning: no previous prototype for ‘nft_rt_get_init’ [-Wmissing-prototypes]
net/netfilter/nft_rt.c:106:5: warning: no previous prototype for ‘nft_rt_get_dump’ [-Wmissing-prototypes]
Signed-off-by: NStephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: NPablo Neira Ayuso <pablo@netfilter.org>
上级 a32770b1
...@@ -23,7 +23,7 @@ struct nft_rt { ...@@ -23,7 +23,7 @@ struct nft_rt {
enum nft_registers dreg:8; enum nft_registers dreg:8;
}; };
void nft_rt_get_eval(const struct nft_expr *expr, static void nft_rt_get_eval(const struct nft_expr *expr,
struct nft_regs *regs, struct nft_regs *regs,
const struct nft_pktinfo *pkt) const struct nft_pktinfo *pkt)
{ {
...@@ -72,7 +72,7 @@ const struct nla_policy nft_rt_policy[NFTA_RT_MAX + 1] = { ...@@ -72,7 +72,7 @@ const struct nla_policy nft_rt_policy[NFTA_RT_MAX + 1] = {
[NFTA_RT_KEY] = { .type = NLA_U32 }, [NFTA_RT_KEY] = { .type = NLA_U32 },
}; };
int nft_rt_get_init(const struct nft_ctx *ctx, static int nft_rt_get_init(const struct nft_ctx *ctx,
const struct nft_expr *expr, const struct nft_expr *expr,
const struct nlattr * const tb[]) const struct nlattr * const tb[])
{ {
...@@ -103,7 +103,7 @@ int nft_rt_get_init(const struct nft_ctx *ctx, ...@@ -103,7 +103,7 @@ int nft_rt_get_init(const struct nft_ctx *ctx,
NFT_DATA_VALUE, len); NFT_DATA_VALUE, len);
} }
int nft_rt_get_dump(struct sk_buff *skb, static int nft_rt_get_dump(struct sk_buff *skb,
const struct nft_expr *expr) const struct nft_expr *expr)
{ {
const struct nft_rt *priv = nft_expr_priv(expr); const struct nft_rt *priv = nft_expr_priv(expr);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册