summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox/mlxsw/spectrum_acl.c
diff options
context:
space:
mode:
authorDavid S. Miller2018-07-08 10:02:59 +0200
committerDavid S. Miller2018-07-08 10:02:59 +0200
commit0dbc81eab4d13f6d295da69c00e6efee2427b55c (patch)
tree1d96c91f21d0fe00842d48273f5dd2c219a28e78 /drivers/net/ethernet/mellanox/mlxsw/spectrum_acl.c
parentMerge branch 'Modify-action-API-for-implementing-lockless-actions' (diff)
downloadkernel-qcow2-linux-0dbc81eab4d13f6d295da69c00e6efee2427b55c.tar.gz
kernel-qcow2-linux-0dbc81eab4d13f6d295da69c00e6efee2427b55c.tar.xz
kernel-qcow2-linux-0dbc81eab4d13f6d295da69c00e6efee2427b55c.zip
net: sched: Fix warnings from xchg() on RCU'd cookie pointer.
The kbuild test robot reports: >> net/sched/act_api.c:71:15: sparse: incorrect type in initializer (different address spaces) @@ expected struct tc_cookie [noderef] <asn:4>*__ret @@ got [noderef] <asn:4>*__ret @@ net/sched/act_api.c:71:15: expected struct tc_cookie [noderef] <asn:4>*__ret net/sched/act_api.c:71:15: got struct tc_cookie *new_cookie >> net/sched/act_api.c:71:13: sparse: incorrect type in assignment (different address spaces) @@ expected struct tc_cookie *old @@ got struct tc_cookie [noderef] <struct tc_cookie *old @@ net/sched/act_api.c:71:13: expected struct tc_cookie *old net/sched/act_api.c:71:13: got struct tc_cookie [noderef] <asn:4>*[assigned] __ret >> net/sched/act_api.c:132:48: sparse: dereference of noderef expression Handle this in the usual way by force casting away the __rcu annotation when we are using xchg() on it. Fixes: eec94fdb0480 ("net: sched: use rcu for action cookie update") Reported-by: kbuild test robot <lkp@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlxsw/spectrum_acl.c')
0 files changed, 0 insertions, 0 deletions