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 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>
  • Loading branch information
Thomas Bogendoerfer committed Mar 19, 2025
1 parent ae2b6c6 commit b73c3cc
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 @@ -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

/**
Expand Down

0 comments on commit b73c3cc

Please sign in to comment.