Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 17 Oct 2002 09:27:25 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 17 Oct 2002 09:27:25 -0400 Received: from phoenix.infradead.org ([195.224.96.167]:1285 "EHLO phoenix.infradead.org") by vger.kernel.org with ESMTP id ; Thu, 17 Oct 2002 09:27:24 -0400 Date: Thu, 17 Oct 2002 14:33:08 +0100 From: Christoph Hellwig To: Rusty Russell Cc: torvalds@transmeta.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH] Module loader preparation Message-ID: <20021017143308.A24271@infradead.org> Mail-Followup-To: Christoph Hellwig , Rusty Russell , torvalds@transmeta.com, linux-kernel@vger.kernel.org References: <20021017034634.8D6462C0EB@lists.samba.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20021017034634.8D6462C0EB@lists.samba.org>; from rusty@rustcorp.com.au on Thu, Oct 17, 2002 at 01:31:54PM +1000 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 943 Lines: 21 On Thu, Oct 17, 2002 at 01:31:54PM +1000, Rusty Russell wrote: > This patch fixes a couple of places using the old "I can just call my > function init_module() and it will be called at module init" and a > couple of modules without module_init() declarations. > > These uses are obsolete with the in-kernel module loader, because the > module_init() is where we put the module name in the ".modulename" > section (we could have a "no_init_func()" thing, but it's fairly rare > and hardly intuitive). I don't think requiring a init func is a good idea. Please fix your module loader to generate a stub if no module_init() is present instead. init_module() sounds like a good idea to me, though. - 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/