Netdev List
 help / color / mirror / Atom feed
* [PATCH iproute2-next 00/10] fix shadowed variable warnings
@ 2026-11-30 18:47 Stephen Hemminger
  2026-11-30 18:47 ` [PATCH iproute2-next 01/10] xfrm: rename shadowed SA direction local Stephen Hemminger
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: Stephen Hemminger @ 2026-11-30 18:47 UTC (permalink / raw)
  To: netdev; +Cc: dsahern, Stephen Hemminger

Shadowed variables cause bugs. Fix the ones already in the tree, then
turn on -Wshadow so new ones don't get in.

Stephen Hemminger (10):
  xfrm: rename shadowed SA direction local
  ip address: rename the shadowed parameter of ipaddr_reset_filter()
  lib: rename parameters that shadow globals
  xfrm: rename local netlink handles that shadow the global rth
  tc: rename and drop shadowing locals
  ip: rename and drop shadowing locals
  ifstat: rename shadowing local
  bridge, devlink, rdma: rename shadowing locals
  ss: fix shadowed variable warnings
  Makefile: enable shadowed variable warnings

 Makefile             |  2 +-
 bridge/mdb.c         |  6 ++--
 devlink/devlink.c    | 16 ++++-----
 include/color.h      |  2 +-
 include/json_print.h | 10 +++---
 ip/ip_common.h       |  2 +-
 ip/ipaddress.c       | 16 ++++-----
 ip/ipnexthop.c       |  1 -
 ip/iproute.c         |  4 +--
 ip/ipxfrm.c          |  8 ++---
 ip/xfrm_policy.c     | 81 ++++++++++++++++++++++----------------------
 ip/xfrm_state.c      | 69 +++++++++++++++++++------------------
 lib/color.c          |  4 +--
 lib/json_print.c     | 18 +++++-----
 misc/ifstat.c        |  4 +--
 rdma/rdma.c          | 20 +++++------
 ss/inet.c            | 11 +++---
 ss/tcp.c             |  6 ++--
 tc/f_route.c         |  1 -
 tc/m_pedit.c         |  2 --
 tc/tc_monitor.c      | 12 +++----
 21 files changed, 144 insertions(+), 151 deletions(-)

-- 
2.53.0


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2026-11-30 19:11 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-30 18:47 [PATCH iproute2-next 00/10] fix shadowed variable warnings Stephen Hemminger
2026-11-30 18:47 ` [PATCH iproute2-next 01/10] xfrm: rename shadowed SA direction local Stephen Hemminger
2026-11-30 18:47 ` [PATCH iproute2-next 02/10] ip address: rename the shadowed parameter of ipaddr_reset_filter() Stephen Hemminger
2026-11-30 18:47 ` [PATCH iproute2-next 03/10] lib: rename parameters that shadow globals Stephen Hemminger
2026-11-30 18:47 ` [PATCH iproute2-next 04/10] xfrm: rename local netlink handles that shadow the global rth Stephen Hemminger
2026-11-30 18:47 ` [PATCH iproute2-next 05/10] tc: rename and drop shadowing locals Stephen Hemminger
2026-11-30 18:47 ` [PATCH iproute2-next 06/10] ip: " Stephen Hemminger
2026-11-30 18:47 ` [PATCH iproute2-next 07/10] ifstat: rename shadowing local Stephen Hemminger
2026-11-30 18:47 ` [PATCH iproute2-next 08/10] bridge, devlink, rdma: rename shadowing locals Stephen Hemminger
2026-11-30 18:47 ` [PATCH iproute2-next 09/10] ss: fix shadowed variable warnings Stephen Hemminger
2026-11-30 18:47 ` [PATCH iproute2-next 10/10] Makefile: enable " Stephen Hemminger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox