aboutsummaryrefslogtreecommitdiffstats
path: root/net/netfilter/nft_set_hash.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2017-01-24 00:51:41 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2017-01-24 21:46:58 +0100
commitde70185de0333783154863278ac87bfbbc54e384 (patch)
tree6626cd05fd65bbdcd1a73e35c2cebd5c33f1ef37 /net/netfilter/nft_set_hash.c
parentnetfilter: nf_tables: fix set->nelems counting with no NLM_F_EXCL (diff)
downloadlinux-dev-de70185de0333783154863278ac87bfbbc54e384.tar.xz
linux-dev-de70185de0333783154863278ac87bfbbc54e384.zip
netfilter: nf_tables: deconstify walk callback function
The flush operation needs to modify set and element objects, so let's deconstify this. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/nft_set_hash.c')
-rw-r--r--net/netfilter/nft_set_hash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/nft_set_hash.c b/net/netfilter/nft_set_hash.c
index 1e20e2bbb6d9..e36069fb76ae 100644
--- a/net/netfilter/nft_set_hash.c
+++ b/net/netfilter/nft_set_hash.c
@@ -212,7 +212,7 @@ static void nft_hash_remove(const struct nft_set *set,
rhashtable_remove_fast(&priv->ht, &he->node, nft_hash_params);
}
-static void nft_hash_walk(const struct nft_ctx *ctx, const struct nft_set *set,
+static void nft_hash_walk(const struct nft_ctx *ctx, struct nft_set *set,
struct nft_set_iter *iter)
{
struct nft_hash *priv = nft_set_priv(set);