Commit a29a2af3 authored by Rakib Mullick's avatar Rakib Mullick Committed by Avi Kivity

x86: KVM guest: fix section mismatch warning in kvmclock.c

WARNING: arch/x86/kernel/built-in.o(.text+0x1722c): Section mismatch
in reference from the function kvm_setup_secondary_clock() to the
function .devinit.text:setup_secondary_APIC_clock()
The function kvm_setup_secondary_clock() references
the function __devinit setup_secondary_APIC_clock().
This is often because kvm_setup_secondary_clock lacks a __devinit
annotation or the annotation of setup_secondary_APIC_clock is wrong.
Signed-off-by: default avatarMd.Rakib H. Mullick <rakib.mullick@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
parent a2e4e289
...@@ -128,7 +128,7 @@ static int kvm_register_clock(char *txt) ...@@ -128,7 +128,7 @@ static int kvm_register_clock(char *txt)
} }
#ifdef CONFIG_X86_LOCAL_APIC #ifdef CONFIG_X86_LOCAL_APIC
static void kvm_setup_secondary_clock(void) static void __devinit kvm_setup_secondary_clock(void)
{ {
/* /*
* Now that the first cpu already had this clocksource initialized, * Now that the first cpu already had this clocksource initialized,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment