<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux-stable.git/drivers/pci/hotplug/pci_hotplug_core.c, branch linux-2.6.26.y</title>
<subtitle>Linux kernel stable tree</subtitle>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/'/>
<entry>
<title>pci hotplug core: add check of duplicate slot name</title>
<updated>2008-05-27T22:43:40+00:00</updated>
<author>
<name>Kenji Kaneshige</name>
<email>kaneshige.kenji@jp.fujitsu.com</email>
</author>
<published>2008-05-27T10:07:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=a86161b3134465f072d965ca7508ec9c1e2e52c7'/>
<id>a86161b3134465f072d965ca7508ec9c1e2e52c7</id>
<content type='text'>
Fix the following errors reported by Jan C. Nordholz in
http://bugzilla.kernel.org/show_bug.cgi?id=10751.

kobject_add_internal failed for 2 with -EEXIST, don't try to register things with the same name in the same directory.
Pid: 1, comm: swapper Tainted: G        W 2.6.26-rc3 #1
 [&lt;c0266980&gt;] kobject_add_internal+0x140/0x190
 [&lt;c0266afd&gt;] kobject_init_and_add+0x2d/0x40
 [&lt;c027bc91&gt;] pci_hp_register+0x81/0x2f0
 [&lt;c027fd07&gt;] pciehp_probe+0x1a7/0x470
 [&lt;c01b3b84&gt;] sysfs_add_one+0x44/0xa0
 [&lt;c01b3c1f&gt;] sysfs_addrm_start+0x3f/0xb0
 [&lt;c01b497a&gt;] sysfs_create_link+0x8a/0xf0
 [&lt;c0279570&gt;] pcie_port_probe_service+0x50/0x80
 [&lt;c02e0545&gt;] driver_sysfs_add+0x55/0x70
 [&lt;c02e0662&gt;] driver_probe_device+0x82/0x180
 [&lt;c02e07cc&gt;] __driver_attach+0x6c/0x70
 [&lt;c02dfe0a&gt;] bus_for_each_dev+0x3a/0x60
 [&lt;c05db2d0&gt;] pcied_init+0x0/0x80
 [&lt;c02e04e6&gt;] driver_attach+0x16/0x20
 [&lt;c02e0760&gt;] __driver_attach+0x0/0x70
 [&lt;c02e0341&gt;] bus_add_driver+0x1a1/0x220
 [&lt;c05db2d0&gt;] pcied_init+0x0/0x80
 [&lt;c02e09cd&gt;] driver_register+0x4d/0x120
 [&lt;c05db050&gt;] ibm_acpiphp_init+0x0/0x190
 [&lt;c0125aab&gt;] printk+0x1b/0x20
 [&lt;c05db2d0&gt;] pcied_init+0x0/0x80
 [&lt;c05db2de&gt;] pcied_init+0xe/0x80
 [&lt;c05c751a&gt;] kernel_init+0x10a/0x300
 [&lt;c0120138&gt;] schedule_tail+0x18/0x50
 [&lt;c0103b9a&gt;] ret_from_fork+0x6/0x1c
 [&lt;c05c7410&gt;] kernel_init+0x0/0x300
 [&lt;c05c7410&gt;] kernel_init+0x0/0x300
 [&lt;c010485b&gt;] kernel_thread_helper+0x7/0x1c
 =======================
pci_hotplug: Unable to register kobject '2'&lt;3&gt;pciehp: pci_hp_register failed with error -22

Slot with the same name can be registered multiple times if shpchp or
pciehp driver is loaded after acpiphp is loaded because ACPI based
hotplug driver and Native OS hotplug driver trying to handle the same
physical slot. In this case, current pci_hotplug core will call
kobject_init_and_add() muliple time with the same name. This is the
cause of this problem. To fix this problem, this patch adds the check
into pci_hp_register() to see if the slot with the same name.

Signed-off-by: Kenji Kaneshige &lt;kaneshige.kenji@jp.fujitsu.com&gt;
Signed-off-by: Kristen Carlson Accardi &lt;kristen.c.accardi@intel.com&gt;
Signed-off-by: Jesse Barnes &lt;jbarnes@virtuousgeek.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix the following errors reported by Jan C. Nordholz in
http://bugzilla.kernel.org/show_bug.cgi?id=10751.

kobject_add_internal failed for 2 with -EEXIST, don't try to register things with the same name in the same directory.
Pid: 1, comm: swapper Tainted: G        W 2.6.26-rc3 #1
 [&lt;c0266980&gt;] kobject_add_internal+0x140/0x190
 [&lt;c0266afd&gt;] kobject_init_and_add+0x2d/0x40
 [&lt;c027bc91&gt;] pci_hp_register+0x81/0x2f0
 [&lt;c027fd07&gt;] pciehp_probe+0x1a7/0x470
 [&lt;c01b3b84&gt;] sysfs_add_one+0x44/0xa0
 [&lt;c01b3c1f&gt;] sysfs_addrm_start+0x3f/0xb0
 [&lt;c01b497a&gt;] sysfs_create_link+0x8a/0xf0
 [&lt;c0279570&gt;] pcie_port_probe_service+0x50/0x80
 [&lt;c02e0545&gt;] driver_sysfs_add+0x55/0x70
 [&lt;c02e0662&gt;] driver_probe_device+0x82/0x180
 [&lt;c02e07cc&gt;] __driver_attach+0x6c/0x70
 [&lt;c02dfe0a&gt;] bus_for_each_dev+0x3a/0x60
 [&lt;c05db2d0&gt;] pcied_init+0x0/0x80
 [&lt;c02e04e6&gt;] driver_attach+0x16/0x20
 [&lt;c02e0760&gt;] __driver_attach+0x0/0x70
 [&lt;c02e0341&gt;] bus_add_driver+0x1a1/0x220
 [&lt;c05db2d0&gt;] pcied_init+0x0/0x80
 [&lt;c02e09cd&gt;] driver_register+0x4d/0x120
 [&lt;c05db050&gt;] ibm_acpiphp_init+0x0/0x190
 [&lt;c0125aab&gt;] printk+0x1b/0x20
 [&lt;c05db2d0&gt;] pcied_init+0x0/0x80
 [&lt;c05db2de&gt;] pcied_init+0xe/0x80
 [&lt;c05c751a&gt;] kernel_init+0x10a/0x300
 [&lt;c0120138&gt;] schedule_tail+0x18/0x50
 [&lt;c0103b9a&gt;] ret_from_fork+0x6/0x1c
 [&lt;c05c7410&gt;] kernel_init+0x0/0x300
 [&lt;c05c7410&gt;] kernel_init+0x0/0x300
 [&lt;c010485b&gt;] kernel_thread_helper+0x7/0x1c
 =======================
pci_hotplug: Unable to register kobject '2'&lt;3&gt;pciehp: pci_hp_register failed with error -22

Slot with the same name can be registered multiple times if shpchp or
pciehp driver is loaded after acpiphp is loaded because ACPI based
hotplug driver and Native OS hotplug driver trying to handle the same
physical slot. In this case, current pci_hotplug core will call
kobject_init_and_add() muliple time with the same name. This is the
cause of this problem. To fix this problem, this patch adds the check
into pci_hp_register() to see if the slot with the same name.

Signed-off-by: Kenji Kaneshige &lt;kaneshige.kenji@jp.fujitsu.com&gt;
Signed-off-by: Kristen Carlson Accardi &lt;kristen.c.accardi@intel.com&gt;
Signed-off-by: Jesse Barnes &lt;jbarnes@virtuousgeek.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>PCI: replace remaining __FUNCTION__ occurrences</title>
<updated>2008-04-21T04:47:09+00:00</updated>
<author>
<name>Harvey Harrison</name>
<email>harvey.harrison@gmail.com</email>
</author>
<published>2008-03-04T03:09:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=66bef8c059015ba2b36bb5759080336feb01e680'/>
<id>66bef8c059015ba2b36bb5759080336feb01e680</id>
<content type='text'>
__FUNCTION__ is gcc-specific, use __func__

Signed-off-by: Harvey Harrison &lt;harvey.harrison@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
__FUNCTION__ is gcc-specific, use __func__

Signed-off-by: Harvey Harrison &lt;harvey.harrison@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>PCI: Add missing "space" in printk messages</title>
<updated>2008-02-01T23:04:22+00:00</updated>
<author>
<name>Joe Perches</name>
<email>joe@perches.com</email>
</author>
<published>2007-11-20T01:48:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=a6f29a98af278a8d784a870ae9f08e530de73ffe'/>
<id>a6f29a98af278a8d784a870ae9f08e530de73ffe</id>
<content type='text'>
Signed-off-by: Joe Perches &lt;joe@perches.com&gt;
Cc: Kristen Carlson Accardi &lt;kristen.c.accardi@intel.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Joe Perches &lt;joe@perches.com&gt;
Cc: Kristen Carlson Accardi &lt;kristen.c.accardi@intel.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>PCI: hotplug: pci_hotplug_core whitespace fix</title>
<updated>2008-02-01T23:04:20+00:00</updated>
<author>
<name>Alex Chiang</name>
<email>achiang@hp.com</email>
</author>
<published>2007-10-12T23:20:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=41ece3829f516f0e1f0c25f2c7eafac87e683df4'/>
<id>41ece3829f516f0e1f0c25f2c7eafac87e683df4</id>
<content type='text'>
Remove superfluous space.

Signed-off-by: Alex Chiang &lt;achiang@hp.com&gt;
Signed-off-by: Matthew Wilcox &lt;matthew@wil.cx&gt;
Signed-off-by: Kristen Carlson Accardi &lt;kristen.c.accardi@intel.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Remove superfluous space.

Signed-off-by: Alex Chiang &lt;achiang@hp.com&gt;
Signed-off-by: Matthew Wilcox &lt;matthew@wil.cx&gt;
Signed-off-by: Kristen Carlson Accardi &lt;kristen.c.accardi@intel.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>Kobject: convert drivers/* from kobject_unregister() to kobject_put()</title>
<updated>2008-01-25T04:40:40+00:00</updated>
<author>
<name>Greg Kroah-Hartman</name>
<email>gregkh@suse.de</email>
</author>
<published>2007-12-20T16:13:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=c10997f6575f476ff38442fa18fd4a0d80345f9d'/>
<id>c10997f6575f476ff38442fa18fd4a0d80345f9d</id>
<content type='text'>
There is no need for kobject_unregister() anymore, thanks to Kay's
kobject cleanup changes, so replace all instances of it with
kobject_put().


Cc: Kay Sievers &lt;kay.sievers@vrfy.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
There is no need for kobject_unregister() anymore, thanks to Kay's
kobject cleanup changes, so replace all instances of it with
kobject_put().


Cc: Kay Sievers &lt;kay.sievers@vrfy.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>driver core: add way to get to bus kset</title>
<updated>2008-01-25T04:40:33+00:00</updated>
<author>
<name>Greg Kroah-Hartman</name>
<email>gregkh@suse.de</email>
</author>
<published>2007-11-02T02:41:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=0fed80f7a63abd7168907267af69ee31f6bcf301'/>
<id>0fed80f7a63abd7168907267af69ee31f6bcf301</id>
<content type='text'>
This allows an easier way to get to the kset associated with a struct
bus_type (you have three to choose from...)  This will make it easier to
move these fields to be dynamic in a future patch.

Cc: Kay Sievers &lt;kay.sievers@vrfy.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This allows an easier way to get to the kset associated with a struct
bus_type (you have three to choose from...)  This will make it easier to
move these fields to be dynamic in a future patch.

Cc: Kay Sievers &lt;kay.sievers@vrfy.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>Kobject: change drivers/pci/hotplug/pci_hotplug_core.c to use kobject_init_and_add</title>
<updated>2008-01-25T04:40:28+00:00</updated>
<author>
<name>Greg Kroah-Hartman</name>
<email>gregkh@suse.de</email>
</author>
<published>2007-12-17T19:54:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=64dbcac3a16d0d22045b2c80d7f208196575486a'/>
<id>64dbcac3a16d0d22045b2c80d7f208196575486a</id>
<content type='text'>
Stop using kobject_register, as this way we can control the sending of
the uevent properly, after everything is properly initialized.

Cc: Kristen Carlson Accardi &lt;kristen.c.accardi@intel.com&gt;
Cc: Kay Sievers &lt;kay.sievers@vrfy.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Stop using kobject_register, as this way we can control the sending of
the uevent properly, after everything is properly initialized.

Cc: Kristen Carlson Accardi &lt;kristen.c.accardi@intel.com&gt;
Cc: Kay Sievers &lt;kay.sievers@vrfy.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>kset: convert pci hotplug to use kset_create_and_add</title>
<updated>2008-01-25T04:40:14+00:00</updated>
<author>
<name>Greg Kroah-Hartman</name>
<email>gregkh@suse.de</email>
</author>
<published>2007-10-30T04:22:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=81ace5cd8fcb55e144f496af40d4275b03252456'/>
<id>81ace5cd8fcb55e144f496af40d4275b03252456</id>
<content type='text'>
This also renames pci_hotplug_slots_subsys to pcis_hotplug_slots_kset
catch all current users with a build error instead of a build warning
which can easily be missed.

Cc: Kay Sievers &lt;kay.sievers@vrfy.org&gt;
Cc: Kristen Carlson Accardi &lt;kristen.c.accardi@intel.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;


</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This also renames pci_hotplug_slots_subsys to pcis_hotplug_slots_kset
catch all current users with a build error instead of a build warning
which can easily be missed.

Cc: Kay Sievers &lt;kay.sievers@vrfy.org&gt;
Cc: Kristen Carlson Accardi &lt;kristen.c.accardi@intel.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>kobject: remove struct kobj_type from struct kset</title>
<updated>2008-01-25T04:40:10+00:00</updated>
<author>
<name>Greg Kroah-Hartman</name>
<email>gregkh@suse.de</email>
</author>
<published>2007-10-16T16:11:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=3514faca19a6fdc209734431c509631ea92b094e'/>
<id>3514faca19a6fdc209734431c509631ea92b094e</id>
<content type='text'>
We don't need a "default" ktype for a kset.  We should set this
explicitly every time for each kset.  This change is needed so that we
can make ksets dynamic, and cleans up one of the odd, undocumented
assumption that the kset/kobject/ktype model has.

This patch is based on a lot of help from Kay Sievers.

Nasty bug in the block code was found by Dave Young
&lt;hidave.darkstar@gmail.com&gt;

Cc: Kay Sievers &lt;kay.sievers@vrfy.org&gt;
Cc: Dave Young &lt;hidave.darkstar@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We don't need a "default" ktype for a kset.  We should set this
explicitly every time for each kset.  This change is needed so that we
can make ksets dynamic, and cleans up one of the odd, undocumented
assumption that the kset/kobject/ktype model has.

This patch is based on a lot of help from Kay Sievers.

Nasty bug in the block code was found by Dave Young
&lt;hidave.darkstar@gmail.com&gt;

Cc: Kay Sievers &lt;kay.sievers@vrfy.org&gt;
Cc: Dave Young &lt;hidave.darkstar@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>Get rid of unused variable warning in drivers/pci/hotplug/pci_hotplug_core.c</title>
<updated>2007-10-15T16:07:58+00:00</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@woody.linux-foundation.org</email>
</author>
<published>2007-10-15T16:07:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=4271e0f7e12bdbbd7ce131187aaae2ba5233a309'/>
<id>4271e0f7e12bdbbd7ce131187aaae2ba5233a309</id>
<content type='text'>
Commit 5a7ad7f044941316dc98eda2a087a12a7a50649d removed all uses of
'retval', but didn't remove the variable itself.

Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Commit 5a7ad7f044941316dc98eda2a087a12a7a50649d removed all uses of
'retval', but didn't remove the variable itself.

Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</pre>
</div>
</content>
</entry>
</feed>
