Commit dd03b1ad26c40195f410a4828fdac9c0b734c1ac

Authored by Luc Van Oostenryck
Committed by Pablo Neira Ayuso
1 parent 6ecd754883

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: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

net/netfilter/nft_counter.c
... ... @@ -104,7 +104,7 @@
104 104 nft_counter_do_destroy(priv);
105 105 }
106 106  
107   -static void nft_counter_reset(struct nft_counter_percpu_priv __percpu *priv,
  107 +static void nft_counter_reset(struct nft_counter_percpu_priv *priv,
108 108 struct nft_counter *total)
109 109 {
110 110 struct nft_counter *this_cpu;