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 fe468d6..c38f47f 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 c758243..9c988bb 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 */