Skip to contentSkip to conversation

MIPS: RB532: serial: statify setup_serial_port()

PATCH Applied Bartosz Golaszewski 2 participants 2 messages Apr 30 – May 26 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 MIPS: RB532: serial: statify setup_serial_port()

This function is not used outside of this compilation unit so make it static.

---
 arch/mips/rb532/serial.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/mips/rb532/serial.c +1 -1
index 70482540b3dbc..228eff07e5e85 100644
@@ -45,7 +45,7 @@ static struct uart_port rb532_uart = {
 	.regshift = 2
 };
 
-int __init setup_serial_port(void)
+static int __init setup_serial_port(void)
 {
 	rb532_uart.uartclk = idt_cpu_freq;
 
Signature · 1 line
2.47.3
maintainer Applied
#1 lore raw
Quoted 23 lines · Bartosz Golaszewski

This function is not used outside of this compilation unit so make it static.

---
 arch/mips/rb532/serial.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/mips/rb532/serial.c +1 -1
index 70482540b3dbc..228eff07e5e85 100644
@@ -45,7 +45,7 @@ static struct uart_port rb532_uart = {
 	.regshift = 2
 };
 
-int __init setup_serial_port(void)
+static int __init setup_serial_port(void)
 {
 	rb532_uart.uartclk = idt_cpu_freq;
 
Signature · 1 line
2.47.3

applied to mips-next

Thomas.

Signature · 2 lines
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea.                                                [ RFC1925, 2.3 ]