[PATCH v2] serial: ns16550: Fix return-type warning

Tom Rini trini at konsulko.com
Thu Feb 26 17:45:16 CET 2026


On Thu, Feb 26, 2026 at 07:39:10PM +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 | }
>       | ^
> 
> Observed with gcc 15.2.1:
> 
> $ riscv64-unknown-linux-gnu-gcc --version
> riscv64-unknown-linux-gnu-gcc (Gentoo 15.2.1_p20260214 p5) 15.2.1
> 
> Fixes: 62cbde4c4e46 ("serial: ns16550: Support run-time configuration")
> Signed-off-by: Nikita Shubin <nikita.shubin at maquefel.me>

Reviewed-by: Tom Rini <trini at konsulko.com>

-- 
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/3fcd0384/attachment.sig>


More information about the U-Boot mailing list