Skip to content

Commit 68c5efd

Browse files
Jinjie Ruangregkh
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent ebbe30f commit 68c5efd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)