summaryrefslogtreecommitdiffstats
path: root/arch/mips
diff options
context:
space:
mode:
authorPujin Shi <shipujin.t@gmail.com>2020-09-27 17:22:05 +0800
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>2020-09-27 13:00:45 +0200
commit925b68822397eedc3b82d8c36929cec9cee26ec1 (patch)
tree4784b5daa457adbced8354812970ddf034343c4e /arch/mips
parentef923a76c398157a74ec52bd3c81fb77bcdc7cdd (diff)
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] Signed-off-by: Pujin Shi <shipujin.t@gmail.com> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Diffstat (limited to 'arch/mips')
-rw-r--r--arch/mips/include/asm/idle.h2
1 files changed, 2 insertions, 0 deletions
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);