[PATCH] serial-uclass: fix build warning

Simon Glass sjg at chromium.org
Fri Feb 4 16:24:18 CET 2022


On Wed, 2 Feb 2022 at 05:55, Heiko Schocher <hs at denx.de> wrote:
>
> if CONFIG_DM_STDIO is defined but SERIAL_PRESENT not,
> gcc drops warnings for serial_stub_* functions
> that they are defined but not used.
>
> Fix it.
>
> Signed-off-by: Heiko Schocher <hs at denx.de>
> ---
> azure build is clean
> https://dev.azure.com/hs0298/hs/_build/results?buildId=78&view=results
>
>  drivers/serial/serial-uclass.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list