From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754413AbYAXBnb (ORCPT ); Wed, 23 Jan 2008 20:43:31 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752693AbYAXBnX (ORCPT ); Wed, 23 Jan 2008 20:43:23 -0500 Received: from fg-out-1718.google.com ([72.14.220.153]:63441 "EHLO fg-out-1718.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751936AbYAXBnW (ORCPT ); Wed, 23 Jan 2008 20:43:22 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; b=GkWQULCNk1/AFGI3PHL8Whr2eR3rwHMxhMTO1MMG5WOHRWLEJg7qNqtklFlTWq5ivlN/e1rRidYq6tBMw6SKDFTcqubjfExluOg1+xwDbcwpSolnVfPwu6AdMAT+nR9fQZMRyxZYHgYB019/XIwtEgBrKfDD3L0x80MFclOtLrE= Date: Thu, 24 Jan 2008 09:44:36 +0800 From: Dave Young To: Andrew Morton Cc: Miguel Ojeda , linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org Subject: Re: [WARNING -rc8] at fs/sysfs/dir.c:424 sysfs_add_one(), related with processor (ACPI) Message-ID: <20080124014436.GA3020@darkstar.te-china.tietoenator.com> References: <653402b90801210953u71a85f91udce9e382d588af09@mail.gmail.com> <20080123140643.b56ea8eb.akpm@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080123140643.b56ea8eb.akpm@linux-foundation.org> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 23, 2008 at 02:06:43PM -0800, Andrew Morton wrote: > > On Mon, 21 Jan 2008 18:53:18 +0100 "Miguel Ojeda" wrote: > > Booting 2.6.24-rc8 I get this: > > > > > > sysfs: duplicate filename 'fan' can not be created > > WARNING: at fs/sysfs/dir.c:424 sysfs_add_one() > > Pid: 819, comm: modprobe Not tainted 2.6.24-rc8 #2 > > [] sysfs_add_one+0x9f/0xe0 > > [] create_dir+0x48/0x90 > > [] sysfs_create_dir+0x29/0x50 > > [] kobject_get+0xf/0x20 > > [] kobject_add+0x8f/0x1b0 > > [] kobject_register+0x21/0x50 > > [] bus_add_driver+0x71/0x1e0 > > [] acpi_fan_init+0x2f/0x4d [fan] > > [] sys_init_module+0x126/0x19b0 > > [] rb_insert_color+0xb7/0xe0 > > [] acpi_bus_register_driver+0x0/0x38 > > [] syscall_call+0x7/0xb > > ======================= > > kobject_add failed for fan with -EEXIST, don't try to register things > > with the same name in the same directory. > > Pid: 819, comm: modprobe Not tainted 2.6.24-rc8 #2 > > [] kobject_add+0x111/0x1b0 > > [] kobject_register+0x21/0x50 > > [] bus_add_driver+0x71/0x1e0 > > [] acpi_fan_init+0x2f/0x4d [fan] > > [] sys_init_module+0x126/0x19b0 > > [] rb_insert_color+0xb7/0xe0 > > [] acpi_bus_register_driver+0x0/0x38 > > [] syscall_call+0x7/0xb > > ======================= > > processor: exports duplicate symbol acpi_processor_set_thermal_limit > > (owned by kernel) > > Could apply following debug patch and see the result? diff -upr linux/fs/sysfs/dir.c linux.new/fs/sysfs/dir.c --- linux/fs/sysfs/dir.c 2008-01-23 09:56:24.000000000 +0800 +++ linux.new/fs/sysfs/dir.c 2008-01-23 09:59:12.000000000 +0800 @@ -418,6 +418,8 @@ void sysfs_addrm_start(struct sysfs_addr */ int sysfs_add_one(struct sysfs_addrm_cxt *acxt, struct sysfs_dirent *sd) { + if (!strcmp(sd->s_name, "fan")) + dump_stack(); if (sysfs_find_dirent(acxt->parent_sd, sd->s_name)) { printk(KERN_WARNING "sysfs: duplicate filename '%s' " "can not be created\n", sd->s_name);