netfilter: nf_tables: statify nft_expr_init()
authorPablo Neira Ayuso <pablo@netfilter.org>
Wed, 11 Mar 2020 14:30:13 +0000 (15:30 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Sun, 15 Mar 2020 14:27:48 +0000 (15:27 +0100)
Not exposed anymore to modules, statify this function.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/net/netfilter/nf_tables.h
net/netfilter/nf_tables_api.c

index 52b872a9a2cd0068c4f7b16134f63789385c44c1..025ec148ea4f07e027d5b3829403f84360b441a4 100644 (file)
@@ -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);
index 1605a728eb2cdf8c43ccebd7b8c121ff806f172e..bc7a33f0cd06f74dc0cc16ef654a102b7ccde66d 100644 (file)
@@ -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;