diff options
| author | Leon Romanovsky <[email protected]> | 2025-07-16 14:17:49 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2025-07-18 01:53:08 +0000 |
| commit | 2a601b2d35623065d31ebaf697b07502d54878c9 (patch) | |
| tree | 763190418d49de9c048f9fa35985acd0c7ab34e4 /net/lapb/lapb_out.c | |
| parent | net/mlx5e: fix kdoc warning on eswitch.h (diff) | |
| download | kernel-2a601b2d35623065d31ebaf697b07502d54878c9.tar.gz kernel-2a601b2d35623065d31ebaf697b07502d54878c9.zip | |
net/mlx5e: Properly access RCU protected qdisc_sleeping variable
qdisc_sleeping variable is declared as "struct Qdisc __rcu" and
as such needs proper annotation while accessing it.
Without rtnl_dereference(), the following error is generated by sparse:
drivers/net/ethernet/mellanox/mlx5/core/en/qos.c:377:40: warning:
incorrect type in initializer (different address spaces)
drivers/net/ethernet/mellanox/mlx5/core/en/qos.c:377:40: expected
struct Qdisc *qdisc
drivers/net/ethernet/mellanox/mlx5/core/en/qos.c:377:40: got struct
Qdisc [noderef] __rcu *qdisc_sleeping
Signed-off-by: Leon Romanovsky <[email protected]>
Signed-off-by: Tariq Toukan <[email protected]>
Reviewed-by: Michal Swiatkowski <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/lapb/lapb_out.c')
0 files changed, 0 insertions, 0 deletions
