* [DPDK/ethdev Bug 1822] net/intel/fm10k: warning with gcc-16
@ 2025-11-04 5:18 bugzilla
2025-11-04 11:15 ` [PATCH] net/fm10k: fix build with GCC 16 Bruce Richardson
0 siblings, 1 reply; 4+ messages in thread
From: bugzilla @ 2025-11-04 5:18 UTC (permalink / raw)
To: dev
http://bugs.dpdk.org/show_bug.cgi?id=1822
Bug ID: 1822
Summary: net/intel/fm10k: warning with gcc-16
Product: DPDK
Version: 25.07
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: Normal
Component: ethdev
Assignee: dev@dpdk.org
Reporter: stephen@networkplumber.org
Target Milestone: ---
../drivers/net/intel/fm10k/base/fm10k_common.c: In function
‘fm10k_unbind_hw_stats_q’:
../drivers/net/intel/fm10k/base/fm10k_common.c:480:62: warning: parameter ‘idx’
set but not used [-Wunused-but-set-parameter=]
480 | void fm10k_unbind_hw_stats_q(struct fm10k_hw_stats_q *q, u32 idx, u32
count)
|
--
You are receiving this mail because:
You are the assignee for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread* [PATCH] net/fm10k: fix build with GCC 16 2025-11-04 5:18 [DPDK/ethdev Bug 1822] net/intel/fm10k: warning with gcc-16 bugzilla @ 2025-11-04 11:15 ` Bruce Richardson 2025-11-04 14:52 ` Medvedkin, Vladimir 0 siblings, 1 reply; 4+ messages in thread From: Bruce Richardson @ 2025-11-04 11:15 UTC (permalink / raw) To: dev; +Cc: Bruce Richardson, stable, stephen Build error reported with GCC 16, due to a set but unused variable. Fix the issue by removing the setting of the var and marking it as unused. ../drivers/net/intel/fm10k/base/fm10k_common.c: In function 'fm10k_unbind_hw_stats_q': ../drivers/net/intel/fm10k/base/fm10k_common.c:480:62: warning: parameter 'idx' set but not used [-Wunused-but-set-parameter=] 480 | void fm10k_unbind_hw_stats_q(struct fm10k_hw_stats_q *q, u32 idx, u32 count) Bugzilla ID: 1822 Fixes: 7223d200c227 ("fm10k: add base driver") Cc: stable@dpdk.org Cc: stephen@networkplumber.org Signed-off-by: Bruce Richardson <bruce.richardson@intel.com> --- drivers/net/intel/fm10k/base/fm10k_common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/intel/fm10k/base/fm10k_common.c b/drivers/net/intel/fm10k/base/fm10k_common.c index b78d4b575b..677ef87608 100644 --- a/drivers/net/intel/fm10k/base/fm10k_common.c +++ b/drivers/net/intel/fm10k/base/fm10k_common.c @@ -477,11 +477,11 @@ void fm10k_update_hw_stats_q(struct fm10k_hw *hw, struct fm10k_hw_stats_q *q, * Function invalidates the index values for the queues so any updates that * may have happened are ignored and the base for the queue stats is reset. **/ -void fm10k_unbind_hw_stats_q(struct fm10k_hw_stats_q *q, u32 idx, u32 count) +void fm10k_unbind_hw_stats_q(struct fm10k_hw_stats_q *q, u32 idx __rte_unused, u32 count) { u32 i; - for (i = 0; i < count; i++, idx++, q++) { + for (i = 0; i < count; i++, q++) { q->rx_stats_idx = 0; q->tx_stats_idx = 0; } -- 2.48.1 ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] net/fm10k: fix build with GCC 16 2025-11-04 11:15 ` [PATCH] net/fm10k: fix build with GCC 16 Bruce Richardson @ 2025-11-04 14:52 ` Medvedkin, Vladimir 2025-11-05 10:43 ` Bruce Richardson 0 siblings, 1 reply; 4+ messages in thread From: Medvedkin, Vladimir @ 2025-11-04 14:52 UTC (permalink / raw) To: Bruce Richardson, dev; +Cc: stable, stephen Acked-by: Vladimir Medvedkin <vladimir.medvedkin@intel.com> On 11/4/2025 11:15 AM, Bruce Richardson wrote: > Build error reported with GCC 16, due to a set but unused variable. Fix > the issue by removing the setting of the var and marking it as unused. > > ../drivers/net/intel/fm10k/base/fm10k_common.c: In function 'fm10k_unbind_hw_stats_q': > ../drivers/net/intel/fm10k/base/fm10k_common.c:480:62: warning: > parameter 'idx' set but not used [-Wunused-but-set-parameter=] > 480 | void fm10k_unbind_hw_stats_q(struct fm10k_hw_stats_q *q, u32 idx, u32 count) > > Bugzilla ID: 1822 > Fixes: 7223d200c227 ("fm10k: add base driver") > Cc: stable@dpdk.org > Cc: stephen@networkplumber.org > > Signed-off-by: Bruce Richardson <bruce.richardson@intel.com> > --- > drivers/net/intel/fm10k/base/fm10k_common.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/net/intel/fm10k/base/fm10k_common.c b/drivers/net/intel/fm10k/base/fm10k_common.c > index b78d4b575b..677ef87608 100644 > --- a/drivers/net/intel/fm10k/base/fm10k_common.c > +++ b/drivers/net/intel/fm10k/base/fm10k_common.c > @@ -477,11 +477,11 @@ void fm10k_update_hw_stats_q(struct fm10k_hw *hw, struct fm10k_hw_stats_q *q, > * Function invalidates the index values for the queues so any updates that > * may have happened are ignored and the base for the queue stats is reset. > **/ > -void fm10k_unbind_hw_stats_q(struct fm10k_hw_stats_q *q, u32 idx, u32 count) > +void fm10k_unbind_hw_stats_q(struct fm10k_hw_stats_q *q, u32 idx __rte_unused, u32 count) > { > u32 i; > > - for (i = 0; i < count; i++, idx++, q++) { > + for (i = 0; i < count; i++, q++) { > q->rx_stats_idx = 0; > q->tx_stats_idx = 0; > } -- Regards, Vladimir ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] net/fm10k: fix build with GCC 16 2025-11-04 14:52 ` Medvedkin, Vladimir @ 2025-11-05 10:43 ` Bruce Richardson 0 siblings, 0 replies; 4+ messages in thread From: Bruce Richardson @ 2025-11-05 10:43 UTC (permalink / raw) To: Medvedkin, Vladimir; +Cc: dev, stable, stephen On Tue, Nov 04, 2025 at 02:52:37PM +0000, Medvedkin, Vladimir wrote: > > On 11/4/2025 11:15 AM, Bruce Richardson wrote: > > Build error reported with GCC 16, due to a set but unused variable. Fix > > the issue by removing the setting of the var and marking it as unused. > > > > ../drivers/net/intel/fm10k/base/fm10k_common.c: In function 'fm10k_unbind_hw_stats_q': > > ../drivers/net/intel/fm10k/base/fm10k_common.c:480:62: warning: > > parameter 'idx' set but not used [-Wunused-but-set-parameter=] > > 480 | void fm10k_unbind_hw_stats_q(struct fm10k_hw_stats_q *q, u32 idx, u32 count) > > > > Bugzilla ID: 1822 > > Fixes: 7223d200c227 ("fm10k: add base driver") > > Cc: stable@dpdk.org > > Cc: stephen@networkplumber.org > > > > Signed-off-by: Bruce Richardson <bruce.richardson@intel.com> > Acked-by: Vladimir Medvedkin <vladimir.medvedkin@intel.com> > > --- Applied to dpdk-next-net-intel. /Bruce ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-11-05 10:44 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2025-11-04 5:18 [DPDK/ethdev Bug 1822] net/intel/fm10k: warning with gcc-16 bugzilla 2025-11-04 11:15 ` [PATCH] net/fm10k: fix build with GCC 16 Bruce Richardson 2025-11-04 14:52 ` Medvedkin, Vladimir 2025-11-05 10:43 ` Bruce Richardson
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).