From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:59405) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ry5tg-0004KM-ER for qemu-devel@nongnu.org; Thu, 16 Feb 2012 13:17:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ry5tb-0003Bh-Ny for qemu-devel@nongnu.org; Thu, 16 Feb 2012 13:17:36 -0500 Received: from mx1.redhat.com ([209.132.183.28]:5844) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ry5tb-0003BJ-GA for qemu-devel@nongnu.org; Thu, 16 Feb 2012 13:17:31 -0500 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q1GIHPfu027938 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 16 Feb 2012 13:17:30 -0500 Received: from redhat.com (reserved-203-247.tlv.redhat.com [10.35.203.247] (may be forged)) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with SMTP id q1GIFGe0029008 for ; Thu, 16 Feb 2012 13:15:17 -0500 Date: Thu, 16 Feb 2012 20:15:25 +0200 From: "Michael S. Tsirkin" Message-ID: <024de152142b5f92348691e4b6df2c0ed0852796.1329416075.git.mst@redhat.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: [Qemu-devel] [PATCH 1/2] pci: don't export an internal function List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-devel@nongnu.org Make an internal function, pci_parse_devaddr, static. Signed-off-by: Michael S. Tsirkin --- hw/pci.c | 2 +- hw/pci.h | 2 -- 2 files changed, 1 insertions(+), 3 deletions(-) diff --git a/hw/pci.c b/hw/pci.c index f580bb5..5827c0e 100644 --- a/hw/pci.c +++ b/hw/pci.c @@ -478,7 +478,7 @@ static void pci_set_default_subsystem_id(PCIDevice *pci_dev) * Parse [[:]:], return -1 on error if funcp == NULL * [[:]:]., 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 355c905..fd40b5e 100644 --- a/hw/pci.h +++ b/hw/pci.h @@ -311,8 +311,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); -- 1.7.9.111.gf3fb0