From: Thomas Bogendoerfer Date: Fri, 28 Feb 2025 14:37:02 +0000 (+0100) Subject: MIPS: cm: Fix warning if MIPS_CM is disabled X-Git-Tag: v6.15-rc1~112^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b73c3ccdca95c237750c981054997c71d33e09d7;p=thirdparty%2Fkernel%2Flinux.git 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 --- diff --git a/arch/mips/include/asm/mips-cm.h b/arch/mips/include/asm/mips-cm.h index 3bfe0633b5763..407f253bb4a1c 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 /**