From af1d96f2670987de51a4ecd5c6321ff4d67bb5b2 Mon Sep 17 00:00:00 2001 From: Elliot Berman Date: Tue, 28 Sep 2021 08:48:55 -0700 Subject: [PATCH] ANDROID: reboot: Export reboot_mode Export reboot_mode to support kernel modules wishing to modify reboot_mode. Bug: 143964928 Change-Id: I9667d55296a0c73115a7a55d27e406b1291104ef Link: https://lore.kernel.org/patchwork/patch/1151092/ Reviewed-by: Bjorn Andersson Reviewed-by: Greg Kroah-Hartman Signed-off-by: Elliot Berman --- kernel/reboot.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/reboot.c b/kernel/reboot.c index f7440c0c7e43..957ef52b8af4 100644 --- a/kernel/reboot.c +++ b/kernel/reboot.c @@ -33,7 +33,9 @@ EXPORT_SYMBOL(cad_pid); #define DEFAULT_REBOOT_MODE #endif enum reboot_mode reboot_mode DEFAULT_REBOOT_MODE; +EXPORT_SYMBOL_GPL(reboot_mode); enum reboot_mode panic_reboot_mode = REBOOT_UNDEFINED; +EXPORT_SYMBOL_GPL(panic_reboot_mode); /* * This variable is used privately to keep track of whether or not