提交 4ef7229f 编写于 作者: A Adrian Bunk 提交者: Linus Torvalds

make kernel_shutdown_prepare() static

kernel_shutdown_prepare() can now become static.
Signed-off-by: NAdrian Bunk <bunk@kernel.org>
Acked-by: NPavel Machek <pavel@ucw.cz>
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 47a460d5
...@@ -59,8 +59,6 @@ extern void machine_crash_shutdown(struct pt_regs *); ...@@ -59,8 +59,6 @@ extern void machine_crash_shutdown(struct pt_regs *);
* Architecture independent implemenations of sys_reboot commands. * Architecture independent implemenations of sys_reboot commands.
*/ */
extern void kernel_shutdown_prepare(enum system_states state);
extern void kernel_restart(char *cmd); extern void kernel_restart(char *cmd);
extern void kernel_halt(void); extern void kernel_halt(void);
extern void kernel_power_off(void); extern void kernel_power_off(void);
......
...@@ -315,7 +315,7 @@ static void kernel_kexec(void) ...@@ -315,7 +315,7 @@ static void kernel_kexec(void)
#endif #endif
} }
void kernel_shutdown_prepare(enum system_states state) static void kernel_shutdown_prepare(enum system_states state)
{ {
blocking_notifier_call_chain(&reboot_notifier_list, blocking_notifier_call_chain(&reboot_notifier_list,
(state == SYSTEM_HALT)?SYS_HALT:SYS_POWER_OFF, NULL); (state == SYSTEM_HALT)?SYS_HALT:SYS_POWER_OFF, NULL);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册