Re: [WARNING -rc8] at fs/sysfs/dir.c:424 sysfs_add_one(), related with processor (ACPI)

2008-01-30 Thread Miguel Ojeda
On Jan 30, 2008 6:48 AM, Dave Young <[EMAIL PROTECTED]> wrote:
>
> On Jan 25, 2008 9:27 AM, Dave Young <[EMAIL PROTECTED]> wrote:
> >
> > On Jan 25, 2008 12:32 AM, Miguel Ojeda <[EMAIL PROTECTED]> wrote:
> > >
> > > On Jan 24, 2008 2:44 AM, Dave Young <[EMAIL PROTECTED]> wrote:
> > > >
> > > > On Wed, Jan 23, 2008 at 02:06:43PM -0800, Andrew Morton wrote:
> > > > > > On Mon, 21 Jan 2008 18:53:18 +0100 "Miguel Ojeda" <[EMAIL 
> > > > > > PROTECTED]> 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.c2008-01-23 09:56:24.0 +0800
> > > > +++ linux.new/fs/sysfs/dir.c2008-01-23 09:59:12.0 +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);
> > > >
> > > >
> > >
> > > Done. The following appears in the new dmesg output.
> > >
> > >
> > > ACPI: Power Button (CM) [PBTN]
> > > input: Sleep Button (CM) as /class/input/input2
> > > ACPI: Sleep Button (CM) [SBTN]
> > > Pid: 1, comm: swapper Not tainted 2.6.24-rc8 #3
> > >  [] sysfs_add_one+0x75/0x100
> > >  [] sysfs_addrm_start+0x3f/0xb0
> > >  [] 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
> > >  [] kernel_init+0x121/0x300
> > >  [] ret_from_fork+0x6/0x1c
> > >  [] kernel_init+0x0/0x300
> > >  [] kernel_init+0x0/0x300
> > >  [] kernel_thread_helper+0x7/0x18
> > >  ===
> >
> > I'm curious, the "fan" is configured as built-in, why the modprobe be 
> > called?
>
> I guess initrd or your lib/modules need update.
>

I haven't got any more of those WARN_ON's on 2.6.24, so I suppose it was fixed.

-- 
Miguel Ojeda
http://maxextreme.googlepages.com/index.htm
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [WARNING -rc8] at fs/sysfs/dir.c:424 sysfs_add_one(), related with processor (ACPI)

2008-01-30 Thread Miguel Ojeda
On Jan 30, 2008 6:48 AM, Dave Young [EMAIL PROTECTED] wrote:

 On Jan 25, 2008 9:27 AM, Dave Young [EMAIL PROTECTED] wrote:
 
  On Jan 25, 2008 12:32 AM, Miguel Ojeda [EMAIL PROTECTED] wrote:
  
   On Jan 24, 2008 2:44 AM, Dave Young [EMAIL PROTECTED] wrote:
   
On Wed, Jan 23, 2008 at 02:06:43PM -0800, Andrew Morton wrote:
  On Mon, 21 Jan 2008 18:53:18 +0100 Miguel Ojeda [EMAIL 
  PROTECTED] 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.c2008-01-23 09:56:24.0 +0800
+++ linux.new/fs/sysfs/dir.c2008-01-23 09:59:12.0 +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);
   
   
  
   Done. The following appears in the new dmesg output.
  
  
   ACPI: Power Button (CM) [PBTN]
   input: Sleep Button (CM) as /class/input/input2
   ACPI: Sleep Button (CM) [SBTN]
   Pid: 1, comm: swapper Not tainted 2.6.24-rc8 #3
[c01b18d5] sysfs_add_one+0x75/0x100
[c01b199f] sysfs_addrm_start+0x3f/0xb0
[c01b1e58] create_dir+0x48/0x90
[c01b1ec9] sysfs_create_dir+0x29/0x50
[c024875f] kobject_get+0xf/0x20
[c0248c1f] kobject_add+0x8f/0x1b0
[c0248dd1] kobject_register+0x21/0x50
[c02dc711] bus_add_driver+0x71/0x1e0
[c05c7663] acpi_fan_init+0x2f/0x4d
[c05ad551] kernel_init+0x121/0x300
[c010416a] ret_from_fork+0x6/0x1c
[c05ad430] kernel_init+0x0/0x300
[c05ad430] kernel_init+0x0/0x300
[c0104e6f] kernel_thread_helper+0x7/0x18
===
 
  I'm curious, the fan is configured as built-in, why the modprobe be 
  called?

 I guess initrd or your lib/modules need update.


I haven't got any more of those WARN_ON's on 2.6.24, so I suppose it was fixed.

-- 
Miguel Ojeda
http://maxextreme.googlepages.com/index.htm
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [WARNING -rc8] at fs/sysfs/dir.c:424 sysfs_add_one(), related with processor (ACPI)

2008-01-29 Thread Dave Young
On Jan 25, 2008 9:27 AM, Dave Young <[EMAIL PROTECTED]> wrote:
>
> On Jan 25, 2008 12:32 AM, Miguel Ojeda <[EMAIL PROTECTED]> wrote:
> >
> > On Jan 24, 2008 2:44 AM, Dave Young <[EMAIL PROTECTED]> wrote:
> > >
> > > On Wed, Jan 23, 2008 at 02:06:43PM -0800, Andrew Morton wrote:
> > > > > On Mon, 21 Jan 2008 18:53:18 +0100 "Miguel Ojeda" <[EMAIL PROTECTED]> 
> > > > > 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.c2008-01-23 09:56:24.0 +0800
> > > +++ linux.new/fs/sysfs/dir.c2008-01-23 09:59:12.0 +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);
> > >
> > >
> >
> > Done. The following appears in the new dmesg output.
> >
> >
> > ACPI: Power Button (CM) [PBTN]
> > input: Sleep Button (CM) as /class/input/input2
> > ACPI: Sleep Button (CM) [SBTN]
> > Pid: 1, comm: swapper Not tainted 2.6.24-rc8 #3
> >  [] sysfs_add_one+0x75/0x100
> >  [] sysfs_addrm_start+0x3f/0xb0
> >  [] 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
> >  [] kernel_init+0x121/0x300
> >  [] ret_from_fork+0x6/0x1c
> >  [] kernel_init+0x0/0x300
> >  [] kernel_init+0x0/0x300
> >  [] kernel_thread_helper+0x7/0x18
> >  ===
>
> I'm curious, the "fan" is configured as built-in, why the modprobe be called?

I guess initrd or your lib/modules need update.

>
>
> > ACPI: SSDT 3FE93134, 0244 (r1  PmRef  Cpu0Ist 3000 INTL 20050624)
> > ACPI: SSDT 3FE92ACA, 05E5 (r1  PmRef  Cpu0Cst 3001 INTL 20050624)
> > Monitor-Mwait will be used to enter C-1 state
> > Monitor-Mwait will be used to enter C-2 state
> >
> > Attached dmesg.txt
> >
> >
> > --
> > Miguel Ojeda
> > http://maxextreme.googlepages.com/index.htm
> >
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [WARNING -rc8] at fs/sysfs/dir.c:424 sysfs_add_one(), related with processor (ACPI)

2008-01-24 Thread Dave Young
On Jan 25, 2008 12:32 AM, Miguel Ojeda <[EMAIL PROTECTED]> wrote:
>
> On Jan 24, 2008 2:44 AM, Dave Young <[EMAIL PROTECTED]> wrote:
> >
> > On Wed, Jan 23, 2008 at 02:06:43PM -0800, Andrew Morton wrote:
> > > > On Mon, 21 Jan 2008 18:53:18 +0100 "Miguel Ojeda" <[EMAIL PROTECTED]> 
> > > > 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.c2008-01-23 09:56:24.0 +0800
> > +++ linux.new/fs/sysfs/dir.c2008-01-23 09:59:12.0 +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);
> >
> >
>
> Done. The following appears in the new dmesg output.
>
>
> ACPI: Power Button (CM) [PBTN]
> input: Sleep Button (CM) as /class/input/input2
> ACPI: Sleep Button (CM) [SBTN]
> Pid: 1, comm: swapper Not tainted 2.6.24-rc8 #3
>  [] sysfs_add_one+0x75/0x100
>  [] sysfs_addrm_start+0x3f/0xb0
>  [] 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
>  [] kernel_init+0x121/0x300
>  [] ret_from_fork+0x6/0x1c
>  [] kernel_init+0x0/0x300
>  [] kernel_init+0x0/0x300
>  [] kernel_thread_helper+0x7/0x18
>  ===

I'm curious, the "fan" is configured as built-in, why the modprobe be called?

> ACPI: SSDT 3FE93134, 0244 (r1  PmRef  Cpu0Ist 3000 INTL 20050624)
> ACPI: SSDT 3FE92ACA, 05E5 (r1  PmRef  Cpu0Cst 3001 INTL 20050624)
> Monitor-Mwait will be used to enter C-1 state
> Monitor-Mwait will be used to enter C-2 state
>
> Attached dmesg.txt
>
>
> --
> Miguel Ojeda
> http://maxextreme.googlepages.com/index.htm
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [WARNING -rc8] at fs/sysfs/dir.c:424 sysfs_add_one(), related with processor (ACPI)

2008-01-24 Thread Miguel Ojeda
On Jan 24, 2008 2:44 AM, Dave Young <[EMAIL PROTECTED]> wrote:
>
> On Wed, Jan 23, 2008 at 02:06:43PM -0800, Andrew Morton wrote:
> > > On Mon, 21 Jan 2008 18:53:18 +0100 "Miguel Ojeda" <[EMAIL PROTECTED]> 
> > > 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.c2008-01-23 09:56:24.0 +0800
> +++ linux.new/fs/sysfs/dir.c2008-01-23 09:59:12.0 +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);
>
>

Done. The following appears in the new dmesg output.


ACPI: Power Button (CM) [PBTN]
input: Sleep Button (CM) as /class/input/input2
ACPI: Sleep Button (CM) [SBTN]
Pid: 1, comm: swapper Not tainted 2.6.24-rc8 #3
 [] sysfs_add_one+0x75/0x100
 [] sysfs_addrm_start+0x3f/0xb0
 [] 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
 [] kernel_init+0x121/0x300
 [] ret_from_fork+0x6/0x1c
 [] kernel_init+0x0/0x300
 [] kernel_init+0x0/0x300
 [] kernel_thread_helper+0x7/0x18
 ===
ACPI: SSDT 3FE93134, 0244 (r1  PmRef  Cpu0Ist 3000 INTL 20050624)
ACPI: SSDT 3FE92ACA, 05E5 (r1  PmRef  Cpu0Cst 3001 INTL 20050624)
Monitor-Mwait will be used to enter C-1 state
Monitor-Mwait will be used to enter C-2 state

Attached dmesg.txt

-- 
Miguel Ojeda
http://maxextreme.googlepages.com/index.htm
Linux version 2.6.24-rc8 ([EMAIL PROTECTED]) (gcc version 4.2.3 20071123 
(prerelease) (Debian 4.2.2-4)) #3 SMP Thu Jan 24 17:13:51 CET 2008
BIOS-provided physical RAM map:
 BIOS-e820:  - 0009f000 (usable)
 BIOS-e820: 0009f000 - 000a (reserved)
 BIOS-e820: 0010 - 3fe92400 (usable)
 BIOS-e820: 3fe92400 - 4000 (reserved)
 BIOS-e820: f400 - f800 (reserved)
 BIOS-e820: fec0 - fec1 (reserved)
 BIOS-e820: fed18000 - fed1c000 (reserved)
 BIOS-e820: fed2 - fed9 (reserved)
 BIOS-e820: feda - feda6000 (reserved)
 BIOS-e820: fee0 - fee1 (reserved)
 BIOS-e820: fff0 - 0001 (reserved)
126MB HIGHMEM available.
896MB LOWMEM available.
Entering add_active_range(0, 0, 261778) 0 entries of 256 used
Zone PFN ranges:
  DMA 0 -> 4096
  Normal   4096 ->   229376
  HighMem229376 ->   261778
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
0:0 ->   261778
On node 0 totalpages: 261778
  DMA zone: 32 pages used for memmap
  DMA zone: 0 pages reserved
  DMA zone: 4064 pages, LIFO batch:0
  Normal zone: 1760 pages used for memmap
  Normal zone: 223520 pages, LIFO batch:31
  HighMem zone: 253 pages used for memmap
  HighMem zone: 32149 pages, LIFO batch:7
  Movable zone: 0 pages used for memmap
DMI 2.4 present.
ACPI: RSDP 000FBBF0, 0024 (r2 DELL  )
ACPI: XSDT 3FE93E00, 005C (r1 DELLM08 27D70802 ASL61)
ACPI: FACP 3FE93C9C, 00F4 (r4 DELLM08 27D70802 ASL61)
ACPI: DSDT 3FE94400, 565E (r2 INT430 SYSFexxx 1001 INTL 20050624)
ACPI: FACS 3FEA2C00, 0040
ACPI: HPET 3FE93F00, 0038 (r1 DELLM081 ASL61)

Re: [WARNING -rc8] at fs/sysfs/dir.c:424 sysfs_add_one(), related with processor (ACPI)

2008-01-24 Thread Miguel Ojeda
On Jan 24, 2008 2:44 AM, Dave Young [EMAIL PROTECTED] wrote:

 On Wed, Jan 23, 2008 at 02:06:43PM -0800, Andrew Morton wrote:
   On Mon, 21 Jan 2008 18:53:18 +0100 Miguel Ojeda [EMAIL PROTECTED] 
   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.c2008-01-23 09:56:24.0 +0800
 +++ linux.new/fs/sysfs/dir.c2008-01-23 09:59:12.0 +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);



Done. The following appears in the new dmesg output.


ACPI: Power Button (CM) [PBTN]
input: Sleep Button (CM) as /class/input/input2
ACPI: Sleep Button (CM) [SBTN]
Pid: 1, comm: swapper Not tainted 2.6.24-rc8 #3
 [c01b18d5] sysfs_add_one+0x75/0x100
 [c01b199f] sysfs_addrm_start+0x3f/0xb0
 [c01b1e58] create_dir+0x48/0x90
 [c01b1ec9] sysfs_create_dir+0x29/0x50
 [c024875f] kobject_get+0xf/0x20
 [c0248c1f] kobject_add+0x8f/0x1b0
 [c0248dd1] kobject_register+0x21/0x50
 [c02dc711] bus_add_driver+0x71/0x1e0
 [c05c7663] acpi_fan_init+0x2f/0x4d
 [c05ad551] kernel_init+0x121/0x300
 [c010416a] ret_from_fork+0x6/0x1c
 [c05ad430] kernel_init+0x0/0x300
 [c05ad430] kernel_init+0x0/0x300
 [c0104e6f] kernel_thread_helper+0x7/0x18
 ===
ACPI: SSDT 3FE93134, 0244 (r1  PmRef  Cpu0Ist 3000 INTL 20050624)
ACPI: SSDT 3FE92ACA, 05E5 (r1  PmRef  Cpu0Cst 3001 INTL 20050624)
Monitor-Mwait will be used to enter C-1 state
Monitor-Mwait will be used to enter C-2 state

Attached dmesg.txt

-- 
Miguel Ojeda
http://maxextreme.googlepages.com/index.htm
Linux version 2.6.24-rc8 ([EMAIL PROTECTED]) (gcc version 4.2.3 20071123 
(prerelease) (Debian 4.2.2-4)) #3 SMP Thu Jan 24 17:13:51 CET 2008
BIOS-provided physical RAM map:
 BIOS-e820:  - 0009f000 (usable)
 BIOS-e820: 0009f000 - 000a (reserved)
 BIOS-e820: 0010 - 3fe92400 (usable)
 BIOS-e820: 3fe92400 - 4000 (reserved)
 BIOS-e820: f400 - f800 (reserved)
 BIOS-e820: fec0 - fec1 (reserved)
 BIOS-e820: fed18000 - fed1c000 (reserved)
 BIOS-e820: fed2 - fed9 (reserved)
 BIOS-e820: feda - feda6000 (reserved)
 BIOS-e820: fee0 - fee1 (reserved)
 BIOS-e820: fff0 - 0001 (reserved)
126MB HIGHMEM available.
896MB LOWMEM available.
Entering add_active_range(0, 0, 261778) 0 entries of 256 used
Zone PFN ranges:
  DMA 0 - 4096
  Normal   4096 -   229376
  HighMem229376 -   261778
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
0:0 -   261778
On node 0 totalpages: 261778
  DMA zone: 32 pages used for memmap
  DMA zone: 0 pages reserved
  DMA zone: 4064 pages, LIFO batch:0
  Normal zone: 1760 pages used for memmap
  Normal zone: 223520 pages, LIFO batch:31
  HighMem zone: 253 pages used for memmap
  HighMem zone: 32149 pages, LIFO batch:7
  Movable zone: 0 pages used for memmap
DMI 2.4 present.
ACPI: RSDP 000FBBF0, 0024 (r2 DELL  )
ACPI: XSDT 3FE93E00, 005C (r1 DELLM08 27D70802 ASL61)
ACPI: FACP 3FE93C9C, 00F4 (r4 DELLM08 27D70802 ASL61)
ACPI: DSDT 3FE94400, 565E (r2 INT430 SYSFexxx  

Re: [WARNING -rc8] at fs/sysfs/dir.c:424 sysfs_add_one(), related with processor (ACPI)

2008-01-24 Thread Dave Young
On Jan 25, 2008 12:32 AM, Miguel Ojeda [EMAIL PROTECTED] wrote:

 On Jan 24, 2008 2:44 AM, Dave Young [EMAIL PROTECTED] wrote:
 
  On Wed, Jan 23, 2008 at 02:06:43PM -0800, Andrew Morton wrote:
On Mon, 21 Jan 2008 18:53:18 +0100 Miguel Ojeda [EMAIL PROTECTED] 
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.c2008-01-23 09:56:24.0 +0800
  +++ linux.new/fs/sysfs/dir.c2008-01-23 09:59:12.0 +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);
 
 

 Done. The following appears in the new dmesg output.


 ACPI: Power Button (CM) [PBTN]
 input: Sleep Button (CM) as /class/input/input2
 ACPI: Sleep Button (CM) [SBTN]
 Pid: 1, comm: swapper Not tainted 2.6.24-rc8 #3
  [c01b18d5] sysfs_add_one+0x75/0x100
  [c01b199f] sysfs_addrm_start+0x3f/0xb0
  [c01b1e58] create_dir+0x48/0x90
  [c01b1ec9] sysfs_create_dir+0x29/0x50
  [c024875f] kobject_get+0xf/0x20
  [c0248c1f] kobject_add+0x8f/0x1b0
  [c0248dd1] kobject_register+0x21/0x50
  [c02dc711] bus_add_driver+0x71/0x1e0
  [c05c7663] acpi_fan_init+0x2f/0x4d
  [c05ad551] kernel_init+0x121/0x300
  [c010416a] ret_from_fork+0x6/0x1c
  [c05ad430] kernel_init+0x0/0x300
  [c05ad430] kernel_init+0x0/0x300
  [c0104e6f] kernel_thread_helper+0x7/0x18
  ===

I'm curious, the fan is configured as built-in, why the modprobe be called?

 ACPI: SSDT 3FE93134, 0244 (r1  PmRef  Cpu0Ist 3000 INTL 20050624)
 ACPI: SSDT 3FE92ACA, 05E5 (r1  PmRef  Cpu0Cst 3001 INTL 20050624)
 Monitor-Mwait will be used to enter C-1 state
 Monitor-Mwait will be used to enter C-2 state

 Attached dmesg.txt


 --
 Miguel Ojeda
 http://maxextreme.googlepages.com/index.htm

--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [WARNING -rc8] at fs/sysfs/dir.c:424 sysfs_add_one(), related with processor (ACPI)

2008-01-23 Thread Dave Young
On Wed, Jan 23, 2008 at 02:06:43PM -0800, Andrew Morton wrote:
> > On Mon, 21 Jan 2008 18:53:18 +0100 "Miguel Ojeda" <[EMAIL PROTECTED]> 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.c2008-01-23 09:56:24.0 +0800
+++ linux.new/fs/sysfs/dir.c2008-01-23 09:59:12.0 +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);

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [WARNING -rc8] at fs/sysfs/dir.c:424 sysfs_add_one(), related with processor (ACPI)

2008-01-23 Thread Andrew Morton
> On Mon, 21 Jan 2008 18:53:18 +0100 "Miguel Ojeda" <[EMAIL PROTECTED]> 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)
> 
> 
> 
> After that, there are five more traces. Attached dmesg output and .config.
> 

Cc linux-acpi.  If nothing happens (not uncommon) then please raise a
report agaisnt acpi at bugzilla.kernel.org, thanks.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [WARNING -rc8] at fs/sysfs/dir.c:424 sysfs_add_one(), related with processor (ACPI)

2008-01-23 Thread Andrew Morton
 On Mon, 21 Jan 2008 18:53:18 +0100 Miguel Ojeda [EMAIL PROTECTED] 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)
 
 
 
 After that, there are five more traces. Attached dmesg output and .config.
 

Cc linux-acpi.  If nothing happens (not uncommon) then please raise a
report agaisnt acpi at bugzilla.kernel.org, thanks.

--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [WARNING -rc8] at fs/sysfs/dir.c:424 sysfs_add_one(), related with processor (ACPI)

2008-01-23 Thread Dave Young
On Wed, Jan 23, 2008 at 02:06:43PM -0800, Andrew Morton wrote:
  On Mon, 21 Jan 2008 18:53:18 +0100 Miguel Ojeda [EMAIL PROTECTED] 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.c2008-01-23 09:56:24.0 +0800
+++ linux.new/fs/sysfs/dir.c2008-01-23 09:59:12.0 +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);

--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/