Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 20 Nov 2002 02:28:15 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 20 Nov 2002 02:20:13 -0500 Received: from dp.samba.org ([66.70.73.150]:56275 "EHLO lists.samba.org") by vger.kernel.org with ESMTP id ; Wed, 20 Nov 2002 02:19:49 -0500 From: Rusty Russell To: Jeff Garzik Cc: linux-kernel@vger.kernel.org, rusty@rustcorp.com.au Subject: Re: [PATCH] mii module broken under new scheme In-reply-to: Your message of "Tue, 19 Nov 2002 12:51:44 CDT." <3DDA7A30.4010403@pobox.com> Date: Wed, 20 Nov 2002 08:38:52 +1100 Message-Id: <20021120072654.1B6192C07A@lists.samba.org> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1264 Lines: 31 In message <3DDA7A30.4010403@pobox.com> you write: > Matt Reppert wrote: > > > drivers/net/mii.c doesn't export module init/cleanup functions. That > > means it > > can't be loaded under the new module scheme. This patch adds do-nothing > > functions for it, which allows it to load. (8139too depends on mii, so > > without this I don't have network.) > > ahhh! I was wondering what was up, but since I was busy with other > things I just compiled it into the kernel and continued on my way. > > That's a bug in the new module loader. Yes. But the workaround of calling the module "unknown" isn't nice either: just put "no_module_init;" in and be done with it (it's also a big hint that the module doesn't do anything itself). Richard Henderson, Kai and myself are discussing a post-link stage for modules, which will allow us to add the .modname section at that time, but 99% of the cases are already fixed. Sorry for any trouble, Rusty. -- Anyone who quotes me in their sig is an idiot. -- Rusty Russell. - 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/