]> git.proxmox.com Git - qemu.git/commitdiff
pci hotplug: make pci_device_hot_remove() static
authorIsaku Yamahata <yamahata@valinux.co.jp>
Tue, 15 Jun 2010 03:48:36 +0000 (12:48 +0900)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 11 Jul 2010 20:14:57 +0000 (23:14 +0300)
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/pci-hotplug.c
sysemu.h

index fe468d646e8fe93dbc1dfe6986e43cceb10f1af5..c38f47fbf1db2bc896dfa8b1da0dac49fa8a998e 100644 (file)
@@ -265,7 +265,7 @@ void pci_device_hot_add(Monitor *mon, const QDict *qdict)
 }
 #endif
 
-int pci_device_hot_remove(Monitor *mon, const char *pci_addr)
+static int pci_device_hot_remove(Monitor *mon, const char *pci_addr)
 {
     PCIDevice *d;
     int dom, bus;
index c758243ca1b87dfc0b9579aa58a8770588ca5e3e..9c988bb2a3bcaed0a038c17043d7eb0a2bf0df5d 100644 (file)
--- a/sysemu.h
+++ b/sysemu.h
@@ -149,7 +149,6 @@ extern unsigned int nb_prom_envs;
 /* pci-hotplug */
 void pci_device_hot_add(Monitor *mon, const QDict *qdict);
 void drive_hot_add(Monitor *mon, const QDict *qdict);
-int pci_device_hot_remove(Monitor *mon, const char *pci_addr);
 void do_pci_device_hot_remove(Monitor *mon, const QDict *qdict);
 
 /* serial ports */