qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Michael S. Tsirkin" <mst@redhat.com>
To: Isaku Yamahata <yamahata@valinux.co.jp>
Cc: qemu-devel@nongnu.org
Subject: [Qemu-devel] Re: [PATCH 3/3] pci: improve signature of pci_register_bar().
Date: Sun, 12 Sep 2010 17:21:51 +0200	[thread overview]
Message-ID: <20100912152151.GB5092@redhat.com> (raw)
In-Reply-To: <f7f3ce7655c480886e291c4da2013f77e68602ed.1284000417.git.yamahata@valinux.co.jp>

On Thu, Sep 09, 2010 at 11:48:57AM +0900, Isaku Yamahata wrote:
> Make type uint8_t from int because PCIIORegion::type is uint8_t.
> 
> Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
> ---
>  hw/pci.c |    2 +-
>  hw/pci.h |    2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)


Applied, thanks.

> diff --git a/hw/pci.c b/hw/pci.c
> index 31eba9a..ceee291 100644
> --- a/hw/pci.c
> +++ b/hw/pci.c
> @@ -758,7 +758,7 @@ static int pci_unregister_device(DeviceState *dev)
>  }
>  
>  void pci_register_bar(PCIDevice *pci_dev, int region_num,
> -                            pcibus_t size, int type,
> +                            pcibus_t size, uint8_t type,
>                              PCIMapIORegionFunc *map_func)
>  {
>      PCIIORegion *r;
> diff --git a/hw/pci.h b/hw/pci.h
> index bccab3a..25179eb 100644
> --- a/hw/pci.h
> +++ b/hw/pci.h
> @@ -192,7 +192,7 @@ PCIDevice *pci_register_device(PCIBus *bus, const char *name,
>                                 PCIConfigWriteFunc *config_write);
>  
>  void pci_register_bar(PCIDevice *pci_dev, int region_num,
> -                            pcibus_t size, int type,
> +                            pcibus_t size, uint8_t type,
>                              PCIMapIORegionFunc *map_func);
>  
>  int pci_add_capability(PCIDevice *pdev, uint8_t cap_id,
> -- 
> 1.7.1.1

      reply	other threads:[~2010-09-12 15:27 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-09  2:48 [Qemu-devel] [PATCH 0/3] pci: pci_register_bar() clean up Isaku Yamahata
2010-09-09  2:48 ` [Qemu-devel] [PATCH 1/3] pci: sorting out type confusion in pci_register_bar() Isaku Yamahata
2010-09-12 15:18   ` [Qemu-devel] " Michael S. Tsirkin
2010-09-09  2:48 ` [Qemu-devel] [PATCH 2/3] pci: don't ignore invalid parameter for pci_register_bar() Isaku Yamahata
2010-09-12 15:21   ` [Qemu-devel] " Michael S. Tsirkin
2010-09-09  2:48 ` [Qemu-devel] [PATCH 3/3] pci: improve signature of pci_register_bar() Isaku Yamahata
2010-09-12 15:21   ` Michael S. Tsirkin [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100912152151.GB5092@redhat.com \
    --to=mst@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=yamahata@valinux.co.jp \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).