diff options
author | Sabrina Dubroca <sd@queasysnail.net> | 2014-09-17 23:23:12 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-09-19 17:22:31 -0400 |
commit | 54003f119c26573d3bb86a5efc64f3e5fd43b8c6 (patch) | |
tree | d527ec830c793164276b5642507ccbaf90a5aaf3 /drivers/net/ethernet/mellanox/mlx4/mlx4.h | |
parent | fb5690d2458340b645ea3b36e8db560cb3272e65 (diff) | |
download | talos-op-linux-54003f119c26573d3bb86a5efc64f3e5fd43b8c6.tar.gz talos-op-linux-54003f119c26573d3bb86a5efc64f3e5fd43b8c6.zip |
net: fix sparse warnings in SNMP_UPD_PO_STATS(_BH)
ptr used to be a non __percpu pointer (result of a this_cpu_ptr
assignment, 7d720c3e4f0c4 ("percpu: add __percpu sparse annotations to
net")). Since d25398df59b56 ("net: avoid reloads in SNMP_UPD_PO_STATS"),
that's no longer the case, SNMP_UPD_PO_STATS uses this_cpu_add and ptr
is now __percpu.
Silence sparse warnings by preserving the original type and
annotation, and remove the out-of-date comment.
warning: incorrect type in initializer (different address spaces)
expected unsigned long long *ptr
got unsigned long long [noderef] <asn:3>*<noident>
warning: incorrect type in initializer (different address spaces)
expected void const [noderef] <asn:3>*__vpp_verify
got unsigned long long *<noident>
warning: incorrect type in initializer (different address spaces)
expected void const [noderef] <asn:3>*__vpp_verify
got unsigned long long *<noident>
Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Acked-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx4/mlx4.h')
0 files changed, 0 insertions, 0 deletions