Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

make kernel_shutdown_prepare() static

kernel_shutdown_prepare() can now become static.

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Acked-by: Pavel Machek <pavel@ucw.cz>
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Adrian Bunk and committed by
Linus Torvalds
4ef7229f 47a460d5

+1 -3
-2
include/linux/reboot.h
··· 59 59 * Architecture independent implemenations of sys_reboot commands. 60 60 */ 61 61 62 - extern void kernel_shutdown_prepare(enum system_states state); 63 - 64 62 extern void kernel_restart(char *cmd); 65 63 extern void kernel_halt(void); 66 64 extern void kernel_power_off(void);
+1 -1
kernel/sys.c
··· 315 315 #endif 316 316 } 317 317 318 - void kernel_shutdown_prepare(enum system_states state) 318 + static void kernel_shutdown_prepare(enum system_states state) 319 319 { 320 320 blocking_notifier_call_chain(&reboot_notifier_list, 321 321 (state == SYSTEM_HALT)?SYS_HALT:SYS_POWER_OFF, NULL);