From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755623AbbHFUQG (ORCPT ); Thu, 6 Aug 2015 16:16:06 -0400 Received: from p3plsmtps2ded04.prod.phx3.secureserver.net ([208.109.80.198]:34622 "EHLO p3plsmtps2ded04.prod.phx3.secureserver.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755277AbbHFUQF (ORCPT ); Thu, 6 Aug 2015 16:16:05 -0400 x-originating-ip: 72.167.245.219 From: "K. Y. Srinivasan" To: gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, devel@linuxdriverproject.org, vkuznets@redhat.com, sfr@canb.auug.org.au, tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com, x86@kernel.org, haiyangz@microsoft.com Cc: "K. Y. Srinivasan" Subject: [PATCH 1/1] X86: mshyperv.c: Fix a compilation issue. Date: Thu, 6 Aug 2015 14:41:24 -0700 Message-Id: <1438897284-4274-1-git-send-email-kys@microsoft.com> X-Mailer: git-send-email 1.7.4.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Signed-off-by: K. Y. Srinivasan --- 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