From: Eric Paris on
I get a spew of these on boot. The virtual machine is mostly Fedora 14
with a kernel from linux-next as of today. The hardware is RHEL 5.5
with KVM:

tree: git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
tag: next-20100412
commit: bbeecf185fe464ccd7ee97ce6d3646ad686995b4

I get one for 1.0, 1.1, 1.2, 2.0, 3.0, 4.0, 5.0. Below I only show the
example for 1.0. Attached should be the full dmesg and config. Please
let me know about any ideas, tests, questions, or things I can do to
help debug the spew....


[ 1.681281] ------------[ cut here ]------------
[ 1.682249] WARNING: at fs/sysfs/dir.c:451 sysfs_add_one+0xa9/0xc0()
[ 1.683227] Hardware name: KVM
[ 1.684169] sysfs: cannot create duplicate filename '/devices/pci0000:00/0000:00:01.0/slot'
[ 1.685159] Modules linked in:
[ 1.686638] Pid: 1, comm: swapper Not tainted 2.6.34-rc3-next-20100412+ #65
[ 1.687878] Call Trace:
[ 1.688550] [<ffffffff81178549>] ? sysfs_add_one+0xa9/0xc0
[ 1.689567] [<ffffffff810561c7>] warn_slowpath_common+0x87/0xb0
[ 1.690554] [<ffffffff81056274>] warn_slowpath_fmt+0x64/0x70
[ 1.691808] [<ffffffff81178000>] ? sysfs_pathname+0x40/0x50
[ 1.692800] [<ffffffff81178000>] ? sysfs_pathname+0x40/0x50
[ 1.693971] [<ffffffff81178000>] ? sysfs_pathname+0x40/0x50
[ 1.695061] [<ffffffff81178000>] ? sysfs_pathname+0x40/0x50
[ 1.696170] [<ffffffff81178549>] sysfs_add_one+0xa9/0xc0
[ 1.697152] [<ffffffff811791c1>] sysfs_do_create_link+0xb1/0x150
[ 1.698309] [<ffffffff8117927e>] sysfs_create_link+0xe/0x10
[ 1.699301] [<ffffffff8128d43b>] pci_create_sysfs_dev_files+0x39b/0x4b0
[ 1.700630] [<ffffffff8128bd54>] ? pci_get_subsys+0x74/0xa0
[ 1.701621] [<ffffffff81ad58b3>] pci_sysfs_init+0x33/0x60
[ 1.702772] [<ffffffff81ad5880>] ? pci_sysfs_init+0x0/0x60
[ 1.703763] [<ffffffff81002041>] do_one_initcall+0x31/0x190
[ 1.704907] [<ffffffff81aa701c>] kernel_init+0x1fc/0x2e0
[ 1.705978] [<ffffffff8100bc24>] kernel_thread_helper+0x4/0x10
[ 1.707100] [<ffffffff814e03d4>] ? restore_args+0x0/0x30
[ 1.713450] [<ffffffff81aa6e20>] ? kernel_init+0x0/0x2e0
[ 1.714440] [<ffffffff8100bc20>] ? kernel_thread_helper+0x0/0x10
[ 1.715605] ---[ end trace 9bb6b2f8220af22f ]---