mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Dave Young <hidave.darkstar@gmail.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: Miguel Ojeda <maxextreme@gmail.com>,
	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)
Date: Thu, 24 Jan 2008 09:44:36 +0800	[thread overview]
Message-ID: <20080124014436.GA3020@darkstar.te-china.tietoenator.com> (raw)
In-Reply-To: <20080123140643.b56ea8eb.akpm@linux-foundation.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" <maxextreme@gmail.com> 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
> >  [<c01b18ff>] sysfs_add_one+0x9f/0xe0
> >  [<c01b1e38>] create_dir+0x48/0x90
> >  [<c01b1ea9>] sysfs_create_dir+0x29/0x50
> >  [<c024873f>] kobject_get+0xf/0x20
> >  [<c0248bff>] kobject_add+0x8f/0x1b0
> >  [<c0248db1>] kobject_register+0x21/0x50
> >  [<c02dc6f1>] bus_add_driver+0x71/0x1e0
> >  [<f886402f>] acpi_fan_init+0x2f/0x4d [fan]
> >  [<c0148986>] sys_init_module+0x126/0x19b0
> >  [<c024af87>] rb_insert_color+0xb7/0xe0
> >  [<c029dc8d>] acpi_bus_register_driver+0x0/0x38
> >  [<c0104286>] 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
> >  [<c0248c81>] kobject_add+0x111/0x1b0
> >  [<c0248db1>] kobject_register+0x21/0x50
> >  [<c02dc6f1>] bus_add_driver+0x71/0x1e0
> >  [<f886402f>] acpi_fan_init+0x2f/0x4d [fan]
> >  [<c0148986>] sys_init_module+0x126/0x19b0
> >  [<c024af87>] rb_insert_color+0xb7/0xe0
> >  [<c029dc8d>] acpi_bus_register_driver+0x0/0x38
> >  [<c0104286>] 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);


  reply	other threads:[~2008-01-24  1:43 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-21 17:53 Miguel Ojeda
2008-01-23 22:06 ` Andrew Morton
2008-01-24  1:44   ` Dave Young [this message]
2008-01-24 16:32     ` Miguel Ojeda
2008-01-25  1:27       ` Dave Young
2008-01-30  5:48         ` Dave Young
2008-01-30 16:07           ` Miguel Ojeda

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080124014436.GA3020@darkstar.te-china.tietoenator.com \
    --to=hidave.darkstar@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=maxextreme@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®