Skip to content

Commit cb5f7e7

Browse files
arndbDavid Vrabel
authored andcommitted
x86: xen: move cpu_up functions out of ifdef
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]>
1 parent 44b3c7a commit cb5f7e7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arch/x86/xen/enlighten.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1838,6 +1838,7 @@ static void __init init_hvm_pv_info(void)
18381838

18391839
xen_domain_type = XEN_HVM_DOMAIN;
18401840
}
1841+
#endif
18411842

18421843
static int xen_cpu_up_prepare(unsigned int cpu)
18431844
{
@@ -1888,6 +1889,7 @@ static int xen_cpu_up_online(unsigned int cpu)
18881889
return 0;
18891890
}
18901891

1892+
#ifdef CONFIG_XEN_PVHVM
18911893
#ifdef CONFIG_KEXEC_CORE
18921894
static void xen_hvm_shutdown(void)
18931895
{

0 commit comments

Comments
 (0)