Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754193AbXEaUub (ORCPT ); Thu, 31 May 2007 16:50:31 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750971AbXEaUuX (ORCPT ); Thu, 31 May 2007 16:50:23 -0400 Received: from pasmtpb.tele.dk ([80.160.77.98]:37964 "EHLO pasmtpB.tele.dk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750766AbXEaUuW (ORCPT ); Thu, 31 May 2007 16:50:22 -0400 Date: Thu, 31 May 2007 22:51:22 +0200 From: Sam Ravnborg To: Prarit Bhargava , tigran@aivazian.fsnet.co.uk Cc: Christoph Lameter , "Luck, Tony" , Randy Dunlap , David Chinner , Andrew Morton , lkml , linux-ia64@vger.kernel.org Subject: [PATCH] microcode: fix section mismatch warning Message-ID: <20070531205122.GG27305@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: 1227 Lines: 29 Fix the following section mismatch warnings in microcode.c: WARNING: arch/i386/kernel/built-in.o(.init.text+0x3966): Section mismatch: reference to .exit.text: (between 'microcode_init' and 'parse_maxcpus') WARNING: arch/i386/kernel/built-in.o(.init.text+0x3992): Section mismatch: reference to .exit.text: (between 'microcode_init' and 'parse_maxcpus') The warning are caused by a function marked __init that calls a function marked __exit. Functions marked __exit may be discarded either during link or run-time and thus the reference is not good. Signed-off-by: Sam Ravnborg --- diff --git a/arch/i386/kernel/microcode.c b/arch/i386/kernel/microcode.c index 83f825f..d865d04 100644 --- a/arch/i386/kernel/microcode.c +++ b/arch/i386/kernel/microcode.c @@ -478,7 +478,7 @@ static int __init microcode_dev_init (void) return 0; } -static void __exit microcode_dev_exit (void) +static void microcode_dev_exit (void) { misc_deregister(µcode_dev); } - 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/