Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761542AbXEaUIo (ORCPT ); Thu, 31 May 2007 16:08:44 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752171AbXEaUIe (ORCPT ); Thu, 31 May 2007 16:08:34 -0400 Received: from pasmtpa.tele.dk ([80.160.77.114]:56510 "EHLO pasmtpA.tele.dk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751409AbXEaUId (ORCPT ); Thu, 31 May 2007 16:08:33 -0400 Date: Thu, 31 May 2007 22:08:40 +0200 From: Sam Ravnborg To: Prarit Bhargava , netdev Cc: Christoph Lameter , "Luck, Tony" , Randy Dunlap , David Chinner , Andrew Morton , lkml , linux-ia64@vger.kernel.org Subject: [PATCH] net/hp100: fix section mismatch warning Message-ID: <20070531200840.GB27305@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: 1137 Lines: 36 Fix following section mismatch warning in hp100: WARNING: drivers/net/hp100.o(.init.text+0x26a): Section mismatch: reference to .exit.text: (after 'init_module') The warning says that we use a function marked __exit from a function marked __init. This is not good on architectures where we discard __exit section for drivers that are built-in. Signed-off-by: Sam Ravnborg --- Comple tested only. Note: This warning does not appear with modpost in upstream kernel but I would like to submit patches for the obvious bugs ASAP Sam diff --git a/drivers/net/hp100.c b/drivers/net/hp100.c index 8118a67..8caa591 100644 --- a/drivers/net/hp100.c +++ b/drivers/net/hp100.c @@ -3005,7 +3005,7 @@ static int __init hp100_isa_init(void) return cards > 0 ? 0 : -ENODEV; } -static void __exit hp100_isa_cleanup(void) +static void hp100_isa_cleanup(void) { int i; - 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/