[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20240819120107.3884973-1-ruanjinjie@huawei.com>
Date: Mon, 19 Aug 2024 20:01:07 +0800
From: Jinjie Ruan <ruanjinjie@...wei.com>
To: <gregkh@...uxfoundation.org>, <jirislaby@...nel.org>,
<michal.simek@....com>, <manikanta.guntupalli@....com>,
<u.kleine-koenig@...gutronix.de>, <john.ogness@...utronix.de>,
<julien.malik@...eenlabs.fr>, <tglx@...utronix.de>,
<linux-kernel@...r.kernel.org>, <linux-serial@...r.kernel.org>,
<linux-arm-kernel@...ts.infradead.org>
CC: <ruanjinjie@...wei.com>
Subject: [PATCH -next 8/8] 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@...wei.com>
---
drivers/tty/serial/xilinx_uartps.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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,
--
2.34.1
Powered by blists - more mailing lists