From 1ca730b7382b7b625cd4ddb3e20ccb23e3351cfc Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Thu, 18 May 2017 22:01:03 +0000 Subject: kernel-reboot-add-devm_register_reboot_notifier-fix move `struct device' forward declaration to top-of-file Cc: Andrey Smirnov Signed-off-by: Andrew Morton --- include/linux/reboot.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/linux/reboot.h b/include/linux/reboot.h index 0ca25413ad2d..ecbf7b56b9db 100644 --- a/include/linux/reboot.h +++ b/include/linux/reboot.h @@ -5,6 +5,8 @@ #include #include +struct device; + #define SYS_DOWN 0x0001 /* Notify of system down */ #define SYS_RESTART SYS_DOWN #define SYS_HALT 0x0002 /* Notify of system halt */ @@ -38,7 +40,6 @@ extern int reboot_force; extern int register_reboot_notifier(struct notifier_block *); extern int unregister_reboot_notifier(struct notifier_block *); -struct device; extern int devm_register_reboot_notifier(struct device *, struct notifier_block *); extern int register_restart_handler(struct notifier_block *); -- cgit v1.2.3