Skip to content

Commit

Permalink
MIPS: cm: Fix warning if MIPS_CM is disabled
Browse files Browse the repository at this point in the history
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 <tsbogend@alpha.franken.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Thomas Bogendoerfer authored and Greg Kroah-Hartman committed May 2, 2025
1 parent c82ca02 commit d2e15c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/mips/include/asm/mips-cm.h
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,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

/**
Expand Down

0 comments on commit d2e15c2

Please sign in to comment.