summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2017-05-18 22:01:03 +0000
committerJohannes Weiner <hannes@cmpxchg.org>2017-05-18 22:01:03 +0000
commit1ca730b7382b7b625cd4ddb3e20ccb23e3351cfc (patch)
treecafdd7de1562c777c459ce3e393a3aee25d0f4b9
parent4379e57b9a4cf9ee06fd41b384d8ada572eebe4a (diff)
kernel-reboot-add-devm_register_reboot_notifier-fix
move `struct device' forward declaration to top-of-file Cc: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
-rw-r--r--include/linux/reboot.h3
1 files changed, 2 insertions, 1 deletions
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 <linux/notifier.h>
#include <uapi/linux/reboot.h>
+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 *);