[PATCH] examples/qos_sched: fix build with LTO
Thomas Monjalon
thomas at monjalon.net
Thu Nov 12 20:48:27 CET 2026
10/11/2026 10:05, Bruce Richardson:
> On Mon, Nov 09, 2026 at 06:04:03PM -0800, Stephen Hemminger wrote:
> > rte_cfgfile_section_num_entries() returns -1 on error, which is used
> > unchecked as a VLA size. With LTO gcc inlines the library call, sees
> > the -1 path and fails with -Wvla-larger-than.
> >
> > Return error if the entry count is negative.
> >
> > Fixes: db935d0171dd ("examples/qos_sched: use librte_cfgfile")
> > Cc: stable at dpdk.org
> >
> > Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
>
> Acked-by: Bruce Richardson <bruce.richardson at intel.com>
Applied, thanks.
More information about the dev
mailing list