diff options
author | 2020-03-11 15:30:13 +0100 | |
---|---|---|
committer | 2020-03-15 15:27:48 +0100 | |
commit | 795a6d6b42244d0aabec645c6ddd05c29cfd39d6 (patch) | |
tree | 201dff52b5f76a605e00265801cf3c7d52c43e9e | |
parent | netfilter: nf_tables: add nft_set_elem_expr_alloc() (diff) | |
download | wireguard-linux-795a6d6b42244d0aabec645c6ddd05c29cfd39d6.tar.xz wireguard-linux-795a6d6b42244d0aabec645c6ddd05c29cfd39d6.zip |
netfilter: nf_tables: statify nft_expr_init()
Not exposed anymore to modules, statify this function.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to '')
-rw-r--r-- | include/net/netfilter/nf_tables.h | 2 | ||||
-rw-r--r-- | net/netfilter/nf_tables_api.c | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/include/net/netfilter/nf_tables.h b/include/net/netfilter/nf_tables.h index 52b872a9a2cd..025ec148ea4f 100644 --- a/include/net/netfilter/nf_tables.h +++ b/include/net/netfilter/nf_tables.h @@ -846,8 +846,6 @@ static inline void *nft_expr_priv(const struct nft_expr *expr) return (void *)expr->data; } -struct nft_expr *nft_expr_init(const struct nft_ctx *ctx, - const struct nlattr *nla); void nft_expr_destroy(const struct nft_ctx *ctx, struct nft_expr *expr); int nft_expr_dump(struct sk_buff *skb, unsigned int attr, const struct nft_expr *expr); diff --git a/net/netfilter/nf_tables_api.c b/net/netfilter/nf_tables_api.c index 1605a728eb2c..bc7a33f0cd06 100644 --- a/net/netfilter/nf_tables_api.c +++ b/net/netfilter/nf_tables_api.c @@ -2523,8 +2523,8 @@ static void nf_tables_expr_destroy(const struct nft_ctx *ctx, module_put(type->owner); } -struct nft_expr *nft_expr_init(const struct nft_ctx *ctx, - const struct nlattr *nla) +static struct nft_expr *nft_expr_init(const struct nft_ctx *ctx, + const struct nlattr *nla) { struct nft_expr_info info; struct nft_expr *expr; |