Skip to contentSkip to conversation

MIPS: idle: Add prototype for function check_wait

PATCH Superseded Pujin Shi 2 participants 2 messages Sep 22, 2020 – Sep 27, 2020 MIPS

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Pujin Shi

author
#0 lore raw

PATCH 1/1 MIPS: idle: Add prototype for function check_wait

This commit adds a prototype to fix warning at W=1:

arch/mips/kernel/idle.c:126:13: error: no previous prototype for 'check_wait' [-Werror=missing-prototypes]

---
 arch/mips/include/asm/idle.h | 2 ++
 1 file changed, 2 insertions(+)
arch/mips/include/asm/idle.h +2 -0
index 655a6dbc861a..0992cad9c632 100644
@@ -15,6 +15,8 @@ static inline int using_rollback_handler(void)
 	return cpu_wait == r4k_wait;
 }
 
+extern void __init check_wait(void);
+
 extern int mips_cpuidle_wait_enter(struct cpuidle_device *dev,
 				   struct cpuidle_driver *drv, int index);
 
Signature · 1 line
2.18.1
#1 lore raw
Quoted 5 lines · Pujin Shi

This commit adds a prototype to fix warning at W=1:

arch/mips/kernel/idle.c:126:13: error: no previous prototype for 'check_wait' [-Werror=missing-prototypes]

your mail address and signed-off address don't match. Could you please resent either with a From: Pujin Shi <[email protected]> in the mail body or a Signed-off-by with your gmail address ?

Thomas.

Signature · 2 lines
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea.                                                [ RFC1925, 2.3 ]