Skip to content

Commit

Permalink
KVM guest: Fix section mismatch derived from kvm_guest_cpu_online()
Browse files Browse the repository at this point in the history
WARNING: arch/x86/built-in.o(.text+0x1bb74): Section mismatch in reference from the function kvm_guest_cpu_online() to the function .cpuinit.text:kvm_guest_cpu_init()
The function kvm_guest_cpu_online() references
the function __cpuinit kvm_guest_cpu_init().
This is often because kvm_guest_cpu_online lacks a __cpuinit
annotation or the annotation of kvm_guest_cpu_init is wrong.

This patch fixes the warning.

Tested with linux-next (next-20101231)

Signed-off-by: Sedat Dilek <[email protected]>
Acked-by: Rik van Riel <[email protected]>
Signed-off-by: Marcelo Tosatti <[email protected]>
  • Loading branch information
Sedat Dilek authored and matosatti committed Mar 17, 2011
1 parent 8234b22 commit 775077a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/kernel/kvm.c
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ static void __init kvm_smp_prepare_boot_cpu(void)
native_smp_prepare_boot_cpu();
}

static void kvm_guest_cpu_online(void *dummy)
static void __cpuinit kvm_guest_cpu_online(void *dummy)
{
kvm_guest_cpu_init();
}
Expand Down

0 comments on commit 775077a

Please sign in to comment.