Skip to content

Commit

Permalink
x86: xen: move cpu_up functions out of ifdef
Browse files Browse the repository at this point in the history
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: 4d73704 ("xen/x86: Convert to hotplug state machine")
Signed-off-by: Arnd Bergmann <[email protected]>
Signed-off-by: David Vrabel <[email protected]>
  • Loading branch information
arndb authored and David Vrabel committed Oct 24, 2016
1 parent 44b3c7a commit cb5f7e7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/x86/xen/enlighten.c
Original file line number Diff line number Diff line change
Expand Up @@ -1838,6 +1838,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)
{
Expand Down Expand Up @@ -1888,6 +1889,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)
{
Expand Down

0 comments on commit cb5f7e7

Please sign in to comment.