diff mbox series

MIPS: fw arc: Fix missing prototypes

Message ID 20240119133634.96420-1-tsbogend@alpha.franken.de (mailing list archive)
State Accepted
Commit a62e9754711d7f0468cac072d34d83c3432943f7
Headers show
Series MIPS: fw arc: Fix missing prototypes | expand

Commit Message

Thomas Bogendoerfer Jan. 19, 2024, 1:36 p.m. UTC
Make ArcGetMemoryDescriptor() static since it's only needed internally.

Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
---
 arch/mips/fw/arc/memory.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Florian Fainelli Jan. 19, 2024, 5:54 p.m. UTC | #1
On 1/19/24 05:36, Thomas Bogendoerfer wrote:
> Make ArcGetMemoryDescriptor() static since it's only needed internally.
> 
> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>

Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Thomas Bogendoerfer Jan. 22, 2024, 10:15 a.m. UTC | #2
On Fri, Jan 19, 2024 at 02:36:34PM +0100, Thomas Bogendoerfer wrote:
> Make ArcGetMemoryDescriptor() static since it's only needed internally.
> 
> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
> ---
>  arch/mips/fw/arc/memory.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/arch/mips/fw/arc/memory.c b/arch/mips/fw/arc/memory.c
> index 66188739f54d..fb78e6fd5de4 100644
> --- a/arch/mips/fw/arc/memory.c
> +++ b/arch/mips/fw/arc/memory.c
> @@ -37,7 +37,7 @@ static unsigned int nr_prom_mem __initdata;
>   */
>  #define ARC_PAGE_SHIFT	12
>  
> -struct linux_mdesc * __init ArcGetMemoryDescriptor(struct linux_mdesc *Current)
> +static struct linux_mdesc * __init ArcGetMemoryDescriptor(struct linux_mdesc *Current)
>  {
>  	return (struct linux_mdesc *) ARC_CALL1(get_mdesc, Current);
>  }
> -- 
> 2.35.3

applied to mips-fixes

Thomas.
diff mbox series

Patch

diff --git a/arch/mips/fw/arc/memory.c b/arch/mips/fw/arc/memory.c
index 66188739f54d..fb78e6fd5de4 100644
--- a/arch/mips/fw/arc/memory.c
+++ b/arch/mips/fw/arc/memory.c
@@ -37,7 +37,7 @@  static unsigned int nr_prom_mem __initdata;
  */
 #define ARC_PAGE_SHIFT	12
 
-struct linux_mdesc * __init ArcGetMemoryDescriptor(struct linux_mdesc *Current)
+static struct linux_mdesc * __init ArcGetMemoryDescriptor(struct linux_mdesc *Current)
 {
 	return (struct linux_mdesc *) ARC_CALL1(get_mdesc, Current);
 }