]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
MIPS: cm: Fix warning if MIPS_CM is disabled
authorThomas Bogendoerfer <tsbogend@alpha.franken.de>
Fri, 28 Feb 2025 14:37:02 +0000 (15:37 +0100)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Wed, 19 Mar 2025 09:22:40 +0000 (10:22 +0100)
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

index 3bfe0633b57639bfb05b7692e4bb83ba7c0b2523..407f253bb4a1c2012b8767273cb5efbe7c9432f8 100644 (file)
@@ -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
 
 /**