hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/pci/hotplug/cpqphp.h
....@@ -260,7 +260,7 @@
260260 u8 hp_slot;
261261 struct controller *ctrl;
262262 void __iomem *p_sm_slot;
263
- struct hotplug_slot *hotplug_slot;
263
+ struct hotplug_slot hotplug_slot;
264264 };
265265
266266 struct pci_resource {
....@@ -445,7 +445,12 @@
445445
446446 static inline const char *slot_name(struct slot *slot)
447447 {
448
- return hotplug_slot_name(slot->hotplug_slot);
448
+ return hotplug_slot_name(&slot->hotplug_slot);
449
+}
450
+
451
+static inline struct slot *to_slot(struct hotplug_slot *hotplug_slot)
452
+{
453
+ return container_of(hotplug_slot, struct slot, hotplug_slot);
449454 }
450455
451456 /*