Skip to contentSkip to conversation

PCI: Remove to_hotplug_slot()

PATCH Applied Gavin Shan 2 participants 2 messages Nov 12, 2014 – Nov 13, 2014 PCI

lore
Share & tools
lore

Gavin Shan

author
#0 lore raw

PATCH 1/1 PCI: Remove to_hotplug_slot()

struct hotplug_slot doesn't have kobj. to_hotplug_slot(), which intends converts kobj to hotplug slot, isn't valid any more.

---
 include/linux/pci_hotplug.h | 1 -
 1 file changed, 1 deletion(-)
include/linux/pci_hotplug.h +0 -1
index 2706ee9..8c78950 100644
@@ -109,7 +109,6 @@ struct hotplug_slot {
 	struct list_head		slot_list;
 	struct pci_slot			*pci_slot;
 };
-#define to_hotplug_slot(n) container_of(n, struct hotplug_slot, kobj)
 
 static inline const char *hotplug_slot_name(const struct hotplug_slot *slot)
 {
Signature · 1 line
1.8.3.2
maintainer Applied
#1 lore raw
Quoted 4 lines · Gavin Shan

struct hotplug_slot doesn't have kobj. to_hotplug_slot(), which intends converts kobj to hotplug slot, isn't valid any more.

Applied to pci/hotplug for v3.19, thanks!

Quoted 19 lines
---
 include/linux/pci_hotplug.h | 1 -
 1 file changed, 1 deletion(-)
include/linux/pci_hotplug.h +0 -1
index 2706ee9..8c78950 100644
@@ -109,7 +109,6 @@ struct hotplug_slot {
 	struct list_head		slot_list;
 	struct pci_slot			*pci_slot;
 };
-#define to_hotplug_slot(n) container_of(n, struct hotplug_slot, kobj)
 
 static inline const char *hotplug_slot_name(const struct hotplug_slot *slot)
 {
Signature · 1 line
1.8.3.2