Skip to content

Commit 8bfe4f0

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 62bf685 commit 8bfe4f0

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
@@ -116,7 +116,7 @@ static inline bool mips_cm_present(void)
116116
#ifdef CONFIG_MIPS_CM
117117
extern void mips_cm_update_property(void);
118118
#else
119-
static void mips_cm_update_property(void) {}
119+
static inline void mips_cm_update_property(void) {}
120120
#endif
121121

122122
/**

0 commit comments

Comments
 (0)