From patchwork Thu Feb 16 18:15:25 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Michael S. Tsirkin" X-Patchwork-Id: 141660 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 7FDF4B6F62 for ; Fri, 17 Feb 2012 05:17:47 +1100 (EST) Received: from localhost ([::1]:35298 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ry5tm-0004Kg-NC for incoming@patchwork.ozlabs.org; Thu, 16 Feb 2012 13:17:42 -0500 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" Cc: qemu-devel@nongnu.org Message-ID: <024de152142b5f92348691e4b6df2c0ed0852796.1329416075.git.mst@redhat.com> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-Mutt-Fcc: =sent User-Agent: Mutt/1.5.21 (2010-09-15) X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH 1/2] pci: don't export an internal function X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@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);