[Xen-devel] [PATCH v06 26/36] uapi xen/privcmd.h: fix compilation in userspace

2017-08-06 Thread Mikko Rapeli
error: unknown type name ‘size_t’ Signed-off-by: Mikko Rapeli Cc: Paul Durrant Cc: David Vrabel Cc: Stefano Stabellini Cc: Russell King --- include/uapi/xen/privcmd.h | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/include/uapi/xen/privcmd.h b/include/ua

[Xen-devel] [PATCH v06 28/36] uapi xen/evtchn.h: include xen/privcmd.h

2017-08-06 Thread Mikko Rapeli
It has definition of domid_t. Fixes userspace compiler error when xen/privcmd.h is compiled alone: xen/evtchn.h:100:2: error: unknown type name ‘domid_t’ domid_t domid; ^~~ Signed-off-by: Mikko Rapeli Cc: Boris Ostrovsky Cc: Juergen Gross Cc: xen-de...@lists.xenproject.org

[Xen-devel] [PATCH v06 27/36] uapi xen/gntdev.h: include xen/privcmd.h and define grant_ref_t

2017-08-06 Thread Mikko Rapeli
Both are needed to compile in userspace. Fixes these userspace compile errors: xen/gntdev.h:151:4: error: unknown type name ‘grant_ref_t’ grant_ref_t ref; ^ xen/gntdev.h:153:4: error: unknown type name ‘domid_t’ domid_t domid; ^ Signed-off-by: Mikko Rapeli Cc: Boris Ostrovsky

[Xen-devel] [PATCH v05 55/72] include/uapi/xen/gntdev.h: include xen/privcmd.h and define grant_ref_t

2016-08-22 Thread Mikko Rapeli
Both are needed to compile wihtout compiler warnings in userspace. Fixes these userspace compile errors: xen/gntdev.h:151:4: error: unknown type name ‘grant_ref_t’ grant_ref_t ref; ^ xen/gntdev.h:153:4: error: unknown type name ‘domid_t’ domid_t domid; ^ Signed-off-by: Mikko

[Xen-devel] [PATCH v05 54/72] include/uapi/xen/privcmd.h: fix compilation in userspace

2016-08-22 Thread Mikko Rapeli
ef for ARM is ugly but did not find better solutions for it. Fixes userspace compilation error: xen/privcmd.h:38:31: fatal error: xen/interface/xen.h: No such file or directory Signed-off-by: Mikko Rapeli Cc: David Vrabel --- arch/arm/include/asm/xen/interface.h | 2 +- include/uapi/xen/pri

[Xen-devel] [PATCH v05 56/72] include/uapi/xen/evtchn.h: include xen/privcmd.h

2016-08-22 Thread Mikko Rapeli
It has definition of domid_t. Fixes userspace compiler error when xen/privcmd.h is compiled alone: xen/evtchn.h:100:2: error: unknown type name ‘domid_t’ domid_t domid; ^~~ Signed-off-by: Mikko Rapeli --- include/uapi/xen/evtchn.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a

Re: [Xen-devel] [PATCH v05 54/72] include/uapi/xen/privcmd.h: fix compilation in userspace

2016-08-23 Thread Mikko Rapeli
On Tue, Aug 23, 2016 at 11:13:52AM -0700, Stefano Stabellini wrote: > On Tue, 23 Aug 2016, Russell King - ARM Linux wrote: > > On Mon, Aug 22, 2016 at 08:33:11PM +0200, Mikko Rapeli wrote: > > > xen/interface/xen.h is not exported from kernel headers so remove the > >

[Xen-devel] [PATCH 31/98] gntalloc.h: use __u16, __u32 and __u64 from linux/types.h

2015-05-30 Thread Mikko Rapeli
Fixes userspace compilation errors like: xen/gntalloc.h:22:2: error: unknown type name ‘uint16_t’ Signed-off-by: Mikko Rapeli --- include/uapi/xen/gntalloc.h | 22 -- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/include/uapi/xen/gntalloc.h b/include/uapi

[Xen-devel] [PATCH 32/98] gntdev.h: use __u32 and __u64 from linux/types.h

2015-05-30 Thread Mikko Rapeli
Fixes userspace compilation errors like: xen/gntdev.h:38:2: error: unknown type name ‘uint32_t’ Signed-off-by: Mikko Rapeli --- include/uapi/xen/gntdev.h | 34 ++ 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/include/uapi/xen/gntdev.h b/include

[Xen-devel] [PATCH 95/98] HACK: fix include/uapi/xen/privcmd.h compilation in userspace

2015-05-30 Thread Mikko Rapeli
of these headers were fixed to use __u8 etc from linux/types.h instead of custom types. Then define uint64_t and uint32_t if needed. After all these changes these header files now compile in userspace too on x86. HACK since I have no idea if this is correct way to fix this. Signed-off-by: Mikko

Re: [Xen-devel] [PATCH 25/45] gntalloc.h: include stdint.h in userspace

2015-03-10 Thread Mikko Rapeli
On Wed, Feb 18, 2015 at 11:53:22AM +, David Vrabel wrote: > On 16/02/15 23:05, Mikko Rapeli wrote: > > Fixes compilation error: > > > > xen/gntalloc.h:22:2: error: unknown type name ‘uint16_t’ > > > > Signed-off-by: Mikko Rapeli > > --- > >

[Xen-devel] [PATCH 26/45] gntdev.h: include stdint.h in userspace

2015-02-18 Thread Mikko Rapeli
Fixes compilation error: xen/gntdev.h:38:2: error: unknown type name ‘uint32_t’ Signed-off-by: Mikko Rapeli --- include/uapi/xen/gntdev.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/include/uapi/xen/gntdev.h b/include/uapi/xen/gntdev.h index 5304bd3..f724f75 100644 --- a/include

[Xen-devel] [PATCH 25/45] gntalloc.h: include stdint.h in userspace

2015-02-18 Thread Mikko Rapeli
Fixes compilation error: xen/gntalloc.h:22:2: error: unknown type name ‘uint16_t’ Signed-off-by: Mikko Rapeli --- include/uapi/xen/gntalloc.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/include/uapi/xen/gntalloc.h b/include/uapi/xen/gntalloc.h index 76bd580..184df7e 100644 --- a

Re: [Xen-devel] [PATCH 95/98] HACK: fix include/uapi/xen/privcmd.h compilation in userspace

2015-09-10 Thread Mikko Rapeli
On Sat, May 30, 2015 at 06:56:25PM +0100, Andrew Cooper wrote: > On 30/05/15 16:39, Mikko Rapeli wrote: > > privcmd.h depends on xen/interface/xen.h which is now exported to userspace. > > xen/interface/xen.h then depends on asm/xen/interface.h which is now > > exported to us

[Xen-devel] [PATCH v4 30/79] gntdev.h: use __u32 and __u64 from linux/types.h

2015-10-14 Thread Mikko Rapeli
Fixes userspace compilation errors like: xen/gntdev.h:38:2: error: unknown type name ‘uint32_t’ Signed-off-by: Mikko Rapeli --- include/uapi/xen/gntdev.h | 34 ++ 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/include/uapi/xen/gntdev.h b/include

[Xen-devel] [PATCH v4 29/79] gntalloc.h: use __u16, __u32 and __u64 from linux/types.h

2015-10-14 Thread Mikko Rapeli
Fixes userspace compilation errors like: xen/gntalloc.h:22:2: error: unknown type name ‘uint16_t’ Signed-off-by: Mikko Rapeli --- include/uapi/xen/gntalloc.h | 22 -- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/include/uapi/xen/gntalloc.h b/include/uapi

[Xen-devel] [PATCH v4 75/79] include/uapi/xen/privcmd.h: fix compilation in userspace

2015-10-14 Thread Mikko Rapeli
ef for ARM is ugly but did not find better solutions for it. Fixes userspace compilation error: xen/privcmd.h:38:31: fatal error: xen/interface/xen.h: No such file or directory Signed-off-by: Mikko Rapeli --- arch/arm/include/asm/xen/interface.h | 2 +- include/uapi/xen/privcmd.h

Re: [Xen-devel] [PATCH v4 75/79] include/uapi/xen/privcmd.h: fix compilation in userspace

2015-10-15 Thread Mikko Rapeli
On Thu, Oct 15, 2015 at 11:29:12AM +0100, David Vrabel wrote: > On 15/10/15 06:56, Mikko Rapeli wrote: > > xen/interface/xen.h is not exported from kernel headers so remove the > > dependency and provide needed defines for domid_t and xen_pfn_t if they > > are not already defi

Re: [Xen-devel] [PATCH v4 75/79] include/uapi/xen/privcmd.h: fix compilation in userspace

2015-10-15 Thread Mikko Rapeli
On Thu, Oct 15, 2015 at 12:24:39PM +0100, David Vrabel wrote: > On 15/10/15 12:18, Mikko Rapeli wrote: > > On Thu, Oct 15, 2015 at 11:29:12AM +0100, David Vrabel wrote: > >> On 15/10/15 06:56, Mikko Rapeli wrote: > >>> xen/interface/xen.h is not exported fro