public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] kvm: Fix section mismatch derived from kvm_guest_cpu_online()
@ 2011-01-02 23:01 Sedat Dilek
  2011-01-02 23:39 ` Rik van Riel
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Sedat Dilek @ 2011-01-02 23:01 UTC (permalink / raw)
  To: tglx, mingo, hpa, x86, riel, mtosatti, gleb, avi, linux-kernel
  Cc: Sedat Dilek

>From my build.log:

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 <sedat.dilek@gmail.com>
---
 arch/x86/kernel/kvm.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/x86/kernel/kvm.c b/arch/x86/kernel/kvm.c
index 8dc4466..33c07b0 100644
--- a/arch/x86/kernel/kvm.c
+++ b/arch/x86/kernel/kvm.c
@@ -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();
 }
-- 
1.7.4.rc0


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-02-02  9:25 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-02 23:01 [PATCH] kvm: Fix section mismatch derived from kvm_guest_cpu_online() Sedat Dilek
2011-01-02 23:39 ` Rik van Riel
2011-01-03 21:36 ` H. Peter Anvin
2011-01-04  9:48   ` Avi Kivity
2011-01-04 21:03 ` Marcelo Tosatti
2011-02-02  7:55   ` Sedat Dilek
2011-02-02  9:10     ` Avi Kivity
2011-02-02  9:25       ` Sedat Dilek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox