From: Florian Fainelli Date: Fri, 21 Oct 2016 01:15:16 +0000 (-0700) Subject: kexec: Export kexec_in_progress to modules X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=97dcaa0fcfd24daa9a36c212c1ad1d5a97759212;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git kexec: Export kexec_in_progress to modules The bcm_sf2 driver uses kexec_in_progress to know whether it can power down an integrated PHY during shutdown, and can be built as a module. Other modules may be using this in the future, so export it. Fixes: 2399d6143f85 ("net: dsa: bcm_sf2: Prevent GPHY shutdown for kexec'd kernels") Signed-off-by: Florian Fainelli Signed-off-by: David S. Miller --- diff --git a/kernel/kexec_core.c b/kernel/kexec_core.c index 561675589511..786ab85a5452 100644 --- a/kernel/kexec_core.c +++ b/kernel/kexec_core.c @@ -59,6 +59,7 @@ size_t vmcoreinfo_max_size = sizeof(vmcoreinfo_data); /* Flag to indicate we are going to kexec a new kernel */ bool kexec_in_progress = false; +EXPORT_SYMBOL_GPL(kexec_in_progress); /* Location of the reserved area for the crash kernel */