Skip to content

net: fix variable shadowing spam from headers

Alexander Lobakin lkml netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2net/tcp: fix -Wshadow / Sparse shadow warnings in tcp_hash_fail()include/net/tcp_ao.h+5 -10 replies
2/2netdev_queues: fix -Wshadow / Sparse shadow warnings throughout the fileinclude/net/netdev_queues.h+40 -146 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH net-next 0/2] net: fix variable shadowing spam from headers

W=12 and/or C=1 are useful to test new code, but warnings coming from the generic headers are noisy and distract a lot.
Fix the two most noisy networking header files by using __UNIQUE_ID() for the variables declared inside macros. The rest seems to be clean, except for the recent Clang's enum-conversion (which's sanity is still under discussion).

Alexander Lobakin (2):
net/tcp: fix -Wshadow / Sparse shadow warnings in tcp_hash_fail()
netdev_queues: fix -Wshadow / Sparse shadow warnings throughout the
file

 include/net/netdev_queues.h | 54 +++++++++++++++++++++++++++----------
 include/net/tcp_ao.h        |  6 ++++-
 2 files changed, 45 insertions(+), 15 deletions(-)
Signature · 1 line
2.44.0