mirror of
https://github.com/smaeul/u-boot.git
synced 2025-10-14 04:46:01 +01:00
serial-uclass: fix build warning
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@denx.de> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
0129f2d8ee
commit
3ed8c4c883
@ -357,7 +357,6 @@ static void serial_stub_putc(struct stdio_dev *sdev, const char ch)
|
|||||||
{
|
{
|
||||||
_serial_putc(sdev->priv, ch);
|
_serial_putc(sdev->priv, ch);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
static void serial_stub_puts(struct stdio_dev *sdev, const char *str)
|
static void serial_stub_puts(struct stdio_dev *sdev, const char *str)
|
||||||
{
|
{
|
||||||
@ -374,6 +373,7 @@ static int serial_stub_tstc(struct stdio_dev *sdev)
|
|||||||
return _serial_tstc(sdev->priv);
|
return _serial_tstc(sdev->priv);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* on_baudrate() - Update the actual baudrate when the env var changes
|
* on_baudrate() - Update the actual baudrate when the env var changes
|
||||||
|
Loading…
x
Reference in New Issue
Block a user