[PATCH] bus/fslmc: fix warning in device scan

Thomas Monjalon thomas at monjalon.net
Fri Nov 28 10:15:19 CET 2025


28/11/2025 09:39, David Marchand:
> On Tue, 25 Nov 2025 at 15:46, Stephen Hemminger
> <stephen at networkplumber.org> wrote:
> >
> > With latest glibc (Fedora Rawhide):
> > ../drivers/bus/fslmc/fslmc_bus.c: In function ‘rte_fslmc_parse’:
> > ../drivers/bus/fslmc/fslmc_bus.c:298:15: error: assignment discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
> >    298 |         t_ptr = strchr(sep, '.');
> >        |               ^
> > Fixes: e67a61614d0b ("bus/fslmc: support device iteration")
> >
> > Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
> 
> This build warning can be seen in OBS builds.
> 
> Acked-by: David Marchand <david.marchand at redhat.com>

It is actually in device name parsing function.

Applied, thanks.




More information about the dev mailing list