diff mbox

Fix the compatibility typedef of ioservid_t to match the Xen headers

Message ID 1436275958-25174-1-git-send-email-paul.durrant@citrix.com
State New
Headers show

Commit Message

Paul Durrant July 7, 2015, 1:32 p.m. UTC
There is a mismatch between the definition of ioservid_t in
xen_common.h and the definition in the Xen publix headers. This patch
corrects the definition in xen_common.h.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
---
 include/hw/xen/xen_common.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Michael S. Tsirkin July 8, 2015, 2:06 p.m. UTC | #1
On Tue, Jul 07, 2015 at 02:32:38PM +0100, Paul Durrant wrote:
> There is a mismatch between the definition of ioservid_t in
> xen_common.h and the definition in the Xen publix headers. This patch
> corrects the definition in xen_common.h.
> 
> Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
> Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com>

Tested-by: Michael S. Tsirkin <mst@redhat.com>

> ---
>  include/hw/xen/xen_common.h |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/include/hw/xen/xen_common.h b/include/hw/xen/xen_common.h
> index 38f29fb..ed5fd3e 100644
> --- a/include/hw/xen/xen_common.h
> +++ b/include/hw/xen/xen_common.h
> @@ -195,7 +195,7 @@ static inline int xen_get_vmport_regs_pfn(XenXC xc, domid_t dom,
>  
>  #define IOREQ_TYPE_PCI_CONFIG 2
>  
> -typedef uint32_t ioservid_t;
> +typedef uint16_t ioservid_t;
>  
>  static inline void xen_map_memory_section(XenXC xc, domid_t dom,
>                                            ioservid_t ioservid,
> -- 
> 1.7.10.4
Peter Maydell July 8, 2015, 3:47 p.m. UTC | #2
On 8 July 2015 at 15:06, Michael S. Tsirkin <mst@redhat.com> wrote:
> On Tue, Jul 07, 2015 at 02:32:38PM +0100, Paul Durrant wrote:
>> There is a mismatch between the definition of ioservid_t in
>> xen_common.h and the definition in the Xen publix headers. This patch
>> corrects the definition in xen_common.h.
>>
>> Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
>> Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
>
> Tested-by: Michael S. Tsirkin <mst@redhat.com>


Applied to master, thanks.

-- PMM
diff mbox

Patch

diff --git a/include/hw/xen/xen_common.h b/include/hw/xen/xen_common.h
index 38f29fb..ed5fd3e 100644
--- a/include/hw/xen/xen_common.h
+++ b/include/hw/xen/xen_common.h
@@ -195,7 +195,7 @@  static inline int xen_get_vmport_regs_pfn(XenXC xc, domid_t dom,
 
 #define IOREQ_TYPE_PCI_CONFIG 2
 
-typedef uint32_t ioservid_t;
+typedef uint16_t ioservid_t;
 
 static inline void xen_map_memory_section(XenXC xc, domid_t dom,
                                           ioservid_t ioservid,