Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

MIPS: cm: Fix warning if MIPS_CM is disabled

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>

+1 -1
+1 -1
arch/mips/include/asm/mips-cm.h
··· 116 116 #ifdef CONFIG_MIPS_CM 117 117 extern void mips_cm_update_property(void); 118 118 #else 119 - static void mips_cm_update_property(void) {} 119 + static inline void mips_cm_update_property(void) {} 120 120 #endif 121 121 122 122 /**