diff options
author | Jinjie Ruan <ruanjinjie@huawei.com> | 2024-08-19 20:01:07 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-09-03 10:46:58 +0200 |
commit | 68c5efd9dca4b0e97791d638004c803b8a3bb3d4 (patch) | |
tree | 53e4878c0b5e4a85b2959b362a2ee347fa43acf2 /drivers/tty | |
parent | ebbe30f4bba127505c5664dd67f519e5e06d16be (diff) | |
download | lwn-68c5efd9dca4b0e97791d638004c803b8a3bb3d4.tar.gz lwn-68c5efd9dca4b0e97791d638004c803b8a3bb3d4.zip |
serial: xilinx_uartps: Make cdns_rs485_supported static
The sparse tool complains as follows:
drivers/tty/serial/xilinx_uartps.c:222:21: warning:
symbol 'cdns_rs485_supported' was not declared. Should it be static?
This symbol is not used outside xilinx_uartps.c, so marks it static.
Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com>
Link: https://lore.kernel.org/r/20240819120107.3884973-1-ruanjinjie@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty')
-rw-r--r-- | drivers/tty/serial/xilinx_uartps.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/xilinx_uartps.c b/drivers/tty/serial/xilinx_uartps.c index 2acfcea403ce..777392914819 100644 --- a/drivers/tty/serial/xilinx_uartps.c +++ b/drivers/tty/serial/xilinx_uartps.c @@ -219,7 +219,7 @@ struct cdns_platform_data { u32 quirks; }; -struct serial_rs485 cdns_rs485_supported = { +static struct serial_rs485 cdns_rs485_supported = { .flags = SER_RS485_ENABLED | SER_RS485_RTS_ON_SEND | SER_RS485_RTS_AFTER_SEND, .delay_rts_before_send = 1, |