Skip to content

Commit 48600cb

Browse files
tsbogendgregkh
authored andcommitted
MIPS: cm: Fix warning if MIPS_CM is disabled
commit b73c3ccdca95c237750c981054997c71d33e09d7 upstream. 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 <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent ae43d74 commit 48600cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/mips/include/asm/mips-cm.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ static inline bool mips_cm_present(void)
104104
#ifdef CONFIG_MIPS_CM
105105
extern void mips_cm_update_property(void);
106106
#else
107-
static void mips_cm_update_property(void) {}
107+
static inline void mips_cm_update_property(void) {}
108108
#endif
109109

110110
/**

0 commit comments

Comments
 (0)