netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] kexec: Export kexec_in_progress to modules
@ 2016-10-21  1:15 Florian Fainelli
  2016-10-21  1:54 ` David Miller
  0 siblings, 1 reply; 6+ messages in thread
From: Florian Fainelli @ 2016-10-21  1:15 UTC (permalink / raw)
  To: netdev; +Cc: ebiederm, kexec, linux-kernel, davem, sfr, Florian Fainelli

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 <f.fainelli@gmail.com>
---
Eric, David, Stephen,

The offending commit is in David's net.git tree, so it would probably make
sense to route the fix through the same tree.

Thanks!

 kernel/kexec_core.c | 1 +
 1 file changed, 1 insertion(+)

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 */
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-10-21 18:48 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-21  1:15 [PATCH] kexec: Export kexec_in_progress to modules Florian Fainelli
2016-10-21  1:54 ` David Miller
2016-10-21  5:26   ` Eric W. Biederman
2016-10-21 14:13     ` David Miller
2016-10-21 18:37       ` Eric W. Biederman
2016-10-21 18:48         ` Florian Fainelli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).