Skip to content

Commit ea91512

Browse files
Yue Haibingbjorn-helgaas
authored andcommitted
PCI: Remove unused function declarations
The following declarations have never been implemented since the beginning of git history, so remove them: u8 acpiphp_get_attention_status(struct acpiphp_slot *slot); u8 cpci_get_latch_status(struct slot *slot); u8 cpci_get_adapter_status(struct slot *slot); int ibmphp_get_total_hp_slots(void); void ibmphp_free_ibm_slot(struct slot *); void pdev_enable_device(struct pci_dev *); Link: https://lore.kernel.org/r/20230811095933.28652-1-yuehaibing@huawei.com Signed-off-by: Yue Haibing <yuehaibing@huawei.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
1 parent 87382ea commit ea91512

File tree

4 files changed

+0
-6
lines changed

4 files changed

+0
-6
lines changed

drivers/pci/hotplug/acpiphp.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,6 @@ void acpiphp_unregister_hotplug_slot(struct acpiphp_slot *slot);
178178
int acpiphp_enable_slot(struct acpiphp_slot *slot);
179179
int acpiphp_disable_slot(struct acpiphp_slot *slot);
180180
u8 acpiphp_get_power_status(struct acpiphp_slot *slot);
181-
u8 acpiphp_get_attention_status(struct acpiphp_slot *slot);
182181
u8 acpiphp_get_latch_status(struct acpiphp_slot *slot);
183182
u8 acpiphp_get_adapter_status(struct acpiphp_slot *slot);
184183

drivers/pci/hotplug/cpci_hotplug.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,6 @@ extern int cpci_debug;
8383
* board/chassis drivers.
8484
*/
8585
u8 cpci_get_attention_status(struct slot *slot);
86-
u8 cpci_get_latch_status(struct slot *slot);
87-
u8 cpci_get_adapter_status(struct slot *slot);
8886
u16 cpci_get_hs_csr(struct slot *slot);
8987
int cpci_set_attention_status(struct slot *slot, int status);
9088
int cpci_check_and_clear_ins(struct slot *slot);

drivers/pci/hotplug/ibmphp.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,8 +264,6 @@ extern struct list_head ibmphp_slot_head;
264264
void ibmphp_free_ebda_hpc_queue(void);
265265
int ibmphp_access_ebda(void);
266266
struct slot *ibmphp_get_slot_from_physical_num(u8);
267-
int ibmphp_get_total_hp_slots(void);
268-
void ibmphp_free_ibm_slot(struct slot *);
269267
void ibmphp_free_bus_info_queue(void);
270268
void ibmphp_free_ebda_pci_rsrc_queue(void);
271269
struct bus_info *ibmphp_find_same_bus_num(u32);

include/linux/pci.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1403,7 +1403,6 @@ void pci_assign_unassigned_bridge_resources(struct pci_dev *bridge);
14031403
void pci_assign_unassigned_bus_resources(struct pci_bus *bus);
14041404
void pci_assign_unassigned_root_bus_resources(struct pci_bus *bus);
14051405
int pci_reassign_bridge_resources(struct pci_dev *bridge, unsigned long type);
1406-
void pdev_enable_device(struct pci_dev *);
14071406
int pci_enable_resources(struct pci_dev *, int mask);
14081407
void pci_assign_irq(struct pci_dev *dev);
14091408
struct resource *pci_find_resource(struct pci_dev *dev, struct resource *res);

0 commit comments

Comments
 (0)