mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/1] X86: mshyperv.c: Fix a compilation issue.
@ 2015-08-06 21:41 K. Y. Srinivasan
  2015-08-06 21:10 ` Greg KH
  0 siblings, 1 reply; 4+ messages in thread
From: K. Y. Srinivasan @ 2015-08-06 21:41 UTC (permalink / raw)
  To: gregkh, linux-kernel, devel, vkuznets, sfr, tglx, mingo, hpa,
	x86, haiyangz
  Cc: K. Y. Srinivasan

Building with a random configuration file, this build failure
was reported:

arch/x86/built-in.o: In function `hv_machine_crash_shutdown':
arch/x86/kernel/cpu/mshyperv.c:112: undefined
reference to `native_machine_crash_shutdown'

This patch fixes the problem

Reported-by: Jim Davis <jim.epost@gmail.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
---
 arch/x86/kernel/cpu/mshyperv.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/arch/x86/kernel/cpu/mshyperv.c b/arch/x86/kernel/cpu/mshyperv.c
index f794bfa..0faed5e0 100644
--- a/arch/x86/kernel/cpu/mshyperv.c
+++ b/arch/x86/kernel/cpu/mshyperv.c
@@ -109,7 +109,9 @@ static void hv_machine_crash_shutdown(struct pt_regs *regs)
 {
 	if (hv_crash_handler)
 		hv_crash_handler(regs);
+#ifdef CONFIG_KEXEC_CORE
 	native_machine_crash_shutdown(regs);
+#endif
 }
 
 
-- 
1.7.4.1


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

end of thread, other threads:[~2015-08-10 11:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-06 21:41 [PATCH 1/1] X86: mshyperv.c: Fix a compilation issue K. Y. Srinivasan
2015-08-06 21:10 ` Greg KH
2015-08-07  3:36   ` KY Srinivasan
2015-08-10 11:10     ` Vitaly Kuznetsov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome