[PATCH] serial: ns16550: Fix return-type warning
Tom Rini
trini at konsulko.com
Thu Feb 26 17:30:14 CET 2026
On Thu, Feb 26, 2026 at 07:28:36PM +0300, Nikita Shubin wrote:
> Hi Tom.
>
> On Thu, 2026-02-26 at 09:08 -0600, Tom Rini wrote:
> > On Thu, Feb 26, 2026 at 05:02:47PM +0300, Nikita Shubin wrote:
> >
> > > Fix compiler warning:
> > >
> > > drivers/serial/ns16550.c: In function ‘serial_in_dynamic’:
> > > drivers/serial/ns16550.c:153:1: warning: control reaches end
> > > of non-void function [-Wreturn-type]
> > > 153 | }
> > > | ^
> > >
> > > Fixes: 62cbde4c4e46 ("serial: ns16550: Support run-time
> > > configuration")
> > > Signed-off-by: Nikita Shubin <nikita.shubin at maquefel.me>
> >
> > I assume this is from gcc-15.x ? Thanks.
>
> Exactly,
>
> ```
> $ riscv64-unknown-linux-gnu-gcc --version
> riscv64-unknown-linux-gnu-gcc (Gentoo 15.2.1_p20260214 p5) 15.2.1
> 20260214
> ```
>
> To be precise.
Could you please do a v2 noting the compiler version? We don't yet
support gcc 15.x, but
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121588 is just now fixed,
so soon we should be able to.
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20260226/c17449bc/attachment.sig>
More information about the U-Boot
mailing list