Commit dd03b1ad authored by Luc Van Oostenryck's avatar Luc Van Oostenryck Committed by Pablo Neira Ayuso

netfilter: nft_counter: remove wrong __percpu of nft_counter_resest()'s arg

nft_counter_rest() has its first argument declared as
	struct nft_counter_percpu_priv __percpu *priv
but this structure is not percpu (it only countains
a member 'counter' which is, correctly, a pointer to a
percpu struct nft_counter).

So, remove the '__percpu' from the argument's declaration.
Signed-off-by: default avatarLuc Van Oostenryck <luc.vanoostenryck@gmail.com>
Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
parent 6ecd7548
...@@ -104,7 +104,7 @@ static void nft_counter_obj_destroy(const struct nft_ctx *ctx, ...@@ -104,7 +104,7 @@ static void nft_counter_obj_destroy(const struct nft_ctx *ctx,
nft_counter_do_destroy(priv); nft_counter_do_destroy(priv);
} }
static void nft_counter_reset(struct nft_counter_percpu_priv __percpu *priv, static void nft_counter_reset(struct nft_counter_percpu_priv *priv,
struct nft_counter *total) struct nft_counter *total)
{ {
struct nft_counter *this_cpu; struct nft_counter *this_cpu;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment