Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759767AbXEaUQe (ORCPT ); Thu, 31 May 2007 16:16:34 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754152AbXEaUQZ (ORCPT ); Thu, 31 May 2007 16:16:25 -0400 Received: from pasmtpa.tele.dk ([80.160.77.114]:37809 "EHLO pasmtpA.tele.dk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750971AbXEaUQY (ORCPT ); Thu, 31 May 2007 16:16:24 -0400 Date: Thu, 31 May 2007 22:17:24 +0200 From: Sam Ravnborg To: Prarit Bhargava , avi@qumranet.com Cc: Christoph Lameter , "Luck, Tony" , Randy Dunlap , David Chinner , Andrew Morton , lkml , linux-ia64@vger.kernel.org Subject: [PATCH] kvm: fix section mismatch warning in kvm-intel.o Message-ID: <20070531201724.GC27305@uranus.ravnborg.org> References: <617E1C2C70743745A92448908E030B2A01929DD3@scsmsx411.amr.corp.intel.com> <465EE7BB.4050605@redhat.com> <20070531200446.GA27305@uranus.ravnborg.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070531200446.GA27305@uranus.ravnborg.org> User-Agent: Mutt/1.4.2.1i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1158 Lines: 33 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 --- 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; - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/