[PATCH v06 04/36] uapi scsi/scsi_netlink_fc.h: use __u16, __u32 and __u64 from linux/types.h

2017-08-06 Thread Mikko Rapeli
Fixes userspace compilation errors like: scsi/scsi_netlink_fc.h:60:2: error: expected specifier-qualifier-list before ‘uint64_t’ Signed-off-by: Mikko Rapeli Cc: linux-s...@vger.kernel.org --- include/uapi/scsi/scsi_netlink_fc.h | 16 1 file changed, 8 insertions(+), 8

[PATCH v06 29/36] uapi linux/elfcore.h: remove non-compiling userspace parts

2017-08-06 Thread Mikko Rapeli
compiles but is generally not usable for things like core dump parsing but luckily userspace users already know this and have their own modified version of the needed definitions and headers. But at least this compiles now. Signed-off-by: Mikko Rapeli Cc: Al Viro Cc: Ingo Molnar Cc: Roland McGrath

[PATCH v06 03/36] uapi scsi/scsi_netlink.h: use __u8, __u16 and __u64 from linux/types.h

2017-08-06 Thread Mikko Rapeli
Fixes userspace compilation errors like: scsi/scsi_netlink.h:43:2: error: unknown type name ‘uint8_t’ Signed-off-by: Mikko Rapeli Cc: linux-s...@vger.kernel.org --- include/uapi/scsi/scsi_netlink.h | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git

[PATCH v06 12/36] x86 uapi asm/signal.h: use __kernel_size_t instead of size_t

2017-08-06 Thread Mikko Rapeli
Fixes userspace compilation error: error: unknown type name ‘size_t’ Signed-off-by: Mikko Rapeli Cc: Al Viro Cc: Arnd Bergmann Cc: H. Peter Anvin --- arch/x86/include/uapi/asm/signal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/include/uapi/asm/signal.h b

[PATCH v06 22/36] uapi linux/reiserfs_xattr.h: use __kernel_size_t instead of size_t

2017-08-06 Thread Mikko Rapeli
Fixes userspace compilation error: error: unknown type name ‘size_t’ size_t length; Signed-off-by: Mikko Rapeli Cc: reiserfs-de...@vger.kernel.org --- include/uapi/linux/reiserfs_xattr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/uapi/linux/reiserfs_xattr.h

[PATCH v06 00/36] Userspace compile test and fixes for exported uapi header files

2017-08-06 Thread Mikko Rapeli
kernel subsystem maintainers would pick and apply patches from this series to their queues, and comment if there are problems with any of them. Mikko Rapeli (36): Add scripts/headers_compile_test.sh: compile test for exported uapi headers uapi scsi/scsi_bsg_fc.h: use __u8, __u32 and __u64

[PATCH v06 31/36] uapi linux/patchkey.h: change #error to #warning if file included directly

2017-08-06 Thread Mikko Rapeli
Would be nice to be able to compile all userspace header files also alone. Signed-off-by: Mikko Rapeli Cc: alsa-de...@alsa-project.org Cc: Andrew Veliath Cc: Riccardo Facchetti --- include/uapi/linux/patchkey.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/uapi

[PATCH v06 16/36] uapi linux/dlm_netlink.h: include linux/dlmconstants.h

2017-08-06 Thread Mikko Rapeli
Fixes userspace compilation error: error: ‘DLM_RESNAME_MAXLEN’ undeclared here (not in a function) char resource_name[DLM_RESNAME_MAXLEN]; Signed-off-by: Mikko Rapeli Cc: Christine Caulfield Cc: David Teigland Cc: cluster-de...@redhat.com --- include/uapi/linux/dlm_netlink.h | 1 + 1 file

[PATCH v06 32/36] uapi drm/armada_drm.h: use __u32 and __u64 instead of uint32_t and uint64_t

2017-08-06 Thread Mikko Rapeli
These are defined in linux/types.h or drm/drm.h. Fixes user space compilation errors like: drm/armada_drm.h:26:2: error: unknown type name ‘uint32_t’ uint32_t handle; ^~~~ Signed-off-by: Mikko Rapeli Cc: Emil Velikov Cc: Gabriel Laskar Cc: Russell King Cc: Rob Clark --- include

[PATCH v06 14/36] arm uapi asm/signal.h: include for size_t in userspace

2017-08-06 Thread Mikko Rapeli
Arnd Bergmann doubts that __kernel_size_t could be used here so trying to fall back to gcc's . Fixes uapi header compilation error from userspace on ARCH=arm: asm/signal.h:112:2: error: unknown type name ‘size_t’ size_t ss_size; Signed-off-by: Mikko Rapeli Cc: Arnd Bergmann --- arch/arm

[PATCH v06 20/36] uapi linux/scc.h: include linux/sockios.h

2017-08-06 Thread Mikko Rapeli
Fixes userspace compilation error: error: ‘SIOCDEVPRIVATE’ undeclared here (not in a function) SIOCSCCRESERVED = SIOCDEVPRIVATE Signed-off-by: Mikko Rapeli Cc: net...@vger.kernel.org Cc: linux-h...@vger.kernel.org Cc: Joerg Reuter --- include/uapi/linux/scc.h | 1 + 1 file changed, 1

[PATCH v06 01/36] Add scripts/headers_compile_test.sh: compile test for exported uapi headers

2017-08-06 Thread Mikko Rapeli
failed libc before kernel include test. 790 files passed libc before kernel include test. Since I've been stubborn enough to work with this script and fixes to the test failures for a few years, I added my self to MAINTAINERS. Signed-off-by: Mikko Rapeli Cc: Alexander Stein Cc: Gabriel Laskar Cc

[PATCH v06 35/36] uapi linux/tls.h: don't include in user space

2017-08-06 Thread Mikko Rapeli
It is not needed and not part of uapi headers, but causes user space compilation error: fatal error: net/tcp.h: No such file or directory #include ^ Signed-off-by: Mikko Rapeli Cc: Dave Watson Cc: Ilya Lesokhin Cc: Aviad Yehezkel --- include/uapi/linux/tls.h | 2 ++ 1

[PATCH v06 05/36] uapi linux/sysctl.h: use __kernel_size_t instead of size_t

2017-08-06 Thread Mikko Rapeli
Fixes userspace compilation error: error: unknown type name ‘size_t’ Signed-off-by: Mikko Rapeli Cc: Arnd Bergmann Cc: David S. Miller --- include/uapi/linux/sysctl.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/uapi/linux/sysctl.h b/include/uapi/linux

[PATCH v06 33/36] uapi linux/fsmap.h: use __kernel_size_t instead of size_t

2017-08-06 Thread Mikko Rapeli
Fixes user space compilation error: linux/fsmap.h:71:19: error: unknown type name ‘size_t’ static __inline__ size_t ^~ Signed-off-by: Mikko Rapeli Cc: Darrick J. Wong --- include/uapi/linux/fsmap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v06 11/36] uapi asm-generic/ucontext.h: include asm/signal.h and asm/sigcontext.h

2017-08-06 Thread Mikko Rapeli
Fixes userspace compiler errors: error: unknown type name ‘stack_t’ error: field ‘uc_mcontext’ has incomplete type struct sigcontext uc_mcontext; error: unknown type name ‘sigset_t’ Signed-off-by: Mikko Rapeli Cc: H. Peter Anvin Cc: Arnd Bergmann Cc: Al Viro --- include/uapi/asm-generic

[PATCH v06 24/36] uapi linux/coda_psdev.h: move upc_req definition from uapi to kernel side headers

2017-08-06 Thread Mikko Rapeli
_short uc_opcode; /* copied from data to save lookup */ ^ ./linux/coda_psdev.h:19:2: error: unknown type name ‘wait_queue_head_t’ wait_queue_head_t uc_sleep; /* process' wait queue */ ^ Signed-off-by: Mikko Rapeli Cc: c...@cs.cmu.edu Cc: Jan Harkes --- include/linux/coda_p

[PATCH v06 30/36] uapi rdma/rdma_user_rxe.h: include in.h and in6.h

2017-08-06 Thread Mikko Rapeli
struct sockaddr_in _sockaddr_in; ^~~~ rdma/rdma_user_rxe.h:61:23: error: field ‘_sockaddr_in6’ has incomplete type struct sockaddr_in6 _sockaddr_in6; ^ Signed-off-by: Mikko Rapeli Acked-by: Moni Shoua Acked-by: Doug Ledford Cc

[PATCH v06 10/36] uapi asm-generic/signal.h: use __kernel_size_t instead of size_t

2017-08-06 Thread Mikko Rapeli
Fixes userspace compiler error: error: unknown type name ‘size_t’ Signed-off-by: Mikko Rapeli Acked-by: Arnd Bergmann Cc: Al Viro Cc: H. Peter Anvin --- include/uapi/asm-generic/signal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/uapi/asm-generic/signal.h b

[PATCH v06 07/36] uapi asm-generic/msgbuf.h: include asm/ipcbuf.h

2017-08-06 Thread Mikko Rapeli
Fixes userspace compilation errors like: error: field ‘msg_perm’ has incomplete type struct ipc64_perm msg_perm Signed-off-by: Mikko Rapeli Acked-by: Arnd Bergmann Cc: H.J. Lu Cc: H. Peter Anvin --- include/uapi/asm-generic/msgbuf.h | 2 ++ 1 file changed, 2 insertions(+) diff --git

[PATCH v06 25/36] uapi linux/android/binder.h: use __kernel_pid_t and __kernel_uid_t

2017-08-06 Thread Mikko Rapeli
Fixes userspace compilation errors: error: unknown type name ‘pid_t’ pid_t sender_pid error: unknown type name ‘uid_t’ uid_t sender_euid; Signed-off-by: Mikko Rapeli Cc: Greg Kroah-Hartman Cc: Arve Hjønnevåg Cc: Riley Andrews Cc: Todd Kjos Cc: Martijn Coenen Cc: de

[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

[PATCH v06 02/36] uapi scsi/scsi_bsg_fc.h: use __u8, __u32 and __u64 from linux/types.h

2017-08-06 Thread Mikko Rapeli
Fixes userspace compilation errors like: scsi/scsi_bsg_fc.h:83:2: error: unknown type name ‘uint8_t’ Signed-off-by: Mikko Rapeli Cc: linux-s...@vger.kernel.org --- include/uapi/scsi/scsi_bsg_fc.h | 54 + 1 file changed, 28 insertions(+), 26 deletions

[PATCH v06 06/36] uapi asm-generic/ipcbuf.h: include linux/posix_types.h

2017-08-06 Thread Mikko Rapeli
Fixes userspace compilation error: error: unknown type name ‘__kernel_key_t’ Signed-off-by: Mikko Rapeli Acked-by: Arnd Bergmann Cc: "H. Peter Anvin" Cc: H.J. Lu --- include/uapi/asm-generic/ipcbuf.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/uapi/asm-generic/i

[PATCH v06 13/36] x86 uapi asm/sembuf.h: include linux/types.h and linux/ipc.h

2017-08-06 Thread Mikko Rapeli
Fixes userspace compile errors like: error: field ‘sem_perm’ has incomplete type struct ipc64_perm sem_perm; /* permissions .. see ipc.h */ error: unknown type name ‘__kernel_time_t’ __kernel_time_t sem_otime; /* last semop time */ Signed-off-by: Mikko Rapeli Cc: Al Viro Cc: Arnd Bergmann

[PATCH v06 18/36] uapi linux/errqueue.h: include linux/time.h in user space

2017-08-06 Thread Mikko Rapeli
linux/time.h conflicts with user space header time.h. Try to be compatible with both. Fixes userspace compilation error: error: array type has incomplete element type struct timespec ts[3]; Signed-off-by: Mikko Rapeli Cc: Willem de Bruijn Cc: Soheil Hassas Yeganeh Cc: net...@vger.kernel.org

[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

[PATCH v06 36/36] uapi linux/kfd_ioctl.h: use __u32 and __u64 instead of uint32_t and uint64_t

2017-08-06 Thread Mikko Rapeli
Include instead of which on Linux includes and on non-Linux platforms defines __u32 etc types. Fixes user space compilation errors like: linux/kfd_ioctl.h:33:2: error: unknown type name ‘uint32_t’ uint32_t major_version; /* from KFD */ ^~~~ Signed-off-by: Mikko Rapeli Cc: Yair

[PATCH v06 09/36] uapi asm-generic/sembuf.h: include asm/posix_types.h and asm/ipcbuf.h

2017-08-06 Thread Mikko Rapeli
Fixes userspace compilation errors like: error: field ‘msg_perm’ has incomplete type struct ipc64_perm msg_perm; error: unknown type name ‘__kernel_ulong_t’ Signed-off-by: Mikko Rapeli Acked-by: Arnd Bergmann Cc: H.J. Lu Cc: H. Peter Anvin --- include/uapi/asm-generic/sembuf.h | 2 ++ 1

[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

[PATCH v06 17/36] uapi linux/sctp.h: use __u8, __u16 and __u32 from linux/types.h

2017-08-06 Thread Mikko Rapeli
Fixes userspace compilation errors like: linux/sctp.h:652:2: error: unknown type name ‘uint32_t’ Acked-by: Neil Horman Signed-off-by: Mikko Rapeli Cc: Marcelo Ricardo Leitner Cc: Xin Long Cc: Phil Sutter --- include/uapi/linux/sctp.h | 20 ++-- 1 file changed, 10 insertions

Re: [PATCH v06 18/36] uapi linux/errqueue.h: include linux/time.h in user space

2017-08-06 Thread Mikko Rapeli
On Sun, Aug 06, 2017 at 04:23:16PM -0400, Willem de Bruijn wrote: > On Sun, Aug 6, 2017 at 12:44 PM, Mikko Rapeli wrote: > > linux/time.h conflicts with user space header time.h. Try to be compatible > > with both. > > > > Fixes userspace compilation error: &g

Re: [PATCH v06 18/36] uapi linux/errqueue.h: include linux/time.h in user space

2017-08-06 Thread Mikko Rapeli
On Sun, Aug 06, 2017 at 04:26:50PM -0400, Willem de Bruijn wrote: > On Sun, Aug 6, 2017 at 4:23 PM, Willem de Bruijn > wrote: > > On Sun, Aug 6, 2017 at 12:44 PM, Mikko Rapeli wrote: > >> linux/time.h conflicts with user space header time.h. Try to be compatible > >&

Re: [PATCH v06 04/36] uapi scsi/scsi_netlink_fc.h: use __u16, __u32 and __u64 from linux/types.h

2017-08-06 Thread Mikko Rapeli
Hi, On Sun, Aug 06, 2017 at 11:22:53AM -0700, James Bottomley wrote: > On Sun, 2017-08-06 at 18:43 +0200, Mikko Rapeli wrote: > > Fixes userspace compilation errors like: > > > > scsi/scsi_netlink_fc.h:60:2: error: expected specifier-qualifier-list > > before

Re: [PATCH v06 18/36] uapi linux/errqueue.h: include linux/time.h in user space

2017-08-06 Thread Mikko Rapeli
On Sun, Aug 06, 2017 at 05:24:20PM -0400, Willem de Bruijn wrote: > >> > +#ifdef __KERNEL__ > >> > +#include > >> > +#else > >> > +#include > >> > +#endif /* __KERNEL__ */ > >> > >> This will break applications that include manually. > >> I previously sent a patch to use libc-compat to make

Re: [PATCH v06 18/36] uapi linux/errqueue.h: include linux/time.h in user space

2017-08-06 Thread Mikko Rapeli
On Sun, Aug 06, 2017 at 05:42:13PM -0400, Willem de Bruijn wrote: > On Sun, Aug 6, 2017 at 5:33 PM, Mikko Rapeli wrote: > > On Sun, Aug 06, 2017 at 05:24:20PM -0400, Willem de Bruijn wrote: > >> >> > +#ifdef __KERNEL__ > >> >> > +#include > >&

Re: [PATCH v06 04/36] uapi scsi/scsi_netlink_fc.h: use __u16, __u32 and __u64 from linux/types.h

2017-08-07 Thread Mikko Rapeli
On Sun, Aug 06, 2017 at 03:09:21PM -0700, James Bottomley wrote: > On Sun, 2017-08-06 at 23:42 +0300, Mikko Rapeli wrote: > > Hi, > > > > On Sun, Aug 06, 2017 at 11:22:53AM -0700, James Bottomley wrote: > > > > > > On Sun, 2017-08-06 at 18:43 +0200, Mik

Re: [PATCH v06 05/36] uapi linux/sysctl.h: use __kernel_size_t instead of size_t

2017-08-09 Thread Mikko Rapeli
Hi Dmitry and thanks for the comments. I have only one question: why haven't your patches been applied yet? -Mikko

Re: [PATCH] uapi: fix linux/tls.h userspace compilation error

2017-11-15 Thread Mikko Rapeli
rror: net/tcp.h: No such file or > directory > > As to this point uapi/linux/tls.h was totaly unusuable for userspace, > cleanup this header file further by moving other redundant includes > to net/tls.h. > > Fixes: 3c4d7559159b ("tls: kernel TLS support") > Cc: # v4.13+ &

[RFC PATCH v2 21/27] gntalloc.h: include stdint.h in userspace

2014-09-01 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

[RFC PATCH v2 06/27] drm_mode.h: include stdint.h and linux/types.h in userspace

2014-09-01 Thread Mikko Rapeli
Fixes compilation error: drm/drm_mode.h:472:2: error: unknown type name ‘uint32_t’ Signed-off-by: Mikko Rapeli --- include/uapi/drm/drm_mode.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/uapi/drm/drm_mode.h b/include/uapi/drm/drm_mode.h index f104c26..93b25bae 100644

[RFC PATCH v2 23/27] r128_drm.h: include drm/drm.h

2014-09-01 Thread Mikko Rapeli
Fixes compile error: drm/r128_drm.h:156:23: error: array type has incomplete element type struct drm_clip_rect boxes[R128_NR_SAREA_CLIPRECTS]; Signed-off-by: Mikko Rapeli --- include/uapi/drm/r128_drm.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/uapi/drm/r128_drm.h b

[RFC PATCH v2 25/27] via_drm.h: hide struct via_file_private in userspace

2014-09-01 Thread Mikko Rapeli
Fixes compiler error since list_head is not exported to userspace headers. Signed-off-by: Mikko Rapeli --- include/uapi/drm/via_drm.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/uapi/drm/via_drm.h b/include/uapi/drm/via_drm.h index 791531e..34ce658 100644 --- a/include/uapi

[RFC PATCH v2 20/27] hdspm.h: include stdint.h in userspace

2014-09-01 Thread Mikko Rapeli
Fixes compilation error: sound/hdspm.h:43:2: error: unknown type name ‘uint32_t’ Signed-off-by: Mikko Rapeli --- include/uapi/sound/hdspm.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/include/uapi/sound/hdspm.h b/include/uapi/sound/hdspm.h index d956c35..f799828 100644

[RFC PATCH v2 03/27] Makefile: propagate verbose options

2014-09-01 Thread Mikko Rapeli
Usefull when debugging the make scripts. Signed-off-by: Mikko Rapeli --- Makefile | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 25b85ab..df0eb14 100644 --- a/Makefile +++ b/Makefile @@ -855,13 +855,13 @@ quiet_cmd_link-vmlinux = LINK

[RFC PATCH v2 14/27] cld.h: include stdint.h in userspace

2014-09-01 Thread Mikko Rapeli
Fixes compilation error: linux/nfsd/cld.h:40:2: error: unknown type name ‘uint16_t’ Signed-off-by: Mikko Rapeli --- include/uapi/linux/nfsd/cld.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/include/uapi/linux/nfsd/cld.h b/include/uapi/linux/nfsd/cld.h index f14a9ab..9f60f9c

[RFC PATCH v2 17/27] scsi_bsg_fc.h: include stdint.h in userspace

2014-09-01 Thread Mikko Rapeli
Fixes compilation error: scsi/scsi_bsg_fc.h:83:2: error: unknown type name ‘uint8_t’ Signed-off-by: Mikko Rapeli --- include/uapi/scsi/scsi_bsg_fc.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/include/uapi/scsi/scsi_bsg_fc.h b/include/uapi/scsi/scsi_bsg_fc.h index 3031b90

[RFC PATCH v2 10/27] vmwgfx_drm.h: include drm/drm.h instead of drm.h in userspace

2014-09-01 Thread Mikko Rapeli
Fixes compilation error: drm/vmwgfx_drm.h:31:17: fatal error: drm.h: No such file or directory Signed-off-by: Mikko Rapeli --- include/uapi/drm/vmwgfx_drm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/uapi/drm/vmwgfx_drm.h b/include/uapi/drm/vmwgfx_drm.h index

[RFC PATCH v2 19/27] scsi_netlink_fc.h: include stdint.h in userspace

2014-09-01 Thread Mikko Rapeli
Fixes compilation error: scsi/scsi_netlink_fc.h:60:2: error: expected specifier-qualifier-list before ‘uint64_t’ Signed-off-by: Mikko Rapeli --- include/uapi/scsi/scsi_netlink_fc.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/uapi/scsi/scsi_netlink_fc.h b/include/uapi

[RFC PATCH v2 11/27] dm-log-userspace.h: include stdint.h in userspace

2014-09-01 Thread Mikko Rapeli
Fixes compilation error: linux/dm-log-userspace.h:416:2: error: unknown type name ‘uint64_t’ Signed-off-by: Mikko Rapeli --- include/uapi/linux/dm-log-userspace.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/uapi/linux/dm-log-userspace.h b/include/uapi/linux/dm-log

[RFC PATCH v2 13/27] ebtables.h: include stdint.h in userspace

2014-09-01 Thread Mikko Rapeli
Fixes compilation error: linux/netfilter_bridge/ebtables.h:38:2: error: unknown type name ‘uint64_t’ Signed-off-by: Mikko Rapeli --- include/uapi/linux/netfilter_bridge/ebtables.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/uapi/linux/netfilter_bridge/ebtables.h b/include

[RFC PATCH v2 18/27] scsi_netlink.h: include stdint.h in userspace

2014-09-01 Thread Mikko Rapeli
Fixes compilation error: scsi/scsi_netlink.h:43:2: error: unknown type name ‘uint8_t’ Signed-off-by: Mikko Rapeli --- include/uapi/scsi/scsi_netlink.h | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/uapi/scsi/scsi_netlink.h b/include/uapi/scsi/scsi_netlink.h

[RFC PATCH v2 15/27] rds.h: include stdint.h in userspace

2014-09-01 Thread Mikko Rapeli
Fixes compilation error: linux/rds.h:96:2: error: unknown type name ‘uint8_t’ Signed-off-by: Mikko Rapeli --- include/uapi/linux/rds.h | 4 1 file changed, 4 insertions(+) diff --git a/include/uapi/linux/rds.h b/include/uapi/linux/rds.h index 9195095..7ff0c70 100644 --- a/include/uapi

[RFC PATCH v2 16/27] sctp.h: include stdint.h in userspace

2014-09-01 Thread Mikko Rapeli
Fixes compilation error: linux/sctp.h:652:2: error: unknown type name ‘uint32_t’ Signed-off-by: Mikko Rapeli --- include/uapi/linux/sctp.h | 4 1 file changed, 4 insertions(+) diff --git a/include/uapi/linux/sctp.h b/include/uapi/linux/sctp.h index 266022a..f68d79a 100644 --- a/include

[RFC PATCH v2 12/27] hsi_char.h: include stdint.h in userspace

2014-09-01 Thread Mikko Rapeli
Fixes compiler error: linux/hsi/hsi_char.h:51:2: error: unknown type name ‘uint32_t’ Signed-off-by: Mikko Rapeli --- include/uapi/linux/hsi/hsi_char.h | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/include/uapi/linux/hsi/hsi_char.h b/include/uapi/linux/hsi

[RFC PATCH v2 27/27] sis_drm.h: hide sis_file_private in userspace

2014-09-01 Thread Mikko Rapeli
Fixes compiler error: drm/sis_drm.h:68:19: error: field ‘obj_list’ has incomplete type struct list_head obj_list; Signed-off-by: Mikko Rapeli --- include/uapi/drm/sis_drm.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/uapi/drm/sis_drm.h b/include/uapi/drm/sis_drm.h index

[RFC PATCH v2 08/27] nouveau_drm.h: include stdint.h in userspace

2014-09-01 Thread Mikko Rapeli
Fixes compilation error: drm/nouveau_drm.h:41:2: error: unknown type name ‘uint32_t’ Signed-off-by: Mikko Rapeli --- include/uapi/drm/nouveau_drm.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/include/uapi/drm/nouveau_drm.h b/include/uapi/drm/nouveau_drm.h index 2a5769f..90b9b4a

[RFC PATCH v2 22/27] gntdev.h: include stdint.h in userspace

2014-09-01 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

[RFC PATCH v2 24/27] via_drm.h: include linux/types.h instead of non-existing via_drmclient.h

2014-09-01 Thread Mikko Rapeli
Fixes compiler error: drm/via_drm.h:36:27: fatal error: via_drmclient.h: No such file or directory Signed-off-by: Mikko Rapeli --- include/uapi/drm/via_drm.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/include/uapi/drm/via_drm.h b/include/uapi/drm/via_drm.h index

[RFC PATCH v2 07/27] exynos_drm.h: include stdint.h in userspace

2014-09-01 Thread Mikko Rapeli
Fixes compilation errors like: drm/exynos_drm.h:30:2: error: unknown type name ‘uint64_t’ Signed-off-by: Mikko Rapeli --- include/uapi/drm/exynos_drm.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/uapi/drm/exynos_drm.h b/include/uapi/drm/exynos_drm.h index d584412..59ee215

[RFC PATCH v2 01/27] Compile test script for exported header files

2014-09-01 Thread Mikko Rapeli
t; 1 drm.h: No such file or directory 1 ‘DLM_RESNAME_MAXLEN’ undeclared here (not in a function) 1 arpa/inet.h: No such file or directory Signed-off-by: Mikko Rapeli --- scripts/headers_compile_test.sh | 84 + 1 file changed, 84 inse

[RFC PATCH v2 00/27] Compile test and fixes for exported header files

2014-09-01 Thread Mikko Rapeli
. Some problems like with via_drm.h seem several years old but have not been fixed thus far: http://marc.info/?l=linux-kbuild=122919682002000=2 Mikko Rapeli (27): Compile test script for exported header files scripts/headers.sh: add verbose option to make calls if defined Makefile: propagate

[RFC PATCH v2 05/27] drm.h: include stdlib.h in userspace

2014-09-01 Thread Mikko Rapeli
Fixes compilation error: drm/drm.h:132:2: error: unknown type name ‘size_t’ Signed-off-by: Mikko Rapeli --- include/uapi/drm/drm.h | 4 1 file changed, 4 insertions(+) diff --git a/include/uapi/drm/drm.h b/include/uapi/drm/drm.h index 9abbeb9..820fd01 100644 --- a/include/uapi/drm/drm.h

[RFC PATCH v2 02/27] scripts/headers.sh: add verbose option to make calls if defined

2014-09-01 Thread Mikko Rapeli
Useful when debugging the scripts. Signed-off-by: Mikko Rapeli --- scripts/headers.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/headers.sh b/scripts/headers.sh index 978b42b..09e8a5c 100755 --- a/scripts/headers.sh +++ b/scripts/headers.sh @@ -7,7 +7,7 @@ set

[RFC PATCH v2 04/27] headers_install.sh: enhance error handling

2014-09-01 Thread Mikko Rapeli
Exit with error if using undefined variables or if any sub command fails with error return value. unidef needs special handling since but this can be done without the trap. Enables exaniming intermediate files if some commands failed. Signed-off-by: Mikko Rapeli --- scripts/headers_install.sh

[RFC PATCH v2 09/27] radeon_drm.h: include stdint.h in userspace

2014-09-01 Thread Mikko Rapeli
Fixes compiler error: drm/radeon_drm.h:794:2: error: unknown type name ‘uint64_t’ Signed-off-by: Mikko Rapeli --- include/uapi/drm/radeon_drm.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/uapi/drm/radeon_drm.h b/include/uapi/drm/radeon_drm.h index aefa2f6..6b12bbb7 100644

[RFC PATCH v2 26/27] savage_drm.h: include

2014-09-01 Thread Mikko Rapeli
Fixes compiler error: drm/savage_drm.h:50:24: error: array type has incomplete element type struct drm_tex_region texList[SAVAGE_NR_TEX_HEAPS][SAVAGE_NR_TEX_REGIONS + Signed-off-by: Mikko Rapeli --- include/uapi/drm/savage_drm.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include

Re: [PATCH 05/45] drm.h: include stdlib.h in userspace

2015-03-21 Thread Mikko Rapeli
On Fri, Mar 20, 2015 at 08:25:40PM +, Emil Velikov wrote: > On 23 February 2015 at 10:35, Mikko Rapeli wrote: > > On Mon, Feb 23, 2015 at 10:26:58AM +, Emil Velikov wrote: > >> On 16/02/15 23:05, Mikko Rapeli wrote: > >> > Fixes compilation error: > &

Re: [PATCH 05/45] drm.h: include stdlib.h in userspace

2015-04-09 Thread Mikko Rapeli
On Thu, Apr 09, 2015 at 05:00:48PM +0100, Emil Velikov wrote: > Hi Mikko > > Pardon for the late response, > > On 21 March 2015 at 12:17, Mikko Rapeli wrote: > > On Fri, Mar 20, 2015 at 08:25:40PM +, Emil Velikov wrote: > >> On 23 February 2015 at 10:35, Mikk

Re: [PATCH 03/98] drm.h: use __kernel_size_t instead of size_t

2015-08-30 Thread Mikko Rapeli
On Wed, Jun 03, 2015 at 06:19:48PM +0100, Emil Velikov wrote: > On 30 May 2015 at 16:37, Mikko Rapeli wrote: > > Fixes userspace compilation error: > > > > drm/drm.h:132:2: error: unknown type name ‘size_t’ > > > > Signed-off-by: Mikko Rapeli > &

Re: [PATCH 10/98] via_drm.h: hide struct via_file_private in userspace

2015-09-02 Thread Mikko Rapeli
On Wed, Jun 03, 2015 at 05:50:22PM +0100, Emil Velikov wrote: > Hi Mikko, > > On 30 May 2015 at 16:38, Mikko Rapeli wrote: > > Fixes compiler error since list_head is not exported to userspace headers. > > > > Signed-off-by: Mikko Rapeli > > --- > > i

Re: [PATCH 94/98] HACK arch/x86/include/uapi/asm/sigcontext32.h: remove _fpx_sw_bytes from union

2015-09-02 Thread Mikko Rapeli
/lkml/2015/5/30/98 -Mikko On Sat, May 30, 2015 at 05:39:26PM +0200, Mikko Rapeli wrote: > I have no idea what I'm doing but this fixes header file compilation in > userspace: > > error: field ‘sw_reserved’ has incomplete type >struct _fpx_sw_bytes sw_reserved; > > Signed

Re: [PATCH] x86/headers: Fix (old) header file dependency bug in uapi/asm/sigcontext32.h

2015-09-04 Thread Mikko Rapeli
On Thu, Sep 03, 2015 at 09:42:32AM +0200, Ingo Molnar wrote: > > * Mikko Rapeli wrote: > > > Hi Ingo, Thomas and Peter, > > > > Do you have any pointers for me how arch/x86/include/uapi/asm/sigcontext32.h > > could be fixed to also compile in userspac

Re: [PATCH] x86/headers: Fix (old) header file dependency bug in uapi/asm/sigcontext32.h

2015-09-04 Thread Mikko Rapeli
On Fri, Sep 04, 2015 at 10:58:31AM +0200, Ingo Molnar wrote: > > * Mikko Rapeli wrote: > > > On Thu, Sep 03, 2015 at 09:42:32AM +0200, Ingo Molnar wrote: > > > > > > * Mikko Rapeli wrote: > > > > > > > Hi Ingo, Thomas and Peter

Re: [PATCH 15/15] x86/headers: Remove

2015-09-05 Thread Mikko Rapeli
On Sat, Sep 05, 2015 at 09:32:43AM +0200, Ingo Molnar wrote: > Now that all type definitions are in the UAPI header, remove the > wrapper. > > Cc: Andy Lutomirski > Cc: Borislav Petkov > Cc: Brian Gerst > Cc: Denys Vlasenko > Cc: H. Peter Anvin > Cc: Linus T

Re: [PATCH 15/15] x86/headers: Remove

2015-09-05 Thread Mikko Rapeli
On Sat, Sep 05, 2015 at 01:59:43PM +0200, Ingo Molnar wrote: > > * Mikko Rapeli wrote: > > > > diff --git a/arch/x86/include/uapi/asm/sigcontext32.h > > > b/arch/x86/include/uapi/asm/sigcontext32.h > > > index a92b0f0dc09e..8b870175befa 100644 > > >

Re: [PATCH 15/15] x86/headers: Remove

2015-09-06 Thread Mikko Rapeli
On Sun, Sep 06, 2015 at 08:41:45AM +0200, Ingo Molnar wrote: > > * Mikko Rapeli wrote: > > > On Sat, Sep 05, 2015 at 01:59:43PM +0200, Ingo Molnar wrote: > > > > > > * Mikko Rapeli wrote: > > > > > > > > diff --git a/arch/x86/include/u

Re: [PATCH 15/15] x86/headers: Remove

2015-09-07 Thread Mikko Rapeli
On Mon, Sep 07, 2015 at 09:37:50AM +0200, Ingo Molnar wrote: > > * Mikko Rapeli wrote: > > > > > +++ b/arch/x86/include/uapi/asm/sigcontext32.h > > > > @@ -3,6 +3,6 @@ > > > > > > > > /* This is a legacy fil

Re: [tip:x86/headers] x86/headers: Remove references on the kernel side

2015-09-08 Thread Mikko Rapeli
o effect." So for 32 bit userspace side Tested-by: Mikko Rapeli -Mikko [1] http://lvc.github.io/abi-compliance-checker/ [2] API/ABI check results https://mcfrisk.kapsi.fi/temp/headers_test_v04_to_headers_test_v04+test_ingo_x86_cleanup/ [3] abi checker still has some issues

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

Re: [PATCH 96/98] HACK include/uapi/linux/coda_psdev.h: fix compilation in userspace

2015-09-10 Thread Mikko Rapeli
On Sun, May 31, 2015 at 07:19:13AM -0400, Jan Harkes wrote: > On Sat, May 30, 2015 at 05:39:28PM +0200, Mikko Rapeli wrote: > > Include linux/coda.h for caddr_t and use unsigned short type directly. > > Userspace headers do not have list_head and wait_queue_head_t so just > >

Re: [PATCH] drm/i915: enable BIOS hang workaround for Lenovo T60 too

2015-06-23 Thread Mikko Rapeli
Hi Imre, On Mon, Jun 22, 2015 at 04:43:50PM +0300, Imre Deak wrote: > > To summarize, since we extended the range of platforms to apply the > workaround in > commit ab3be73fa7b43f4c3648ce29b5fd649ea54d3adb > Author: Imre Deak > Date: Mon Mar 2 13:04:41 2015 +0200 > > drm/i915: gen4: work

Re: [PATCH 05/98] exynos_drm.h: use __u64 from linux/types.h

2015-06-02 Thread Mikko Rapeli
On Sat, May 30, 2015 at 05:46:56PM +0100, Russell King - ARM Linux wrote: > Note that drm/drm.h is all that should need to be included - drm/drm.h > takes care of including linux/types.h when building on Linux platforms. > (note: if your compiler doesn't set __linux__ then you're probably not >

Re: [PATCH 18/98] include/uapi/sound/emu10k1.h: added EMU10K1 version of DECLARE_BITMAP etc macros

2015-06-02 Thread Mikko Rapeli
On Sun, May 31, 2015 at 10:12:07AM +0200, Takashi Iwai wrote: > At Sun, 31 May 2015 09:18:57 +0200, > Takashi Iwai wrote: > > > > At Sat, 30 May 2015 17:38:10 +0200, > > Mikko Rapeli wrote: > > > > > > Fixes userspace compilation error: > > &

Re: [PATCH 29/98] scsi_netlink_fc.h: include stdint.h in userspace

2015-06-02 Thread Mikko Rapeli
On Sat, May 30, 2015 at 10:17:30PM +0200, Frans Klaver wrote: > On Sat, May 30, 2015 at 05:38:21PM +0200, Mikko Rapeli wrote: > > Fixes compilation error: > > > > scsi/scsi_netlink_fc.h:60:2: error: expected specifier-qualifier-list > > before ‘uint64_t’ > >

Re: [PATCH 30/98] hdspm.h: use __u8, __u32 and __u64 from linux/types.h

2015-06-02 Thread Mikko Rapeli
On Sun, May 31, 2015 at 09:11:54AM +0200, Takashi Iwai wrote: > At Sat, 30 May 2015 17:38:22 +0200, > Mikko Rapeli wrote: > > > > Fixes userspace compilation errors like: > > > > sound/hdspm.h:43:2: error: unknown type name ‘uint32_t’ > > Hmm, how do you

Re: [PATCH 43/98] include/uapi/linux/hdlc/ioctl.h: include linux/if.h

2015-06-02 Thread Mikko Rapeli
On Sat, May 30, 2015 at 10:22:53PM +0200, Frans Klaver wrote: > On Sat, May 30, 2015 at 05:38:35PM +0200, Mikko Rapeli wrote: > > Fixes userspace compiler error: > > > > error: ‘IFNAMSIZ’ undeclared here (not in a function) > > > > Signed-off-by: Mikko Rapeli

Re: [PATCH 67/98] include/uapi/linux/netfilter/ipset/ip_set_bitmap.h: include linux/netfilter/ipset/ip_set.h

2015-06-02 Thread Mikko Rapeli
On Sun, May 31, 2015 at 08:15:48PM +0200, Jozsef Kadlecsik wrote: > On Sat, 30 May 2015, Mikko Rapeli wrote: > > > Fixes userspace compilation error: > > > > error: ?IPSET_ERR_TYPE_SPECIFIC? undeclared here (not in a function) > > IPSET_ERR_BITMAP_RANGE = IPSE

[PATCH v03 00/98] Userspace compile test and fixes for exported uapi header files

2015-05-30 Thread Mikko Rapeli
to get some feedback and suggestions how to properly fix them. Here's how to run the userspace compile tests: $ make headers_install && cd usr/include && \ ../../scripts/headers_compile_test.sh Additionally tested an allyesconfig compilation on 32bit x86. Mikko Rapeli (98): he

[PATCH 02/98] scripts/headers_compile_test.sh: compile test script for exported headers

2015-05-30 Thread Mikko Rapeli
’, ‘asm’ or ‘__attribute__’ before ‘snd_seq_client_type_t’ 1 #error "patchkey.h included directly" 1 ‘DLM_RESNAME_MAXLEN’ undeclared here (not in a function) Signed-off-by: Mikko Rapeli --- scripts/headers_compile_test.sh | 143 1 file change

[PATCH 13/98] drm/i810_drm.h: include drm/drm.h

2015-05-30 Thread Mikko Rapeli
Fixes userspace compilation error: error: array type has incomplete element type struct drm_clip_rect boxes[I810_NR_SAREA_CLIPRECTS]; Signed-off-by: Mikko Rapeli --- include/uapi/drm/i810_drm.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/uapi/drm/i810_drm.h b/include/uapi/drm

[PATCH 01/98] headers_install.sh: enhance error handling

2015-05-30 Thread Mikko Rapeli
Exit with error if using undefined variables or if any sub command fails with error return value. unidef needs special handling since but this can be done without the trap. Enables exaniming intermediate files if some commands failed. Signed-off-by: Mikko Rapeli --- scripts/headers_install.sh

[PATCH 14/98] include/uapi/drm/vmwgfx_drm.h: use __s32, __u32 and __u64 from linux/types.h

2015-05-30 Thread Mikko Rapeli
Fixes userspace compilation errors like: error: unknown type name ‘uint32_t’ Signed-off-by: Mikko Rapeli --- include/uapi/drm/vmwgfx_drm.h | 260 +- 1 file changed, 130 insertions(+), 130 deletions(-) diff --git a/include/uapi/drm/vmwgfx_drm.h b/include

[PATCH 05/98] exynos_drm.h: use __u64 from linux/types.h

2015-05-30 Thread Mikko Rapeli
Fixes userspace compilation error: drm/exynos_drm.h:30:2: error: unknown type name ‘uint64_t’ Signed-off-by: Mikko Rapeli --- include/uapi/drm/exynos_drm.h | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/include/uapi/drm/exynos_drm.h b/include/uapi/drm/exynos_drm.h

[PATCH 12/98] sis_drm.h: hide sis_file_private in userspace

2015-05-30 Thread Mikko Rapeli
Fixes compiler error: drm/sis_drm.h:68:19: error: field ‘obj_list’ has incomplete type struct list_head obj_list; Signed-off-by: Mikko Rapeli --- include/uapi/drm/sis_drm.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/uapi/drm/sis_drm.h b/include/uapi/drm/sis_drm.h index

[PATCH 26/98] scsi_bsg_fc.h: use __u8, __u32 and __u64 from linux/types.h

2015-05-30 Thread Mikko Rapeli
Fixes userspace compilation errors like: scsi/scsi_bsg_fc.h:83:2: error: unknown type name ‘uint8_t’ Signed-off-by: Mikko Rapeli --- include/uapi/scsi/scsi_bsg_fc.h | 54 + 1 file changed, 28 insertions(+), 26 deletions(-) diff --git a/include/uapi/scsi

[PATCH 24/98] rds.h: use __u8, __u16, __s16, __u32 and __s64 from linux/types.h

2015-05-30 Thread Mikko Rapeli
Fixes userspace compilation errors like: linux/rds.h:96:2: error: unknown type name ‘uint8_t’ Signed-off-by: Mikko Rapeli --- include/uapi/linux/rds.h | 102 +++ 1 file changed, 51 insertions(+), 51 deletions(-) diff --git a/include/uapi/linux/rds.h

[PATCH 30/98] hdspm.h: use __u8, __u32 and __u64 from linux/types.h

2015-05-30 Thread Mikko Rapeli
Fixes userspace compilation errors like: sound/hdspm.h:43:2: error: unknown type name ‘uint32_t’ Signed-off-by: Mikko Rapeli --- include/uapi/sound/hdspm.h | 40 ++-- 1 file changed, 18 insertions(+), 22 deletions(-) diff --git a/include/uapi/sound/hdspm.h

[PATCH 22/98] ebtables.h: use __u64 from linux/types.h

2015-05-30 Thread Mikko Rapeli
Fixes userspace compilation error: linux/netfilter_bridge/ebtables.h:38:2: error: unknown type name ‘uint64_t’ Signed-off-by: Mikko Rapeli --- include/uapi/linux/netfilter_bridge/ebtables.h | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/uapi/linux

[PATCH 42/98] include/uapi/linux/if_tunnel.h: include linux/if.h, linux/ip.h and linux/in6.h

2015-05-30 Thread Mikko Rapeli
Fixes userspace compilation errors like: error: field ‘iph’ has incomplete type error: field ‘prefix’ has incomplete type Signed-off-by: Mikko Rapeli --- include/uapi/linux/if_tunnel.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/uapi/linux/if_tunnel.h b/include/uapi/linux

<    1   2   3   4   5   6   7   8   9   10   >