Received: from [140.186.70.92] (port=58627 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OQdlY-00024n-6X for qemu-devel@nongnu.org; Mon, 21 Jun 2010 05:58:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OQdlX-0004d3-5l for qemu-devel@nongnu.org; Mon, 21 Jun 2010 05:58:08 -0400 Received: from mail.valinux.co.jp ([210.128.90.3]:48542) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OQdlW-0004cv-T8 for qemu-devel@nongnu.org; Mon, 21 Jun 2010 05:58:07 -0400 Date: Mon, 21 Jun 2010 18:54:22 +0900 From: Isaku Yamahata Subject: Re: [Qemu-devel] [PATCH] pci hotplug: staticfy pci_device_hot_remove(). Message-ID: <20100621095422.GD18250@valinux.co.jp> References: <20100615034836.GU23473@valinux.co.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100615034836.GU23473@valinux.co.jp> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Gerd Hoffmann , "Michael S. Tsirkin" Ping. Michael, do you have any comment on this? On Tue, Jun 15, 2010 at 12:48:36PM +0900, Isaku Yamahata wrote: > staticfy pci_device_hot_remove(). > > Signed-off-by: Isaku Yamahata > --- > hw/pci-hotplug.c | 2 +- > sysemu.h | 1 - > 2 files changed, 1 insertions(+), 2 deletions(-) > > diff --git a/hw/pci-hotplug.c b/hw/pci-hotplug.c > index c39e640..098264c 100644 > --- a/hw/pci-hotplug.c > +++ b/hw/pci-hotplug.c > @@ -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; > diff --git a/sysemu.h b/sysemu.h > index c758243..9c988bb 100644 > --- 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 */ > -- > 1.6.6.1 > > -- yamahata