From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=58035 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OHdup-0005wg-IB for qemu-devel@nongnu.org; Thu, 27 May 2010 10:18:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OHduk-0007ru-LT for qemu-devel@nongnu.org; Thu, 27 May 2010 10:18:31 -0400 Received: from mx1.redhat.com ([209.132.183.28]:39442) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OHduk-0007rX-82 for qemu-devel@nongnu.org; Thu, 27 May 2010 10:18:26 -0400 Date: Thu, 27 May 2010 17:14:11 +0300 From: "Michael S. Tsirkin" Message-ID: <20100527141411.GC8287@redhat.com> References: <20100527054237.GH31807@valinux.co.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100527054237.GH31807@valinux.co.jp> Subject: [Qemu-devel] Re: [PATCH] pci: add const to pci_is_express(), pci_config_size(). List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Isaku Yamahata Cc: qemu-devel@nongnu.org On Thu, May 27, 2010 at 02:42:37PM +0900, Isaku Yamahata wrote: > add const to pci_is_express(), pci_config_size(). > > Signed-off-by: Isaku Yamahata Applied, thanks. > --- > hw/pci.h | 4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/hw/pci.h b/hw/pci.h > index 6eee93a..b803593 100644 > --- a/hw/pci.h > +++ b/hw/pci.h > @@ -339,12 +339,12 @@ void pci_qdev_register_many(PCIDeviceInfo *info); > PCIDevice *pci_create(PCIBus *bus, int devfn, const char *name); > PCIDevice *pci_create_simple(PCIBus *bus, int devfn, const char *name); > > -static inline int pci_is_express(PCIDevice *d) > +static inline int pci_is_express(const PCIDevice *d) > { > return d->cap_present & QEMU_PCI_CAP_EXPRESS; > } > > -static inline uint32_t pci_config_size(PCIDevice *d) > +static inline uint32_t pci_config_size(const PCIDevice *d) > { > return pci_is_express(d) ? PCIE_CONFIG_SPACE_SIZE : PCI_CONFIG_SPACE_SIZE; > } > -- > 1.6.6.1 >