Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261575AbVAXTFy (ORCPT ); Mon, 24 Jan 2005 14:05:54 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261570AbVAXTEU (ORCPT ); Mon, 24 Jan 2005 14:04:20 -0500 Received: from emailhub.stusta.mhn.de ([141.84.69.5]:13836 "HELO mailout.stusta.mhn.de") by vger.kernel.org with SMTP id S261572AbVAXTDX (ORCPT ); Mon, 24 Jan 2005 14:03:23 -0500 Date: Mon, 24 Jan 2005 20:03:20 +0100 From: Adrian Bunk To: Evgeniy Polyakov Cc: Andrew Morton , Greg Kroah-Hartman , linux-kernel@vger.kernel.org Subject: Re: 2.6.11-rc2-mm1: SuperIO scx200 breakage Message-ID: <20050124190320.GO3515@stusta.de> References: <20050124021516.5d1ee686.akpm@osdl.org> <20050124175449.GK3515@stusta.de> <20050124214336.2c555b53@zanzibar.2ka.mipt.ru> <20050124182926.GM3515@stusta.de> <20050124221929.590418e2@zanzibar.2ka.mipt.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050124221929.590418e2@zanzibar.2ka.mipt.ru> User-Agent: Mutt/1.5.6+20040907i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2728 Lines: 63 On Mon, Jan 24, 2005 at 10:19:29PM +0300, Evgeniy Polyakov wrote: > On Mon, 24 Jan 2005 19:29:26 +0100 > Adrian Bunk wrote: > > > On Mon, Jan 24, 2005 at 09:43:36PM +0300, Evgeniy Polyakov wrote: > > > On Mon, 24 Jan 2005 18:54:49 +0100 > > > Adrian Bunk wrote: > > > > > > > It seems noone who reviewed the SuperIO patches noticed that there are > > > > now two modules "scx200" in the kernel... > > > > > > They are almost mutually exlusive(SuperIO contains more advanced), > > > so I do not see any problem here. > > > > The Kconfig files allow building both modular at the same time. > > > > > Only one of them can be loaded in a time. > > > > You are assuming the module support was in able to correctly handle two > > modules with the same name... > > > > > So what does exactly bother you? > > > > if [ -r System.map ]; then /sbin/depmod -ae -F System.map 2.6.11-rc2-mm1; fi > > WARNING: /lib/modules/2.6.11-rc2-mm1/kernel/drivers/i2c/busses/scx200_i2c.ko needs unknown symbol scx200_gpio_base > > WARNING: /lib/modules/2.6.11-rc2-mm1/kernel/drivers/i2c/busses/scx200_i2c.ko needs unknown symbol scx200_gpio_configure > > WARNING: /lib/modules/2.6.11-rc2-mm1/kernel/drivers/i2c/busses/scx200_i2c.ko needs unknown symbol scx200_gpio_shadow > > WARNING: /lib/modules/2.6.11-rc2-mm1/kernel/drivers/char/scx200_gpio.ko needs unknown symbol scx200_gpio_base > > WARNING: /lib/modules/2.6.11-rc2-mm1/kernel/drivers/char/scx200_gpio.ko needs unknown symbol scx200_gpio_configure > > WARNING: /lib/modules/2.6.11-rc2-mm1/kernel/drivers/char/scx200_gpio.ko needs unknown symbol scx200_gpio_shadow > > Sorry, I can not buy it. > Above symbols are defined in old scx200 driver, and I it is depmod > who tries to get them from superio. More exactly, "make modules_install" does install only one of the two drivers. > I definitely sure that it must be solved on the other layers. >... Two modules with the same name are simply a _very_ bad idea. Even if they weren't allowed to be compiled at the same time, they should be named differently or it will cause much confusion for everyone (or don't you want to see from the output of "lsmod" which of the two modules is loaded?). cu Adrian -- "Is there not promise of rain?" Ling Tan asked suddenly out of the darkness. There had been need of rain for many days. "Only a promise," Lao Er said. Pearl S. Buck - Dragon Seed - 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/