[PATCH v2] net/axgbe: fix the build warning for GCC-16

Stephen Hemminger stephen at networkplumber.org
Thu Nov 13 18:33:03 CET 2025


On Thu, 13 Nov 2025 22:11:09 +0530
Venkat Kumar Ande <VenkatKumar.Ande at amd.com> wrote:

> 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")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Venkat Kumar Ande <VenkatKumar.Ande at amd.com>
> ---

Queued to next-net


More information about the dev mailing list