Skip to content

Commit d2e15c2

Browse files
tsbogendgregkh
authored andcommitted
MIPS: cm: Fix warning if MIPS_CM is disabled
commit b73c3cc upstream. Commit e27fbe1 ("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: e27fbe1 ("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 c82ca02 commit d2e15c2

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)