diff mbox series

MIPS: cm: Fix warning if MIPS_CM is disabled

Message ID 20250228143703.33381-1-tsbogend@alpha.franken.de (mailing list archive)
State Accepted
Commit b73c3ccdca95c237750c981054997c71d33e09d7
Headers show
Series MIPS: cm: Fix warning if MIPS_CM is disabled | expand

Commit Message

Thomas Bogendoerfer Feb. 28, 2025, 2:37 p.m. UTC
Commit e27fbe16af5c ("MIPS: cm: Detect CM quirks from device tree")
introduced

arch/mips/include/asm/mips-cm.h:119:13: error: ‘mips_cm_update_property’
	defined but not used [-Werror=unused-function]

Fix this by making empty function implementation inline

Fixes: e27fbe16af5c ("MIPS: cm: Detect CM quirks from device tree")
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
---
 arch/mips/include/asm/mips-cm.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Thomas Bogendoerfer March 19, 2025, 9:24 a.m. UTC | #1
On Fri, Feb 28, 2025 at 03:37:02PM +0100, Thomas Bogendoerfer wrote:
> Commit e27fbe16af5c ("MIPS: cm: Detect CM quirks from device tree")
> introduced
> 
> arch/mips/include/asm/mips-cm.h:119:13: error: ‘mips_cm_update_property’
> 	defined but not used [-Werror=unused-function]
> 
> Fix this by making empty function implementation inline
> 
> Fixes: e27fbe16af5c ("MIPS: cm: Detect CM quirks from device tree")
> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
> ---
>  arch/mips/include/asm/mips-cm.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/arch/mips/include/asm/mips-cm.h b/arch/mips/include/asm/mips-cm.h
> index 3bfe0633b576..407f253bb4a1 100644
> --- a/arch/mips/include/asm/mips-cm.h
> +++ b/arch/mips/include/asm/mips-cm.h
> @@ -116,7 +116,7 @@ static inline bool mips_cm_present(void)
>  #ifdef CONFIG_MIPS_CM
>  extern void mips_cm_update_property(void);
>  #else
> -static void mips_cm_update_property(void) {}
> +static inline void mips_cm_update_property(void) {}
>  #endif
>  
>  /**
> -- 
> 2.35.3

applied to mips-next.

Thomas.
diff mbox series

Patch

diff --git a/arch/mips/include/asm/mips-cm.h b/arch/mips/include/asm/mips-cm.h
index 3bfe0633b576..407f253bb4a1 100644
--- a/arch/mips/include/asm/mips-cm.h
+++ b/arch/mips/include/asm/mips-cm.h
@@ -116,7 +116,7 @@  static inline bool mips_cm_present(void)
 #ifdef CONFIG_MIPS_CM
 extern void mips_cm_update_property(void);
 #else
-static void mips_cm_update_property(void) {}
+static inline void mips_cm_update_property(void) {}
 #endif
 
 /**