Skip to contentSkip to conversation

pci hotplug: staticfy pci_device_hot_remove().

PATCH Applied Isaku Yamahata 3 participants 4 messages Jun 15, 2010 – Jun 21, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pci hotplug: staticfy pci_device_hot_remove().

staticfy pci_device_hot_remove().

---
 hw/pci-hotplug.c |    2 +-
 sysemu.h         |    1 -
 2 files changed, 1 insertions(+), 2 deletions(-)
hw/pci-hotplug.c +1 -1
index c39e640..098264c 100644
@@ -258,7 +258,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;
sysemu.h +0 -1
index c758243..9c988bb 100644
@@ -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 */
Signature · 1 line
1.6.6.1
#2 lore raw
In reply to Isaku Yamahata

Ping.
Michael, do you have any comment on this?

Quoted 37 lines · Isaku Yamahata

staticfy pci_device_hot_remove().

---
 hw/pci-hotplug.c |    2 +-
 sysemu.h         |    1 -
 2 files changed, 1 insertions(+), 2 deletions(-)
hw/pci-hotplug.c +1 -1
index c39e640..098264c 100644
@@ -258,7 +258,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;
sysemu.h +0 -1
index c758243..9c988bb 100644
@@ -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 */
Signature · 1 line
1.6.6.1
Signature · 1 line
yamahata
#3 lore raw
In reply to Isaku Yamahata
Quoted 3 lines · Isaku Yamahata

staticfy pci_device_hot_remove().

Applied, thanks.

Quoted 32 lines
---
 hw/pci-hotplug.c |    2 +-
 sysemu.h         |    1 -
 2 files changed, 1 insertions(+), 2 deletions(-)
hw/pci-hotplug.c +1 -1
index c39e640..098264c 100644
@@ -258,7 +258,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;
sysemu.h +0 -1
index c758243..9c988bb 100644
@@ -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 */
Signature · 1 line
1.6.6.1