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

Quentin Schulz quentin.schulz at cherry.de
Thu Feb 26 17:59:09 CET 2026


Hi Nikita,

On 2/26/26 5:39 PM, Nikita Shubin wrote:
> [You don't often get email from nikita.shubin at maquefel.me. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]
> 
> 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
> 

We also have another one in ns16550_readb that'll trigger the same 
warning I'm assuming. Ditto for ns16550_serial_pending.

Cheers,
Quentin


More information about the U-Boot mailing list