linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] hyperv: fix build if KEXEC not enabled
@ 2015-09-07 17:22 Stephen Hemminger
  2015-09-08  7:14 ` Ingo Molnar
  2015-09-08  7:21 ` Vitaly Kuznetsov
  0 siblings, 2 replies; 7+ messages in thread
From: Stephen Hemminger @ 2015-09-07 17:22 UTC (permalink / raw)
  To: K. Y. Srinivasan, Haiyang Zhang, Vitaly Kuznetsov,
	Greg Kroah-Hartman
  Cc: x86, linux-kernel

Fixes regression 4.3 mergw window in my config 
where hyperv is enable but CONFIG_KEXEC not enabled.

arch/x86/kernel/cpu/mshyperv.c:112: undefined reference to `native_machine_crash_shutdown'

Introduced by:
   commit b4370df2b1f5158de028e167974263c5757b34a6
   Author: Vitaly Kuznetsov <vkuznets@redhat.com>
   Date:   Sat Aug 1 16:08:09 2015 -0700

       Drivers: hv: vmbus: add special crash handler


Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>


--- a/arch/x86/kernel/cpu/mshyperv.c	2015-09-07 10:11:24.994885115 -0700
+++ b/arch/x86/kernel/cpu/mshyperv.c	2015-09-07 10:14:20.995698615 -0700
@@ -109,7 +109,9 @@ static void hv_machine_crash_shutdown(st
 {
 	if (hv_crash_handler)
 		hv_crash_handler(regs);
+#ifdef CONFIG_KEXEC
 	native_machine_crash_shutdown(regs);
+#endif
 }
 
 

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

end of thread, other threads:[~2015-09-08 21:34 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-07 17:22 [PATCH] hyperv: fix build if KEXEC not enabled Stephen Hemminger
2015-09-08  7:14 ` Ingo Molnar
2015-09-08  7:31   ` Vitaly Kuznetsov
2015-09-08  7:57     ` Ingo Molnar
2015-09-08 21:34       ` Vitaly Kuznetsov
2015-09-08  7:21 ` Vitaly Kuznetsov
2015-09-08  7:33   ` Ingo Molnar

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).