* [PATCH] kvmclock.c: Fix section mismatch warning.
@ 2008-10-18 2:17 Rakib Mullick
0 siblings, 0 replies; only message in thread
From: Rakib Mullick @ 2008-10-18 2:17 UTC (permalink / raw)
To: linux-kernel; +Cc: Andrew Morton, Ingo Molnar
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.
This patch fixes the above warning.
Thanks.
Signed-off-by: Md.Rakib H. Mullick(rakib.mullick@gmail.com)
--- linux-2.6-orig/arch/x86/kernel/kvmclock.c 2008-10-16
20:03:12.000000000 +0600
+++ linux-2.6/arch/x86/kernel/kvmclock.c 2008-10-17 23:48:54.000000000 +0600
@@ -100,7 +100,7 @@ static int kvm_register_clock(char *txt)
}
#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,
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-10-18 2:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-18 2:17 [PATCH] kvmclock.c: Fix section mismatch warning Rakib Mullick
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®