patch 'net/axgbe: fix build with GCC 16' has been queued to stable release 24.11.4
Kevin Traynor
ktraynor at redhat.com
Fri Nov 21 12:20:49 CET 2025
Hi,
FYI, your patch has been queued to stable release 24.11.4
Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 11/26/25. 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/kevintraynor/dpdk-stable
This queued commit can be viewed at:
https://github.com/kevintraynor/dpdk-stable/commit/3b72246da071ee978838691a66a146fd5c7c4918
Thanks.
Kevin
---
>From 3b72246da071ee978838691a66a146fd5c7c4918 Mon Sep 17 00:00:00 2001
From: Venkat Kumar Ande <venkatkumar.ande at amd.com>
Date: Thu, 13 Nov 2025 22:11:09 +0530
Subject: [PATCH] net/axgbe: fix build with GCC 16
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
[ upstream commit dec46366290076afa65bc6b505b274e10e90f494 ]
Build warning reported for local variable set and not used on GCC-16.
Fix the issue by using the variable for missed register write operation.
../drivers/net/axgbe/axgbe_ethdev.c: In function ‘axgbe_timesync_disable’:
../drivers/net/axgbe/axgbe_ethdev.c:1744:22: warning:
variable ‘mac_tscr’ set but not used [-Wunused-but-set-variable=]
1744 | unsigned int mac_tscr = 0;
| ^~~~~~~~
Bugzilla ID: 1819
Fixes: e04449488fdb ("net/axgbe: support IEEE 1588 PTP")
Signed-off-by: Venkat Kumar Ande <venkatkumar.ande at amd.com>
---
drivers/net/axgbe/axgbe_ethdev.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/drivers/net/axgbe/axgbe_ethdev.c b/drivers/net/axgbe/axgbe_ethdev.c
index 5448a5f3d7..526d14b69a 100644
--- a/drivers/net/axgbe/axgbe_ethdev.c
+++ b/drivers/net/axgbe/axgbe_ethdev.c
@@ -1736,4 +1736,5 @@ axgbe_timesync_disable(struct rte_eth_dev *dev)
struct axgbe_port *pdata = dev->data->dev_private;
unsigned int mac_tscr = 0;
+ unsigned int value = 0;
/*disable timestamp for all pkts*/
@@ -1745,4 +1746,9 @@ axgbe_timesync_disable(struct rte_eth_dev *dev)
/*disable time stamp*/
AXGMAC_SET_BITS(mac_tscr, MAC_TSCR, TSENA, 0);
+
+ value = AXGMAC_IOREAD(pdata, MAC_TSCR);
+ value |= mac_tscr;
+ AXGMAC_IOWRITE(pdata, MAC_TSCR, value);
+
return 0;
}
--
2.51.0
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2025-11-21 11:05:11.616837739 +0000
+++ 0065-net-axgbe-fix-build-with-GCC-16.patch 2025-11-21 11:05:09.541201502 +0000
@@ -1 +1 @@
-From dec46366290076afa65bc6b505b274e10e90f494 Mon Sep 17 00:00:00 2001
+From 3b72246da071ee978838691a66a146fd5c7c4918 Mon Sep 17 00:00:00 2001
@@ -8,0 +9,2 @@
+[ upstream commit dec46366290076afa65bc6b505b274e10e90f494 ]
+
@@ -20 +21,0 @@
-Cc: stable at dpdk.org
@@ -28 +29 @@
-index 31d35ff182..cf3b0d9ef5 100644
+index 5448a5f3d7..526d14b69a 100644
@@ -31 +32 @@
-@@ -1743,4 +1743,5 @@ axgbe_timesync_disable(struct rte_eth_dev *dev)
+@@ -1736,4 +1736,5 @@ axgbe_timesync_disable(struct rte_eth_dev *dev)
@@ -37 +38 @@
-@@ -1752,4 +1753,9 @@ axgbe_timesync_disable(struct rte_eth_dev *dev)
+@@ -1745,4 +1746,9 @@ axgbe_timesync_disable(struct rte_eth_dev *dev)
More information about the stable
mailing list