[PATCH] MIPS: RB532: serial: statify setup_serial_port()

Bartosz Golaszewski posted 1 patch 1 month, 2 weeks ago
arch/mips/rb532/serial.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] MIPS: RB532: serial: statify setup_serial_port()
Posted by Bartosz Golaszewski 1 month, 2 weeks ago
This function is not used outside of this compilation unit so make it
static.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
---
 arch/mips/rb532/serial.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/mips/rb532/serial.c b/arch/mips/rb532/serial.c
index 70482540b3dbc..228eff07e5e85 100644
--- a/arch/mips/rb532/serial.c
+++ b/arch/mips/rb532/serial.c
@@ -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;
 
-- 
2.47.3
Re: [PATCH] MIPS: RB532: serial: statify setup_serial_port()
Posted by Thomas Bogendoerfer 3 weeks ago
On Thu, Apr 30, 2026 at 01:24:10PM +0200, Bartosz Golaszewski wrote:
> This function is not used outside of this compilation unit so make it
> static.
> 
> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
> ---
>  arch/mips/rb532/serial.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/arch/mips/rb532/serial.c b/arch/mips/rb532/serial.c
> index 70482540b3dbc..228eff07e5e85 100644
> --- a/arch/mips/rb532/serial.c
> +++ b/arch/mips/rb532/serial.c
> @@ -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;
>  
> -- 
> 2.47.3

applied to mips-next

Thomas.

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