pci: don't export an internal function
Make an internal function, pci_parse_devaddr, static. Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
15a7a77806
commit
94a09e2c84
2
hw/pci.c
2
hw/pci.c
@ -478,7 +478,7 @@ static void pci_set_default_subsystem_id(PCIDevice *pci_dev)
|
|||||||
* Parse [[<domain>:]<bus>:]<slot>, return -1 on error if funcp == NULL
|
* Parse [[<domain>:]<bus>:]<slot>, return -1 on error if funcp == NULL
|
||||||
* [[<domain>:]<bus>:]<slot>.<func>, return -1 on error
|
* [[<domain>:]<bus>:]<slot>.<func>, return -1 on error
|
||||||
*/
|
*/
|
||||||
int pci_parse_devaddr(const char *addr, int *domp, int *busp,
|
static int pci_parse_devaddr(const char *addr, int *domp, int *busp,
|
||||||
unsigned int *slotp, unsigned int *funcp)
|
unsigned int *slotp, unsigned int *funcp)
|
||||||
{
|
{
|
||||||
const char *p;
|
const char *p;
|
||||||
|
2
hw/pci.h
2
hw/pci.h
@ -304,8 +304,6 @@ PCIDevice *pci_find_device(PCIBus *bus, int bus_num, uint8_t devfn);
|
|||||||
int pci_qdev_find_device(const char *id, PCIDevice **pdev);
|
int pci_qdev_find_device(const char *id, PCIDevice **pdev);
|
||||||
PCIBus *pci_get_bus_devfn(int *devfnp, const char *devaddr);
|
PCIBus *pci_get_bus_devfn(int *devfnp, const char *devaddr);
|
||||||
|
|
||||||
int pci_parse_devaddr(const char *addr, int *domp, int *busp,
|
|
||||||
unsigned int *slotp, unsigned int *funcp);
|
|
||||||
int pci_read_devaddr(Monitor *mon, const char *addr, int *domp, int *busp,
|
int pci_read_devaddr(Monitor *mon, const char *addr, int *domp, int *busp,
|
||||||
unsigned *slotp);
|
unsigned *slotp);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user