diff options
| author | Michael S. Tsirkin <mst@redhat.com> | 2012-02-15 23:32:00 +0200 |
|---|---|---|
| committer | Michael S. Tsirkin <mst@redhat.com> | 2012-03-15 17:04:58 +0200 |
| commit | 94a09e2c846374a96719cda2b4e1312d8c4b08a7 (patch) | |
| tree | 5050294feae0dbc402273e8cf03dff2eafdc7622 | |
| parent | 15a7a7780675eb99c093e29deefc5d6cc371bd87 (diff) | |
| download | focaccia-qemu-94a09e2c846374a96719cda2b4e1312d8c4b08a7.tar.gz focaccia-qemu-94a09e2c846374a96719cda2b4e1312d8c4b08a7.zip | |
pci: don't export an internal function
Make an internal function, pci_parse_devaddr, static. Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
| -rw-r--r-- | hw/pci.c | 2 | ||||
| -rw-r--r-- | hw/pci.h | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/hw/pci.c b/hw/pci.c index 38e1de566c..691322da0f 100644 --- a/hw/pci.c +++ b/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 * [[<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) { const char *p; diff --git a/hw/pci.h b/hw/pci.h index 4f19fdbd89..403aadb8f9 100644 --- a/hw/pci.h +++ b/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); 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, unsigned *slotp); |