Skip to contentSkip to conversation

serial: xilinx_uartps: make cdns_rs485_supported static

PATCH In review Min-Hua Chen 2 participants 3 messages Sep 5, 2024 – Sep 6, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 serial: xilinx_uartps: make cdns_rs485_supported static

make cdns_rs485_supported static to fix the following sparse warning:

drivers/tty/serial/xilinx_uartps.c:222:21: sparse: warning:
symbol 'cdns_rs485_supported' was not declared. Should it be static?

---
 drivers/tty/serial/xilinx_uartps.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/tty/serial/xilinx_uartps.c +1 -1
index 2acfcea403ce..777392914819 100644
@@ -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,
Signature · 1 line
2.43.0
maintainer
#1 lore raw
Quoted 16 lines · Min-Hua Chen

make cdns_rs485_supported static to fix the following sparse warning:

drivers/tty/serial/xilinx_uartps.c:222:21: sparse: warning:
symbol 'cdns_rs485_supported' was not declared. Should it be static?

---
  drivers/tty/serial/xilinx_uartps.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/tty/serial/xilinx_uartps.c +0 -0
index 2acfcea403ce..777392914819 100644

drivers/tty/serial/xilinx_uartps.c struct cdns_platform_data { · line 225

Quoted 8 lines
drivers/tty/serial/xilinx_uartps.c +1 -1
@@ -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,

This has been applied already as commit 68c5efd9dca ("serial: xilinx_uartps: Make cdns_rs485_supported static").

You can also see it here
https://lore.kernel.org/r/[email protected]

Thanks,
Michal

#2 lore raw

Hi Michal,

Quoted 5 lines

This has been applied already as commit 68c5efd9dca ("serial: xilinx_uartps:
Make cdns_rs485_supported static").

You can also see it here
https://lore.kernel.org/r/[email protected]

Got it, thanks for letting me know

Min-Hua

Quoted 3 lines

Thanks,
Michal