public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Sam Ravnborg <sam@ravnborg.org>
To: Prarit Bhargava <prarit@redhat.com>, avi@qumranet.com
Cc: Christoph Lameter <clameter@sgi.com>,
	"Luck, Tony" <tony.luck@intel.com>,
	Randy Dunlap <randy.dunlap@oracle.com>,
	David Chinner <dgc@sgi.com>,
	Andrew Morton <akpm@linux-foundation.org>,
	lkml <linux-kernel@vger.kernel.org>,
	linux-ia64@vger.kernel.org
Subject: [PATCH] kvm: fix section mismatch warning in kvm-intel.o
Date: Thu, 31 May 2007 22:17:24 +0200	[thread overview]
Message-ID: <20070531201724.GC27305@uranus.ravnborg.org> (raw)
In-Reply-To: <20070531200446.GA27305@uranus.ravnborg.org>

Fix following section mismatch warning in kvm-intel.o:
WARNING: o-i386/drivers/kvm/kvm-intel.o(.init.text+0xbd): Section mismatch: reference to .exit.text: (between 'hardware_setup' and 'vmx_disabled_by_bios')

The function free_kvm_area is used in the function alloc_kvm_area which
is marked __init.
The __exit area is discarded by some archs during link-time if a 
module is built-in resulting in an oops.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
---
Note: This warning is only seen by my local copy of modpost
      but the change will soon hit upstream.

	Sam

diff --git a/drivers/kvm/vmx.c b/drivers/kvm/vmx.c
index e6e4d24..184238e 100644
--- a/drivers/kvm/vmx.c
+++ b/drivers/kvm/vmx.c
@@ -639,7 +639,7 @@ static void free_vmcs(struct vmcs *vmcs)
 	free_pages((unsigned long)vmcs, vmcs_descriptor.order);
 }
 
-static __exit void free_kvm_area(void)
+static void free_kvm_area(void)
 {
 	int cpu;
 

  parent reply	other threads:[~2007-05-31 20:16 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-23  6:31 BUG: sleeping function called from invalid context at kernel/fork.c:385 David Chinner
2007-05-23  6:43 ` Andrew Morton
2007-05-23 17:44   ` Luck, Tony
2007-05-30  3:30     ` David Chinner
2007-05-30  4:44       ` David Chinner
2007-05-30 20:11         ` Luck, Tony
2007-05-30 22:39           ` Christoph Lameter
2007-05-30 23:19             ` Luck, Tony
2007-05-30 23:31               ` Christoph Lameter
2007-05-30 23:34                 ` Randy Dunlap
2007-05-30 23:53                   ` Christoph Lameter
2007-05-30 23:55                     ` Randy Dunlap
2007-05-31  0:09                       ` Christoph Lameter
2007-05-31  2:37                         ` Luck, Tony
2007-05-31  3:19                           ` Christoph Lameter
2007-05-31 15:20                             ` Prarit Bhargava
2007-05-31 19:54                               ` Sam Ravnborg
2007-05-31 20:04                               ` Sam Ravnborg
2007-05-31 20:08                                 ` [PATCH] net/hp100: fix section mismatch warning Sam Ravnborg
2007-05-31 20:17                                 ` Sam Ravnborg [this message]
2007-05-31 20:24                                 ` [PATCH] acpi: fix section mismatch warning in asus_acpi.o Sam Ravnborg
2007-05-31 20:29                                   ` [PATCH] acpi: fix section mismatch warning in asus + toshiba Sam Ravnborg
2007-05-31 20:46                                 ` [PATCH] isdn: fix section mismatch warnings Sam Ravnborg
2007-05-31 20:51                                 ` [PATCH] microcode: fix section mismatch warning Sam Ravnborg
2007-05-31 20:42                               ` BUG: sleeping function called from invalid context at kernel/fork.c:385 Christoph Lameter
2007-06-01  3:18                               ` Luck, Tony
2007-06-01  3:31                                 ` Prarit Bhargava
2007-06-01  4:05                                   ` Christoph Lameter
2007-06-01  4:17                                     ` Sam Ravnborg
2007-06-01  4:45                                       ` Christoph Lameter
2007-06-01  6:42                                         ` Sam Ravnborg
2007-06-01  8:00                                   ` Luck, Tony
2007-06-01 10:30                                     ` Prarit Bhargava
2007-06-01 10:37                                       ` Luck, Tony
2007-06-05 14:55                                     ` linux-ia64 build warning messages Russ Anderson
2007-06-07  5:00                                       ` Peter Chubb
2007-05-31  6:12                         ` BUG: sleeping function called from invalid context at kernel/fork.c:385 Randy Dunlap
2007-05-31  4:43                 ` Sam Ravnborg
2007-05-31  0:53           ` David Chinner
2007-06-04  5:14             ` Peter Chubb

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070531201724.GC27305@uranus.ravnborg.org \
    --to=sam@ravnborg.org \
    --cc=akpm@linux-foundation.org \
    --cc=avi@qumranet.com \
    --cc=clameter@sgi.com \
    --cc=dgc@sgi.com \
    --cc=linux-ia64@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=prarit@redhat.com \
    --cc=randy.dunlap@oracle.com \
    --cc=tony.luck@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox