DPDK-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] fix unused-but-set-global warnings
@ 2026-08-26 23:43 Stephen Hemminger
  2026-08-26 23:43 ` [PATCH 1/4] common/dpaax: fix unused variable warning in non-debug build Stephen Hemminger
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Stephen Hemminger @ 2026-08-26 23:43 UTC (permalink / raw)
  To: dev; +Cc: Stephen Hemminger

  Clang 23 adds -Wunused-but-set-global, which reports file scope
  variables that are assigned but never read. It is enabled by -Wall and
  does not appear with gcc or with clang 20 through 22.

  Three of these are dead variables and are simply removed. The fourth,
  'alive' in dpaa_of.c, is a real debug aid: it is only read by
  DPAAX_HWWARN, which discards its condition when RTE_LIBRTE_DPAAX_DEBUG
  is not defined. That one is fixed by making the empty expansion consume
  its argument, which keeps the condition compiled in both builds and
  covers every other DPAAX_HWWARN user as well.

  The patches are independent and touch four unrelated drivers.

Stephen Hemminger (4):
  common/dpaax: fix unused variable warning in non-debug build
  bus/dpaa: remove unused qman_clk variable
  common/zsda: remove unused device counter
  net/qede: remove unused app version variable

 drivers/bus/dpaa/base/qbman/qman_driver.c | 4 ----
 drivers/common/dpaax/dpaax_logs.h         | 3 ++-
 drivers/common/zsda/zsda_device.c         | 5 -----
 drivers/net/qede/qede_debug.c             | 9 ---------
 4 files changed, 2 insertions(+), 19 deletions(-)

-- 
2.53.0


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

end of thread, other threads:[~2026-08-27 15:57 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-26 23:43 [PATCH 0/4] fix unused-but-set-global warnings Stephen Hemminger
2026-08-26 23:43 ` [PATCH 1/4] common/dpaax: fix unused variable warning in non-debug build Stephen Hemminger
2026-08-27  9:07   ` David Marchand
2026-08-27 14:57     ` Stephen Hemminger
2026-08-27 15:55       ` Hemant Agrawal
2026-08-26 23:43 ` [PATCH 2/4] bus/dpaa: remove unused qman_clk variable Stephen Hemminger
2026-08-27 15:57   ` Hemant Agrawal
2026-08-26 23:43 ` [PATCH 3/4] common/zsda: remove unused device counter Stephen Hemminger
2026-08-26 23:43 ` [PATCH 4/4] net/qede: remove unused app version variable Stephen Hemminger
2026-08-27  9:08   ` David Marchand
2026-08-27 14:59     ` Stephen Hemminger

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