[PATCH v3] MIPS: idle: Add prototype for function check_wait

Subsystems: mips, the rest

STALE2214d

2 messages, 2 authors, 2020-09-27 · open the first message on its own page

[PATCH v3] MIPS: idle: Add prototype for function check_wait

From: Pujin Shi <hidden>
Date: 2020-09-27 09:22:24

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]

Signed-off-by: Pujin Shi <redacted>
---
 arch/mips/include/asm/idle.h | 2 ++
 1 file changed, 2 insertions(+)
diff --git a/arch/mips/include/asm/idle.h b/arch/mips/include/asm/idle.h
index 655a6dbc861a..0992cad9c632 100644
--- a/arch/mips/include/asm/idle.h
+++ b/arch/mips/include/asm/idle.h
@@ -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);
 
-- 
2.18.1

Re: [PATCH v3] MIPS: idle: Add prototype for function check_wait

From: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Date: 2020-09-27 11:11:45

On Sun, Sep 27, 2020 at 05:22:05PM +0800, Pujin Shi wrote:
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]

Signed-off-by: Pujin Shi <redacted>
---
 arch/mips/include/asm/idle.h | 2 ++
 1 file changed, 2 insertions(+)
applied to mips-next.

Thomas.

-- 
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea.                                                [ RFC1925, 2.3 ]
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help