Skip to content

Commit 68c5efd

Browse files
ruanjinjie-enggregkh
authored andcommitted
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>
1 parent ebbe30f commit 68c5efd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/tty/serial/xilinx_uartps.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ struct cdns_platform_data {
219219
u32 quirks;
220220
};
221221

222-
struct serial_rs485 cdns_rs485_supported = {
222+
static struct serial_rs485 cdns_rs485_supported = {
223223
.flags = SER_RS485_ENABLED | SER_RS485_RTS_ON_SEND |
224224
SER_RS485_RTS_AFTER_SEND,
225225
.delay_rts_before_send = 1,

0 commit comments

Comments
 (0)