hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/pci/hotplug/ibmphp.h
....@@ -378,7 +378,6 @@
378378 struct bus_node *ibmphp_find_res_bus(u8);
379379 void ibmphp_print_test(void); /* for debugging purposes */
380380
381
-void ibmphp_hpc_initvars(void);
382381 int ibmphp_hpc_readslot(struct slot *, u8, u8 *);
383382 int ibmphp_hpc_writeslot(struct slot *, u8);
384383 void ibmphp_lock_operations(void);
....@@ -698,7 +697,7 @@
698697 u8 supported_bus_mode;
699698 u8 flag; /* this is for disable slot and polling */
700699 u8 ctlr_index;
701
- struct hotplug_slot *hotplug_slot;
700
+ struct hotplug_slot hotplug_slot;
702701 struct controller *ctrl;
703702 struct pci_func *func;
704703 u8 irq[4];
....@@ -740,7 +739,12 @@
740739 int ibmphp_update_slot_info(struct slot *); /* This function is called from HPC, so we need it to not be be static */
741740 int ibmphp_configure_card(struct pci_func *, u8);
742741 int ibmphp_unconfigure_card(struct slot **, int);
743
-extern struct hotplug_slot_ops ibmphp_hotplug_slot_ops;
742
+extern const struct hotplug_slot_ops ibmphp_hotplug_slot_ops;
743
+
744
+static inline struct slot *to_slot(struct hotplug_slot *hotplug_slot)
745
+{
746
+ return container_of(hotplug_slot, struct slot, hotplug_slot);
747
+}
744748
745749 #endif //__IBMPHP_H
746750