All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] x86,kvm: Fix section mismatches in kvm.c
@ 2009-07-02  5:40 Rakib Mullick
  2009-07-02 11:24 ` Avi Kivity
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Rakib Mullick @ 2009-07-02  5:40 UTC (permalink / raw)
  To: Ingo Molnar; +Cc: avi, LKML, Andrew Morton

 Impact: Fix section mismatch.

The function paravirt_ops_setup() has been refering the variable
no_timer_check, which is a __initdata. Thus generates the following
warning. paravirt_ops_setup() function is called from kvm_guest_init()
which is a __init function. So to fix this we mark paravirt_ops_setup
as __init.

Thanks,

 LD      arch/x86/built-in.o
WARNING: arch/x86/built-in.o(.text+0x166ce): Section mismatch in
reference from the function paravirt_ops_setup() to the variable
.init.data:no_timer_check
The function paravirt_ops_setup() references
the variable __initdata no_timer_check.
This is often because paravirt_ops_setup lacks a __initdata
annotation or the annotation of no_timer_check is wrong.

---
Signed-off-by: Rakib Mullick <rakib.mullick@gmail.com>

--- linus/arch/x86/kernel/kvm.c	2009-07-01 20:43:56.124988432 +0600
+++ rakib/arch/x86/kernel/kvm.c	2009-07-01 20:42:38.000000000 +0600
@@ -200,7 +200,7 @@ static void kvm_leave_lazy_mmu(void)
 	state->mode = paravirt_get_lazy_mode();
 }

-static void paravirt_ops_setup(void)
+static void __init paravirt_ops_setup(void)
 {
 	pv_info.name = "KVM";
 	pv_info.paravirt_enabled = 1;

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

* Re: [PATCH] x86,kvm: Fix section mismatches in kvm.c
  2009-07-02  5:40 [PATCH] x86,kvm: Fix section mismatches in kvm.c Rakib Mullick
@ 2009-07-02 11:24 ` Avi Kivity
  2009-07-03  9:12 ` [tip:x86/urgent] x86, kvm: " tip-bot for Rakib Mullick
  2009-07-03 12:45 ` tip-bot for Rakib Mullick
  2 siblings, 0 replies; 4+ messages in thread
From: Avi Kivity @ 2009-07-02 11:24 UTC (permalink / raw)
  To: Rakib Mullick; +Cc: Ingo Molnar, LKML, Andrew Morton

On 07/02/2009 08:40 AM, Rakib Mullick wrote:
>   Impact: Fix section mismatch.
>
> The function paravirt_ops_setup() has been refering the variable
> no_timer_check, which is a __initdata. Thus generates the following
> warning. paravirt_ops_setup() function is called from kvm_guest_init()
> which is a __init function. So to fix this we mark paravirt_ops_setup
> as __init.
>    

Ingo, if you already have something queued up for 2.6.31, please tack 
this on.

-- 
error compiling committee.c: too many arguments to function


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

* [tip:x86/urgent] x86, kvm: Fix section mismatches in kvm.c
  2009-07-02  5:40 [PATCH] x86,kvm: Fix section mismatches in kvm.c Rakib Mullick
  2009-07-02 11:24 ` Avi Kivity
@ 2009-07-03  9:12 ` tip-bot for Rakib Mullick
  2009-07-03 12:45 ` tip-bot for Rakib Mullick
  2 siblings, 0 replies; 4+ messages in thread
From: tip-bot for Rakib Mullick @ 2009-07-03  9:12 UTC (permalink / raw)
  To: linux-tip-commits
  Cc: linux-kernel, hpa, mingo, rakib.mullick, akpm, tglx, avi, mingo

Commit-ID:  0931b62509187081a3154634989726ba3d275f8d
Gitweb:     http://git.kernel.org/tip/0931b62509187081a3154634989726ba3d275f8d
Author:     Rakib Mullick <rakib.mullick@gmail.com>
AuthorDate: Thu, 2 Jul 2009 11:40:36 +0600
Committer:  Ingo Molnar <mingo@elte.hu>
CommitDate: Fri, 3 Jul 2009 11:10:56 +0200

x86, kvm: Fix section mismatches in kvm.c

The function paravirt_ops_setup() has been refering the
variable no_timer_check, which is a __initdata. Thus generates
the following warning. paravirt_ops_setup() function is called
from kvm_guest_init() which is a __init function. So to fix
this we mark paravirt_ops_setup as __init.

The sections-check output that warned us about this was:

   LD      arch/x86/built-in.o
  WARNING: arch/x86/built-in.o(.text+0x166ce): Section mismatch in
  reference from the function paravirt_ops_setup() to the variable
  .init.data:no_timer_check
  The function paravirt_ops_setup() references
  the variable __initdata no_timer_check.
  This is often because paravirt_ops_setup lacks a __initdata
  annotation or the annotation of no_timer_check is wrong.

Signed-off-by: Rakib Mullick <rakib.mullick@gmail.com>
Acked-by: Avi Kivity <avi@redhat.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
LKML-Reference: <b9df5fa10907012240y356427b8ta4bd07f0efc6a049@mail.gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>


---
 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 a78ecad..c664d51 100644
--- a/arch/x86/kernel/kvm.c
+++ b/arch/x86/kernel/kvm.c
@@ -200,7 +200,7 @@ static void kvm_leave_lazy_mmu(void)
 	state->mode = paravirt_get_lazy_mode();
 }
 
-static void paravirt_ops_setup(void)
+static void __init paravirt_ops_setup(void)
 {
 	pv_info.name = "KVM";
 	pv_info.paravirt_enabled = 1;

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

* [tip:x86/urgent] x86, kvm: Fix section mismatches in kvm.c
  2009-07-02  5:40 [PATCH] x86,kvm: Fix section mismatches in kvm.c Rakib Mullick
  2009-07-02 11:24 ` Avi Kivity
  2009-07-03  9:12 ` [tip:x86/urgent] x86, kvm: " tip-bot for Rakib Mullick
@ 2009-07-03 12:45 ` tip-bot for Rakib Mullick
  2 siblings, 0 replies; 4+ messages in thread
From: tip-bot for Rakib Mullick @ 2009-07-03 12:45 UTC (permalink / raw)
  To: linux-tip-commits
  Cc: linux-kernel, hpa, mingo, rakib.mullick, akpm, tglx, avi, mingo

Commit-ID:  d3ac88157c1e9153f37cd2b9313117ae11735063
Gitweb:     http://git.kernel.org/tip/d3ac88157c1e9153f37cd2b9313117ae11735063
Author:     Rakib Mullick <rakib.mullick@gmail.com>
AuthorDate: Thu, 2 Jul 2009 11:40:36 +0600
Committer:  Ingo Molnar <mingo@elte.hu>
CommitDate: Fri, 3 Jul 2009 14:34:22 +0200

x86, kvm: Fix section mismatches in kvm.c

The function paravirt_ops_setup() has been refering the
variable no_timer_check, which is a __initdata. Thus generates
the following warning. paravirt_ops_setup() function is called
from kvm_guest_init() which is a __init function. So to fix
this we mark paravirt_ops_setup as __init.

The sections-check output that warned us about this was:

   LD      arch/x86/built-in.o
  WARNING: arch/x86/built-in.o(.text+0x166ce): Section mismatch in
  reference from the function paravirt_ops_setup() to the variable
  .init.data:no_timer_check
  The function paravirt_ops_setup() references
  the variable __initdata no_timer_check.
  This is often because paravirt_ops_setup lacks a __initdata
  annotation or the annotation of no_timer_check is wrong.

Signed-off-by: Rakib Mullick <rakib.mullick@gmail.com>
Acked-by: Avi Kivity <avi@redhat.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
LKML-Reference: <b9df5fa10907012240y356427b8ta4bd07f0efc6a049@mail.gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>


---
 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 a78ecad..c664d51 100644
--- a/arch/x86/kernel/kvm.c
+++ b/arch/x86/kernel/kvm.c
@@ -200,7 +200,7 @@ static void kvm_leave_lazy_mmu(void)
 	state->mode = paravirt_get_lazy_mode();
 }
 
-static void paravirt_ops_setup(void)
+static void __init paravirt_ops_setup(void)
 {
 	pv_info.name = "KVM";
 	pv_info.paravirt_enabled = 1;

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

end of thread, other threads:[~2009-07-03 12:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-02  5:40 [PATCH] x86,kvm: Fix section mismatches in kvm.c Rakib Mullick
2009-07-02 11:24 ` Avi Kivity
2009-07-03  9:12 ` [tip:x86/urgent] x86, kvm: " tip-bot for Rakib Mullick
2009-07-03 12:45 ` tip-bot for Rakib Mullick

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.