[PATCH v2 4/4] net/qede: remove unused app version variable

Stephen Hemminger stephen at networkplumber.org
Sat Aug 29 17:44:48 CEST 2026


qed_dbg_set_app_ver() validates the caller's version and stores it.
clang 23 reports:

  qede_debug.c:820:12: warning: variable 's_app_ver' set but not used
        [-Wunused-but-set-global]

Since the whole qed_dbg_set_app_ver() function is doing nothing
remove it.

Fixes: ec55c118792b ("net/qede: add infrastructure for debug data collection")
Cc: stable at dpdk.org

Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
---
 drivers/net/qede/qede_debug.c | 20 --------------------
 1 file changed, 20 deletions(-)

diff --git a/drivers/net/qede/qede_debug.c b/drivers/net/qede/qede_debug.c
index 1d3147b724..d14ef93a3c 100644
--- a/drivers/net/qede/qede_debug.c
+++ b/drivers/net/qede/qede_debug.c
@@ -812,13 +812,6 @@ static struct split_type_defs s_split_type_defs[] = {
 	{"vf"}
 };
 
-/******************************** Variables *********************************/
-
-/**
- * The version of the calling app
- */
-static u32 s_app_ver;
-
 /**************************** Private Functions ******************************/
 
 /* Reads and returns a single dword from the specified unaligned buffer */
@@ -4864,16 +4857,6 @@ enum dbg_status qed_dbg_set_bin_ptr(struct ecore_hwfn *p_hwfn,
 	return DBG_STATUS_OK;
 }
 
-enum dbg_status qed_dbg_set_app_ver(u32 ver)
-{
-	if (ver < TOOLS_VERSION)
-		return DBG_STATUS_UNSUPPORTED_APP_VERSION;
-
-	s_app_ver = ver;
-
-	return DBG_STATUS_OK;
-}
-
 bool qed_read_fw_info(struct ecore_hwfn *p_hwfn,
 		      struct ecore_ptt *p_ptt, struct fw_info *fw_info)
 {
@@ -8087,9 +8070,6 @@ void qed_dbg_pf_init(struct ecore_dev *edev)
 
 	OSAL_MUTEX_INIT(&edev->dbg_lock);
 
-	/* Sync ver with debugbus qed code */
-	qed_dbg_set_app_ver(TOOLS_VERSION);
-
 	/* Debug values are after init values.
 	 * The offset is the first dword of the file.
 	 */
-- 
2.53.0



More information about the dev mailing list