patch 'common/dpaax: fix unused variable in non-debug build' has been queued to stable release 24.11.9

luca.boccassi at gmail.com luca.boccassi at gmail.com
Tue Oct 27 12:48:44 CET 2026


Hi,

FYI, your patch has been queued to stable release 24.11.9

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 10/29/26. So please
shout if anyone has objections.

Also note that after the patch there's a diff of the upstream commit vs the
patch applied to the branch. This will indicate if there was any rebasing
needed to apply to the stable branch. If there were code changes for rebasing
(ie: not only metadata diffs), please double check that the rebase was
correctly done.

Queued patches are on a temporary branch at:
https://github.com/bluca/dpdk-stable

This queued commit can be viewed at:
https://github.com/bluca/dpdk-stable/commit/7345de9b472b6a51d150bd68a19ce559741fac77

Thanks.

Luca Boccassi

---
>From 7345de9b472b6a51d150bd68a19ce559741fac77 Mon Sep 17 00:00:00 2001
From: Stephen Hemminger <stephen at networkplumber.org>
Date: Sat, 29 Aug 2026 08:44:45 -0700
Subject: [PATCH] common/dpaax: fix unused variable in non-debug build

[ upstream commit cad451c1dd80d2cfc0acf6be4df5bad91d2a41a5 ]

Fix compiler warning on clang-23.

  dpaa_of.c:14:12: warning: variable 'alive' set but not used
        [-Wunused-but-set-global]

The 'alive' flag is only read by DPAAX_HWWARN, which expands to an empty
statement and discards its condition unless RTE_LIBRTE_DPAAX_DEBUG is
defined. Make the empty expansion consume its argument so the condition
is still checked in a non-debug build.

Fixes: 8c83f28cc8a4 ("common/dpaax: move OF library from DPAA bus")

Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
Acked-by: Hemant Agrawal <hemant.agrawal at nxp.com>
Acked-by: David Marchand <david.marchand at redhat.com>
---
 drivers/common/dpaax/dpaax_logs.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/common/dpaax/dpaax_logs.h b/drivers/common/dpaax/dpaax_logs.h
index 6ed29fb2eab..86d38e93f6c 100644
--- a/drivers/common/dpaax/dpaax_logs.h
+++ b/drivers/common/dpaax/dpaax_logs.h
@@ -5,6 +5,7 @@
 #ifndef _DPAAX_LOGS_H_
 #define _DPAAX_LOGS_H_
 
+#include <rte_common.h>
 #include <rte_log.h>
 
 extern int dpaax_logger;
@@ -17,7 +18,7 @@ extern int dpaax_logger;
 			DPAAX_LOG(DEBUG, "WARN: " fmt, ##args); \
 	} while (0)
 #else
-#define DPAAX_HWWARN(cond, fmt, args...) do { } while (0)
+#define DPAAX_HWWARN(cond, fmt, args...) do { RTE_SET_USED(cond); } while (0)
 #endif
 
 #define DPAAX_LOG(level, ...) \
-- 
2.47.3

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2026-10-27 11:43:54.915446224 +0000
+++ 0030-common-dpaax-fix-unused-variable-in-non-debug-build.patch	2026-10-27 11:43:53.526059820 +0000
@@ -1 +1 @@
-From cad451c1dd80d2cfc0acf6be4df5bad91d2a41a5 Mon Sep 17 00:00:00 2001
+From 7345de9b472b6a51d150bd68a19ce559741fac77 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit cad451c1dd80d2cfc0acf6be4df5bad91d2a41a5 ]
+
@@ -17 +18,0 @@
-Cc: stable at dpdk.org
@@ -27 +28 @@
-index 90f0c98863..431a16f45a 100644
+index 6ed29fb2eab..86d38e93f6c 100644
@@ -39 +40 @@
- 			DPAAX_LOG(DEBUG, "WARN: " fmt, ##__VA_ARGS__); \
+ 			DPAAX_LOG(DEBUG, "WARN: " fmt, ##args); \
@@ -42,2 +43,2 @@
--#define DPAAX_HWWARN(cond, fmt, ...) do { } while (0)
-+#define DPAAX_HWWARN(cond, fmt, ...) do { RTE_SET_USED(cond); } while (0)
+-#define DPAAX_HWWARN(cond, fmt, args...) do { } while (0)
++#define DPAAX_HWWARN(cond, fmt, args...) do { RTE_SET_USED(cond); } while (0)


More information about the stable mailing list