bus/pci: make remove function static
Only used in one file, and therefore can be made static. Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Acked-by: Gaetan Rivet <gaetan.rivet@6wind.com>
This commit is contained in:
parent
3c5b140d18
commit
607514e729
@ -26,6 +26,9 @@
|
||||
|
||||
#include "private.h"
|
||||
|
||||
|
||||
static void rte_pci_remove_device(struct rte_pci_device *pci_device);
|
||||
|
||||
extern struct rte_pci_bus rte_pci_bus;
|
||||
|
||||
#define SYSFS_PCI_DEVICES "/sys/bus/pci/devices"
|
||||
@ -445,7 +448,7 @@ rte_pci_insert_device(struct rte_pci_device *exist_pci_dev,
|
||||
}
|
||||
|
||||
/* Remove a device from PCI bus */
|
||||
void
|
||||
static void
|
||||
rte_pci_remove_device(struct rte_pci_device *pci_dev)
|
||||
{
|
||||
TAILQ_REMOVE(&rte_pci_bus.device_list, pci_dev, next);
|
||||
|
@ -93,16 +93,6 @@ void rte_pci_add_device(struct rte_pci_device *pci_dev);
|
||||
void rte_pci_insert_device(struct rte_pci_device *exist_pci_dev,
|
||||
struct rte_pci_device *new_pci_dev);
|
||||
|
||||
/**
|
||||
* Remove a PCI device from the PCI Bus. This sets to NULL the bus references
|
||||
* in the PCI device object as well as the generic device object.
|
||||
*
|
||||
* @param pci_device
|
||||
* PCI device to be removed from PCI Bus
|
||||
* @return void
|
||||
*/
|
||||
void rte_pci_remove_device(struct rte_pci_device *pci_device);
|
||||
|
||||
/**
|
||||
* Update a pci device object by asking the kernel for the latest information.
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user