Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755457AbcJLPXu (ORCPT ); Wed, 12 Oct 2016 11:23:50 -0400 Received: from mout.kundenserver.de ([212.227.17.13]:53562 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754043AbcJLPXm (ORCPT ); Wed, 12 Oct 2016 11:23:42 -0400 From: Arnd Bergmann To: Boris Ostrovsky Cc: Arnd Bergmann , David Vrabel , Juergen Gross , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org, Andy Lutomirski , Vitaly Kuznetsov , "Luis R. Rodriguez" , Borislav Petkov , Stefano Stabellini , xen-devel@lists.xenproject.org, linux-kernel@vger.kernel.org Subject: [PATCH] x86: xen: move cpu_up functions out of ifdef Date: Wed, 12 Oct 2016 17:20:38 +0200 Message-Id: <20161012152118.3015168-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K0:5Q9C24R+rBxuQOBvppnAUXX/TmeU1aPBBs1znwjrtsNVFaYdx9e zZG3m2XdZqCD5b/HJcrvSrcbcqdD4rNoNLm++Pz2NYNdWP0zuvmuNm4SWekGoBZFX5cIoZk 9GyJ1EaOnGiHt9I0mbrr17UrLDOpFQ93uosNnyI+gwM5S1+K+FoYEUk4WqK6TM5fJIHEcBG CWsFAfKYIfKcKyCWP8HCw== X-UI-Out-Filterresults: notjunk:1;V01:K0:zIqVDFyt5W8=:Um0lbg7jijK3YXNhpzltty LbD1L61kRpMiQiJIGc9PUr0rE4bTEza6QE8Ez7A62090U4qOiD16yEoifjA56bzFyE4I9uwj2 8LWq3rviObOhpLpMypdCKcJ10b8h8+TXpaSpMTDhwfR9roUSOoPnKgDMETYppVDp6YbvFr75b lBrYRiZUNvfb3OyHfVZPpoGcCeAgRf5IzssJ2TyLBlgclvj6GZTNYqbt83/WFqTavJPfvez65 ZQ8zhcP3lmDQ54yZVMeSL0WStPRmyWkJyJ3zDIusUCMc0oVkoUjtXiaIZL+EUtaalN7tyEdGV 9q5j9lV6EOh/MeXrbPuku27TOUPEpNusX3kHiwk7Qe2HfitLrQx5+ApOmTqDnJTMtjPg4nQth t3TObPJAfNlcXZWrMaTVgKQ8/W3lRf+XMSPq6rF4siq/zdj2oFRXmKLmktCeVXG9OKi8uOJWF /pSU0jC/hDPHb4kxDz59itN9ScZTrgKPbuxgaCTMklIp3baYLisipOmCn7+JjCEl4CKPSKTLU xV7VZBR6qZgWD6oFiece2KgbJRcEh/s+wU+d0FLVjbzGeQQmon0kwXW6QQZRQ5g3+JhvfUkDR 4wzdXD9ArcS/5UwPNkoK2c3f6q5YOpGb1B1Qap7qEbofjl3Ie6wtGAlreGHP4hTO8yhg+FW+6 +y2sPF3Q/Lxpe8uI45eeVjUe0QdieoYt9MkNL61/BUo/eJ7NKJYNc1P7uptOT1sLpcFg+FnFg zhO8rme71Gneswjj Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1077 Lines: 35 Three newly introduced functions are not defined when CONFIG_XEN_PVHVM is disabled, but are still being used: arch/x86/xen/enlighten.c:141:12: warning: ‘xen_cpu_up_prepare’ used but never defined arch/x86/xen/enlighten.c:142:12: warning: ‘xen_cpu_up_online’ used but never defined arch/x86/xen/enlighten.c:143:12: warning: ‘xen_cpu_dead’ used but never defined Fixes: 4d737042d6c4 ("xen/x86: Convert to hotplug state machine") Signed-off-by: Arnd Bergmann --- arch/x86/xen/enlighten.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/xen/enlighten.c b/arch/x86/xen/enlighten.c index c0fdd57da7aa..bdd855685403 100644 --- a/arch/x86/xen/enlighten.c +++ b/arch/x86/xen/enlighten.c @@ -1837,6 +1837,7 @@ static void __init init_hvm_pv_info(void) xen_domain_type = XEN_HVM_DOMAIN; } +#endif static int xen_cpu_up_prepare(unsigned int cpu) { @@ -1887,6 +1888,7 @@ static int xen_cpu_up_online(unsigned int cpu) return 0; } +#ifdef CONFIG_XEN_PVHVM #ifdef CONFIG_KEXEC_CORE static void xen_hvm_shutdown(void) { -- 2.9.0