[PATCH 17/45] ebtables.h: include stdint.h in userspace

2015-02-16 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

[PATCH 27/45] include/uapi/linux/sysctl.h: include stdlib.h in userspace

2015-02-16 Thread Mikko Rapeli
Fixes userspace compilation error: error: unknown type name ‘size_t’ Signed-off-by: Mikko Rapeli --- include/uapi/linux/sysctl.h | 4 1 file changed, 4 insertions(+) diff --git a/include/uapi/linux/sysctl.h b/include/uapi/linux/sysctl.h index 43aaba1..b7b344f 100644 --- a/include/uapi

[PATCH 14/45] sis_drm.h: hide sis_file_private in userspace

2015-02-16 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 29/45] include/uapi/asm-generic/msgbuf.h: include asm/ipcbuf.h

2015-02-16 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 --- include/uapi/asm-generic/msgbuf.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/uapi/asm-generic/msgbuf.h b/include/uapi/asm-generic

[PATCH 43/45] include/uapi/linux/netfilter_bridge.h: include if.h

2015-02-16 Thread Mikko Rapeli
Fixes userspace compilation errors like: error: field ‘in’ has incomplete type struct in_addr in; Signed-off-by: Mikko Rapeli --- include/uapi/linux/netfilter_bridge.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/uapi/linux/netfilter_bridge.h b/include/uapi/linux

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

2015-02-16 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 --- include/uapi/asm-generic/ucontext.h | 3 +++ 1 file changed, 3 insertions

[PATCH 40/45] include/uapi/sound/emu10k1.h: include sound/asound.h

2015-02-16 Thread Mikko Rapeli
Fixes userspace compilation errors like: error: field ‘id’ has incomplete type struct snd_ctl_elem_id id; /* full control ID definition */ Signed-off-by: Mikko Rapeli --- include/uapi/sound/emu10k1.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/uapi/sound

[PATCH 31/45] asm-generic/sembuf.h: include asm/posix_types.h and asm/ipcbuf.h

2015-02-16 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 --- include/uapi/asm-generic/sembuf.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/uapi/asm

[PATCH 38/45] include/uapi/linux/agpgart.h: include stdlib.h in userspace

2015-02-16 Thread Mikko Rapeli
Fixes userspace compiler error: error: unknown type name ‘size_t’ Signed-off-by: Mikko Rapeli --- include/uapi/linux/agpgart.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/uapi/linux/agpgart.h b/include/uapi/linux/agpgart.h index 4e828cf..f525104 100644 --- a/include/uapi/linux

[PATCH 35/45] include/uapi/sound/asound.h: include stdlib.h in userspace

2015-02-16 Thread Mikko Rapeli
Fixes compiler errors like: error: field ‘trigger_tstamp’ has incomplete type error: invalid application of ‘sizeof’ to incomplete t ype ‘struct timespec’ Signed-off-by: Mikko Rapeli --- include/uapi/sound/asound.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/uapi/sound

[PATCH 33/45] include/uapi/asm-generic/signal.h: include stdlib.h in userspace

2015-02-16 Thread Mikko Rapeli
Fixes compiler warning: error: unknown type name ‘size_t’ Signed-off-by: Mikko Rapeli --- include/uapi/asm-generic/signal.h | 4 1 file changed, 4 insertions(+) diff --git a/include/uapi/asm-generic/signal.h b/include/uapi/asm-generic/signal.h index 9df61f1..8a341a2 100644 --- a/include

[PATCH 44/45] nf_conntrack_tuple_common.h: include linux/types.h and linux/netfilter.h

2015-02-16 Thread Mikko Rapeli
Fixes userspace compilation errors like: error: unknown type name ‘__be16’ Signed-off-by: Mikko Rapeli --- include/uapi/linux/netfilter/nf_conntrack_tuple_common.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/uapi/linux/netfilter/nf_conntrack_tuple_common.h b/include/uapi

[PATCH 37/45] include/uapi/linux/socket.h: include sys/socket.h in userspace

2015-02-16 Thread Mikko Rapeli
This libc header has sockaddr definition for userspace. Fixes compilation errors like: error: field ‘ifru_addr’ has incomplete type struct sockaddr ifru_addr; Signed-off-by: Mikko Rapeli --- include/uapi/linux/socket.h | 4 1 file changed, 4 insertions(+) diff --git a/include/uapi/linux

[PATCH 42/45] include/uapi/linux/rds.h: include linux/socket.h and linux/types.h always

2015-02-16 Thread Mikko Rapeli
Fixes compilation errors in userspace like: error: unknown type name ‘__be32’ Signed-off-by: Mikko Rapeli --- include/uapi/linux/rds.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/uapi/linux/rds.h b/include/uapi/linux/rds.h index 7ff0c70..47b1ede 100644

[PATCH 30/45] include/uapi/asm-generic/shmbuf.h: include fixes

2015-02-16 Thread Mikko Rapeli
Fixes userspace compilation errors like: error: field ‘shm_perm’ has incomplete type struct ipc64_perm shm_perm; /* operation perms */ error: unknown type name ‘size_t’ error: unknown type name ‘__kernel_time_t’ Signed-off-by: Mikko Rapeli --- include/uapi/asm-generic/shmbuf.h | 6 ++ 1

[PATCH 41/45] include/uapi/sound/emu10k1.h: hide gpr_valid, tram_valid and code_valid in userspace

2015-02-16 Thread Mikko Rapeli
The DECLARE_BITMAP macro is not available in userspace headers. Fixes userspace compile error: error: expected specifier-qualifier-list before ‘DECLARE_BITMAP’ Signed-off-by: Mikko Rapeli --- include/uapi/sound/emu10k1.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/include/uapi

[PATCH 34/45] include/uapi/asm-generic/signal.h: hide sigset_t definition in userspace

2015-02-16 Thread Mikko Rapeli
It is already defined by libc headers in /usr/include/i386-linux-gnu/sys/select.h Signed-off-by: Mikko Rapeli --- include/uapi/asm-generic/signal.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/uapi/asm-generic/signal.h b/include/uapi/asm-generic/signal.h index 8a341a2

[PATCH 36/45] include/uapi/linux/netfilter.h: include in.h and in6.h

2015-02-16 Thread Mikko Rapeli
Fixes userspace compile errors like: error: field ‘in’ has incomplete type error: field ‘in6’ has incomplete type Signed-off-by: Mikko Rapeli --- include/uapi/linux/netfilter.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/uapi/linux/netfilter.h b/include/uapi

[PATCH 23/45] scsi_netlink_fc.h: include stdint.h in userspace

2015-02-16 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

[PATCH 22/45] scsi_netlink.h: include stdint.h in userspace

2015-02-16 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

[PATCH 32/45] drm/i810_drm.h: include drm/drm.h

2015-02-16 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 25/45] gntalloc.h: include stdint.h in userspace

2015-02-16 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

[PATCH 24/45] hdspm.h: include stdint.h in userspace

2015-02-16 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

[PATCH 28/45] include/uapi/asm-generic/ipcbuf.h: include linux/posix_types.h

2015-02-16 Thread Mikko Rapeli
Fixes userspace compilation error: error: unknown type name ‘__kernel_key_t’ Signed-off-by: Mikko Rapeli --- include/uapi/asm-generic/ipcbuf.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/uapi/asm-generic/ipcbuf.h b/include/uapi/asm-generic/ipcbuf.h index 3dbcc1e..909f825

[PATCH 39/45] include/uapi/sound/asequencer.h: include sound/asound.h

2015-02-16 Thread Mikko Rapeli
Fixes userspace compilation error: error: unknown type name ‘snd_seq_client_type_t’ snd_seq_client_type_t type; /* client type */ Signed-off-by: Mikko Rapeli --- include/uapi/sound/asequencer.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/uapi/sound/asequencer.h b/include/uapi

[PATCH 20/45] sctp.h: include stdint.h in userspace

2015-02-16 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 ce70fe6..9fd31cf 100644 --- a/include

[PATCH 19/45] rds.h: include stdint.h in userspace

2015-02-16 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

[PATCH 21/45] scsi_bsg_fc.h: include stdint.h in userspace

2015-02-16 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

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

2015-02-16 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

[PATCH 15/45] dm-log-userspace.h: include stdint.h in userspace

2015-02-16 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

[PATCH 16/45] hsi_char.h: include stdint.h in userspace

2015-02-16 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

[PATCH 18/45] cld.h: include stdint.h in userspace

2015-02-16 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

[PATCH 11/45] via_drm.h: include linux/types.h instead of non-existing via_drmclient.h

2015-02-16 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

[PATCH 10/45] r128_drm.h: include drm/drm.h

2015-02-16 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

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

2015-02-16 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 a0db2d4a..c55dfdf 100644

[PATCH 08/45] nouveau_drm.h: include stdint.h in userspace

2015-02-16 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 0d7608d..4baf959

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

2015-02-16 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 95ece06..aa62fd8 100755 --- a/scripts/headers.sh +++ b/scripts/headers.sh @@ -7,7 +7,7 @@ set

Re: [PATCH 15/45] dm-log-userspace.h: include stdint.h in userspace

2015-02-16 Thread Mikko Rapeli
On Mon, Feb 16, 2015 at 06:32:54PM -0500, Mike Snitzer wrote: > On Mon, Feb 16 2015 at 6:05pm -0500, > Mikko Rapeli wrote: > > > Fixes compilation error: > > > > linux/dm-log-userspace.h:416:2: error: unknown type name ‘uint64_t’ > > What userspace code are y

Re: [PATCH 20/45] sctp.h: include stdint.h in userspace

2015-02-18 Thread Mikko Rapeli
On Wed, Feb 18, 2015 at 04:48:04PM +0100, Daniel Borkmann wrote: > On 02/17/2015 12:05 AM, Mikko Rapeli wrote: > >Fixes compilation error: > > > >linux/sctp.h:652:2: error: unknown type name ‘uint32_t’ > > > >Signed-off-by: Mikko Rapeli > > I have no

Re: [PATCH RFC v02 00/45] Compile test and fixes for exported header files

2015-02-18 Thread Mikko Rapeli
Thanks for all the reviews! I'm going through the review feedback and will try to address all findings and find correct ways to fix things but this will take some time from my side. -Mikko -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to

Re: [PATCH 01/45] Makefile: propagate verbose options

2015-03-10 Thread Mikko Rapeli
On Tue, Feb 17, 2015 at 04:18:12PM +0900, Masahiro Yamada wrote: > Hi Mikko, > > On Tue, 17 Feb 2015 00:05:04 +0100 > Mikko Rapeli wrote: > > > Usefull when debugging the make scripts. > > > > Signed-off-by: Mikko Rapeli > > --- > > Makefile |

Re: [PATCH 02/45] scripts/headers.sh: add verbose option to make calls if defined

2015-03-10 Thread Mikko Rapeli
On Tue, Feb 17, 2015 at 04:18:59PM +0900, Masahiro Yamada wrote: > > On Tue, 17 Feb 2015 00:05:05 +0100 > Mikko Rapeli wrote: > > > Useful when debugging the scripts. > > > > Signed-off-by: Mikko Rapeli > > --- > > scripts/headers.sh | 2 +- >

Re: [PATCH 03/45] headers_install.sh: enhance error handling

2015-03-10 Thread Mikko Rapeli
On Tue, Feb 17, 2015 at 02:17:51PM +0100, Michal Marek wrote: > On 2015-02-17 00:05, Mikko Rapeli wrote: > > 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 with

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 > > --- > >

Re: [PATCH 15/45] dm-log-userspace.h: include stdint.h in userspace

2015-03-10 Thread Mikko Rapeli
On Tue, Feb 17, 2015 at 02:55:49PM +0100, Arnd Bergmann wrote: > On Tuesday 17 February 2015 13:38:06 Alasdair G Kergon wrote: > > On Tue, Feb 17, 2015 at 10:08:56AM +0100, Arnd Bergmann wrote: > > > The normal way to do this in kernel headers is to use linux/types.h > > > but change the data

Re: [PATCH 33/45] include/uapi/asm-generic/signal.h: include stdlib.h in userspace

2015-03-10 Thread Mikko Rapeli
On Tue, Feb 17, 2015 at 10:44:48AM +0100, Arnd Bergmann wrote: > On Tuesday 17 February 2015 00:05:36 Mikko Rapeli wrote: > > Fixes compiler warning: > > error: unknown type name ‘size_t’ > > > > Signed-off-by: Mikko Rapeli > > --- > > include/uapi/as

Re: [PATCH 34/45] include/uapi/asm-generic/signal.h: hide sigset_t definition in userspace

2015-03-10 Thread Mikko Rapeli
On Tue, Feb 17, 2015 at 10:16:09AM +0100, Arnd Bergmann wrote: > On Tuesday 17 February 2015 00:05:37 Mikko Rapeli wrote: > > +#ifdef __KERNEL__ > > +/* already defined in userspace via stdlib.h */ > > typedef struct { > > unsigned long sig[_NSIG_WORDS]; &

Re: [PATCH 24/45] hdspm.h: include stdint.h in userspace

2015-03-10 Thread Mikko Rapeli
On Tue, Feb 17, 2015 at 07:46:02AM +0100, Takashi Iwai wrote: > At Tue, 17 Feb 2015 00:05:27 +0100, > Mikko Rapeli wrote: > > > > Fixes compilation error: > > > > sound/hdspm.h:43:2: error: unknown type name ‘uint32_t’ > > > > Signed-off-by: Mikko Rap

Re: [PATCH 37/45] include/uapi/linux/socket.h: include sys/socket.h in userspace

2015-03-10 Thread Mikko Rapeli
On Tue, Feb 17, 2015 at 10:14:10AM +0100, Arnd Bergmann wrote: > On Tuesday 17 February 2015 00:05:40 Mikko Rapeli wrote: > > This libc header has sockaddr definition for userspace. > > Fixes compilation errors like: > > error: field ‘ifru_addr’ has incomplete type > >

Re: [PATCH 37/45] include/uapi/linux/socket.h: include sys/socket.h in userspace

2015-03-10 Thread Mikko Rapeli
On Wed, Mar 11, 2015 at 02:38:15AM +0200, Mikko Rapeli wrote: > On Tue, Feb 17, 2015 at 10:14:10AM +0100, Arnd Bergmann wrote: > > On Tuesday 17 February 2015 00:05:40 Mikko Rapeli wrote: > > > This libc header has sockaddr definition for userspace. > > > Fixes compilati

Re: [PATCH 41/45] include/uapi/sound/emu10k1.h: hide gpr_valid, tram_valid and code_valid in userspace

2015-03-10 Thread Mikko Rapeli
On Tue, Feb 17, 2015 at 07:27:38AM +0100, Takashi Iwai wrote: > At Tue, 17 Feb 2015 00:05:44 +0100, > Mikko Rapeli wrote: > > > > The DECLARE_BITMAP macro is not available in userspace headers. > > Fixes userspace compile error: > > error: expected specifier-qualifi

Re: [PATCH 43/45] include/uapi/linux/netfilter_bridge.h: include if.h

2015-03-10 Thread Mikko Rapeli
On Tue, Feb 17, 2015 at 01:02:50AM +0100, Jan Engelhardt wrote: > On Tuesday 2015-02-17 00:05, Mikko Rapeli wrote: > > >Fixes userspace compilation errors like: > > > >error: field ‘in’ has incomplete type > >struct in_addr in; > > > >+#include &g

Re: [PATCH 45/45] include/uapi/asm-generic/ucontext.h: include signal.h and sigcontext.h

2015-03-10 Thread Mikko Rapeli
On Tue, Feb 17, 2015 at 10:10:42AM +0100, Arnd Bergmann wrote: > On Tuesday 17 February 2015 00:05:48 Mikko Rapeli wrote: > > #ifndef __ASM_GENERIC_UCONTEXT_H > > #define __ASM_GENERIC_UCONTEXT_H > > > > +#include > > +#include > > + > > stru

Re: [PATCH 03/45] headers_install.sh: enhance error handling

2015-03-11 Thread Mikko Rapeli
On Wed, Mar 11, 2015 at 11:16:11AM +0100, Michal Marek wrote: > On 2015-03-10 23:44, Mikko Rapeli wrote: > > On Tue, Feb 17, 2015 at 02:17:51PM +0100, Michal Marek wrote: > >> On 2015-02-17 00:05, Mikko Rapeli wrote: > >>> Exit with error if using undefined variabl

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

2015-02-23 Thread Mikko Rapeli
On Mon, Feb 23, 2015 at 10:26:58AM +, Emil Velikov wrote: > On 16/02/15 23:05, Mikko Rapeli wrote: > > Fixes compilation error: > > > > drm/drm.h:132:2: error: unknown type name ‘size_t’ > > > Hi Mikko, > > Can you let us know how you're getting thes

Re: [PATCH v05 69/72] uapi rose.h: glibc netrose/rose.h header file compatibility fixes

2016-08-30 Thread Mikko Rapeli
On Mon, Aug 29, 2016 at 12:34:25PM -0700, David Ranch wrote: > Hello Mikko, > > Somewhat related, the ax25.h file from libax25-devel also has conflicts with > the Glibc's ax.25.h. This creates trouble so if we could get a fix for > that, that would be appreciated as well though it might be a

Re: [PATCH] uapi glibc compat: fix build if libc defines IFF_ECHO

2017-01-21 Thread Mikko Rapeli
> Activate __UAPI_DEF_IF_NET_DEVICE_FLAGS_LOWER_UP_DORMANT_ECHO only when > it is needed. This should also make this work in case glibc will add > these defines. > > Signed-off-by: Hauke Mehrtens Looks good. Reviewed-by: Mikko Rapeli > --- > include/uapi/linux/libc-compat.h | 2 ++ > 1 file chan

Re: [PATCH 3/4] uapi glibc compat: Do not check for __USE_MISC

2017-03-16 Thread Mikko Rapeli
On Thu, Mar 16, 2017 at 07:59:12AM +, David Woodhouse wrote: > On Sun, 2017-03-12 at 23:00 +0100, Hauke Mehrtens wrote: > > __USE_MISC is glibc specific and not available in musl libc. Only do > > this check when glibc is used. This fixes a problem with musl libc. > > ... > > -/* Coordinate

Re: [PATCH v05 60/72] arch/arm/include/uapi/asm/signal.h: use __kernel_size_t instead of size_t

2016-11-16 Thread Mikko Rapeli
On Wed, Aug 24, 2016 at 05:02:56PM +0200, Arnd Bergmann wrote: > On Monday, August 22, 2016 8:33:17 PM CEST Mikko Rapeli wrote: > > diff --git a/arch/arm/include/uapi/asm/signal.h > > b/arch/arm/include/uapi/asm/signal.h > > index 33073bd..859f2de 100644 > > ---

Re: [PATCH v05 69/72] uapi rose.h: glibc netrose/rose.h header file compatibility fixes

2016-11-16 Thread Mikko Rapeli
Hi, On Mon, Aug 29, 2016 at 12:34:25PM -0700, David Ranch wrote: > Hello Mikko, > > Somewhat related, the ax25.h file from libax25-devel also has conflicts with > the Glibc's ax.25.h. This creates trouble so if we could get a fix for > that, that would be appreciated as well though it might be

Re: [PATCH v05 14/72] include/uapi/asm-generic/ipcbuf.h: include linux/posix_types.h

2016-11-15 Thread Mikko Rapeli
On Wed, Aug 24, 2016 at 05:36:22PM +0200, Arnd Bergmann wrote: > On Monday, August 22, 2016 8:32:31 PM CEST Mikko Rapeli wrote: > > Fixes userspace compilation error: > > > > error: unknown type name ‘__kernel_key_t’ > > > > Signed-off-by: Mikko Rapeli

Re: [PATCH v05 27/72] linux/if.h linux/hdlc/ioctl.h: move IFNAMSIZ definition to hdlc/ioctl.h

2016-11-15 Thread Mikko Rapeli
;>> On Tue, Aug 23, 2016 at 1:30 AM, David Miller wrote: > >>>> From: Mikko Rapeli > >>>> Date: Mon, 22 Aug 2016 20:32:44 +0200 > >>>> > >>>>> Fixes userspace compiler error: > >>>>> > >>>>

Re: [dm-devel] [PATCH v05 04/72] dm-log-userspace.h: use __u32, __s32 and __u64 from linux/types.h

2016-08-25 Thread Mikko Rapeli
On Thu, Aug 25, 2016 at 04:24:11AM +, Bart Van Assche wrote: > On 08/23/16 13:42, Mikko Rapeli wrote: > > On Tue, Aug 23, 2016 at 02:28:19PM +, Bart Van Assche wrote: > >> On 08/23/16 06:57, Bart Van Assche wrote: > >>> On 08/22/16 11:32, Mikko Rap

Re: [PATCH v05 69/72] uapi rose.h: glibc netrose/rose.h header file compatibility fixes

2016-08-28 Thread Mikko Rapeli
On Fri, Aug 26, 2016 at 05:38:00PM +0200, walter harms wrote: > perhaps this not tested snipped would make sure that > you have included linux/rose.h ? > > #ifndef ROSE_KERNEL_H > #include > #endif > > #include Sorry, I did not quite get this. has conflicting definitions with glibc . The

[PATCH v06] uapi dm-log-userspace.h: use __u32, __s32, __u64 and __s64 from linux/types.h

2016-08-28 Thread Mikko Rapeli
Fixes userspace compilation errors like: linux/dm-log-userspace.h:416:2: error: unknown type name ‘uint64_t’ Signed-off-by: Mikko Rapeli Cc: Bart Van Assche --- include/uapi/linux/dm-log-userspace.h | 53 ++- 1 file changed, 27 insertions(+), 26 deletions

Re: [PATCH v05 06/72] include/uapi/linux/hsi/cs-protocol.h: include linux/time.h

2016-08-28 Thread Mikko Rapeli
On Mon, Aug 22, 2016 at 10:52:20PM +0200, Sebastian Reichel wrote: > Hi, > > On Mon, Aug 22, 2016 at 08:32:23PM +0200, Mikko Rapeli wrote: > > Fixes userspace compilation errors due to missing timespec definition. > > > > Signed-off-by: Mikko Rapeli > > -

Re: [RFC] Using C99 stdint vs kernel __uX types in kernel drmUAPI (was Re: [PATCH 1/2] Revert "include/uapi/drm/amdgpu_drm.h: use __u32 and __u64 from ")

2016-08-22 Thread Mikko Rapeli
On Mon, Aug 22, 2016 at 09:48:10AM +0100, Emil Velikov wrote: > On 20 August 2016 at 23:31, Rob Clark wrote: > > On Sat, Aug 20, 2016 at 1:58 PM, Mikko Rapeli wrote: > >> Cc'ing lkml too. > >> > >> On Fri, Aug 19, 2016 at 11:54:21PM +0100, Emil Veli

[PATCH v05 08/72] rds.h: use __u8, __u16, __s16, __u32 and __s64 from linux/types.h

2016-08-22 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 v05 01/72] headers_install.sh: enhance error handling

2016-08-22 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 examining intermediate files if some commands failed. Signed-off-by: Mikko Rapeli --- scripts/headers_install.sh

[PATCH v05 03/72] headers_compile_test.sh: add GNU libc compatibility test

2016-08-22 Thread Mikko Rapeli
l header compile test. libc and kernel header compatibility test statistics: 39 files failed libc before kernel include test. 745 files passed libc before kernel include test. Signed-off-by: Mikko Rapeli --- scripts/headers_compile_test.sh | 329 ++-- 1 f

[PATCH v05 11/72] scsi_netlink.h: use __u8, __u16 and __u64 from linux/types.h

2016-08-22 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 --- include/uapi/scsi/scsi_netlink.h | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/include/uapi/scsi/scsi_netlink.h b

[PATCH v05 16/72] include/uapi/asm-generic/shmbuf.h: include fixes

2016-08-22 Thread Mikko Rapeli
’ Signed-off-by: Mikko Rapeli --- include/uapi/asm-generic/shmbuf.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/uapi/asm-generic/shmbuf.h b/include/uapi/asm-generic/shmbuf.h index 7e9fb2f..ae867ad 100644 --- a/include/uapi/asm-generic/shmbuf.h +++ b/include/uapi

[PATCH v05 12/72] scsi_netlink_fc.h: use __u16, __u32 and __u64 from linux/types.h

2016-08-22 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 --- include/uapi/scsi/scsi_netlink_fc.h | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/include

[PATCH v05 10/72] scsi_bsg_fc.h: use __u8, __u32 and __u64 from linux/types.h

2016-08-22 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 v05 14/72] include/uapi/asm-generic/ipcbuf.h: include linux/posix_types.h

2016-08-22 Thread Mikko Rapeli
Fixes userspace compilation error: error: unknown type name ‘__kernel_key_t’ Signed-off-by: Mikko Rapeli --- include/uapi/asm-generic/ipcbuf.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/uapi/asm-generic/ipcbuf.h b/include/uapi/asm-generic/ipcbuf.h index 3dbcc1e..909f825

[PATCH v05 15/72] include/uapi/asm-generic/msgbuf.h: include asm/ipcbuf.h

2016-08-22 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 --- include/uapi/asm-generic/msgbuf.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/uapi/asm-generic/msgbuf.h b/include/uapi/asm-generic

[PATCH v05 07/72] cld.h: use __u8, __u16, __s16, __u32 and __s64 from linux/types.h

2016-08-22 Thread Mikko Rapeli
Fixes userspace compilation errors like: linux/nfsd/cld.h:40:2: error: unknown type name ‘uint16_t’ Signed-off-by: Mikko Rapeli --- include/uapi/linux/nfsd/cld.h | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/include/uapi/linux/nfsd/cld.h b/include/uapi

[PATCH v05 09/72] sctp.h: use __u8 and __u32 from linux/types.h

2016-08-22 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 --- include/uapi/linux/sctp.h | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/uapi/linux/sctp.h b/include

[PATCH v05 04/72] dm-log-userspace.h: use __u32, __s32 and __u64 from linux/types.h

2016-08-22 Thread Mikko Rapeli
Fixes userspace compilation errors like: 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 | 43 ++- 1 file changed, 22 insertions(+), 21 deletions(-) diff --git a/include

[PATCH v05 42/72] include/uapi/linux/scc.h: include linux/sockios.h

2016-08-22 Thread Mikko Rapeli
Fixes userspace compilation error: error: ‘SIOCDEVPRIVATE’ undeclared here (not in a function) SIOCSCCRESERVED = SIOCDEVPRIVATE Signed-off-by: Mikko Rapeli --- include/uapi/linux/scc.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/uapi/linux/scc.h b/include/uapi/linux/scc.h

[PATCH v05 46/72] include/uapi/linux/patchkey.h: change #error to #warning if file included directly

2016-08-22 Thread Mikko Rapeli
Would be nice to be able to compile all userspace header files also alone. Signed-off-by: Mikko Rapeli --- include/uapi/linux/patchkey.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/uapi/linux/patchkey.h b/include/uapi/linux/patchkey.h index 1bda0e5..cee195d

[PATCH v05 49/72] arch/x86/include/uapi/asm/sembuf.h: include linux/types.h and linux/ipc.h

2016-08-22 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 --- arch/x86/include/uapi/asm

[PATCH v05 47/72] include/uapi/linux/coda.h: use __kernel_pid_t and add u_short etc definitions for userspace

2016-08-22 Thread Mikko Rapeli
Fixes userspace compilation errors about unknown pid_t, u_short etc types. Signed-off-by: Mikko Rapeli --- include/uapi/linux/coda.h | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/include/uapi/linux/coda.h b/include/uapi/linux/coda.h index 695fade..fab3bd0

[PATCH v05 44/72] include/uapi/linux/kexec.h: use __kernel_size_t instead of size_t

2016-08-22 Thread Mikko Rapeli
Fixes userspace compilation error: error: unknown type name ‘size_t’ size_t bufsz; Signed-off-by: Mikko Rapeli --- include/uapi/linux/kexec.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/uapi/linux/kexec.h b/include/uapi/linux/kexec.h index aae5ebf..f964d83

[PATCH v05 45/72] include/uapi/linux/reiserfs_xattr.h: use __kernel_size_t instead of size_t

2016-08-22 Thread Mikko Rapeli
Fixes userspace compilation error: error: unknown type name ‘size_t’ size_t length; Signed-off-by: Mikko Rapeli --- include/uapi/linux/reiserfs_xattr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/uapi/linux/reiserfs_xattr.h b/include/uapi/linux

[PATCH v05 48/72] include/uapi/linux/android/binder.h: use __kernel_pid_t and __kernel_uid_t

2016-08-22 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 --- include/uapi/linux/android/binder.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include

[PATCH v05 43/72] include/uapi/linux/btrfs.h: define NULL

2016-08-22 Thread Mikko Rapeli
Copied the NULL definition from include/linux/stddef.h which does not have it in userspace. Fixes userspace compilation error: error: ‘NULL’ undeclared (first use in this function) return NULL; Signed-off-by: Mikko Rapeli --- include/uapi/linux/btrfs.h | 6 ++ 1 file changed, 6

[PATCH v05 13/72] include/uapi/linux/sysctl.h: use __kernel_size_t instead of size_t

2016-08-22 Thread Mikko Rapeli
Fixes userspace compilation error: error: unknown type name ‘size_t’ Signed-off-by: Mikko Rapeli --- 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/sysctl.h index d2b1215..52e9795 100644

[PATCH v05 32/72] include/uapi/linux/dlm_netlink.h: include linux/dlmconstants.h

2016-08-22 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 --- include/uapi/linux/dlm_netlink.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/uapi/linux/dlm_netlink.h b

[PATCH v05 35/72] include/uapi/asm-generic/ucontext.h: include asm/signal.h and asm/sigcontext.h

2016-08-22 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 --- include/uapi/asm-generic/ucontext.h | 3 +++ 1 file changed, 3 insertions

[PATCH v05 39/72] include/uapi/linux/target_core_user.h: use __u8, __u16, __u32 and __u64 from linux/types.h

2016-08-22 Thread Mikko Rapeli
Fixes userspace compilation errors like: error: unknown type name ‘uint16_t’ Signed-off-by: Mikko Rapeli --- include/uapi/linux/target_core_user.h | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/include/uapi/linux/target_core_user.h b/include/uapi

[PATCH v05 41/72] include/uapi/linux/atm_zatm.h: include linux/time.h

2016-08-22 Thread Mikko Rapeli
Fixes userspace compile error: error: field ‘real’ has incomplete type struct timeval real; /* real (wall-clock) time */ Signed-off-by: Mikko Rapeli --- include/uapi/linux/atm_zatm.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/uapi/linux/atm_zatm.h b/include/uapi/linux

[PATCH v05 38/72] include/uapi/linux/openvswitch.h: use __u32 from linux/types.h

2016-08-22 Thread Mikko Rapeli
Fixes userspace compiler error: error: unknown type name ‘uint32_t’ Signed-off-by: Mikko Rapeli --- include/uapi/linux/openvswitch.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/uapi/linux/openvswitch.h b/include/uapi/linux/openvswitch.h index d95a301

[PATCH v05 25/72] include/uapi/linux/if_pppol2tp.h: include linux/in.h and linux/in6.h

2016-08-22 Thread Mikko Rapeli
Fixes userspace compilation errors like: error: field ‘addr’ has incomplete type struct sockaddr_in addr; /* IP address and port to send to */ ^ error: field ‘addr’ has incomplete type struct sockaddr_in6 addr; /* IP address and port to send to */ Signed-off-by: Mikko

[PATCH v05 37/72] include/uapi/linux/auto_fs.h: include linux/limits.h

2016-08-22 Thread Mikko Rapeli
Fixes userspace compilation error: error: ‘NAME_MAX’ undeclared here (not in a function) Signed-off-by: Mikko Rapeli --- include/uapi/linux/auto_fs.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/uapi/linux/auto_fs.h b/include/uapi/linux/auto_fs.h index 9175a1b..1bfc3ed 100644

[PATCH v05 36/72] arch/x86/include/uapi/asm/signal.h: use __kernel_size_t instead of size_t

2016-08-22 Thread Mikko Rapeli
Fixes userspace compilation error: error: unknown type name ‘size_t’ Signed-off-by: Mikko Rapeli --- 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/arch/x86/include/uapi/asm/signal.h index 8264f47

[PATCH v05 29/72] include/uapi/linux/llc.h: include linux/if.h

2016-08-22 Thread Mikko Rapeli
Fixes userspace compile error: error: ‘IFHWADDRLEN’ undeclared here (not in a function) unsigned char sllc_mac[IFHWADDRLEN]; Signed-off-by: Mikko Rapeli --- include/uapi/linux/llc.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/uapi/linux/llc.h b/include/uapi/linux/llc.h index

[PATCH v05 33/72] include/uapi/linux/ip6_tunnel.h: include linux/if.h and linux/in6.h

2016-08-22 Thread Mikko Rapeli
Fixes userspace compile errors like: error: ‘IFNAMSIZ’ undeclared here (not in a function) error: field ‘laddr’ has incomplete type struct in6_addr laddr; /* local tunnel end-point address */ Signed-off-by: Mikko Rapeli --- include/uapi/linux/ip6_tunnel.h | 2 ++ 1 file changed, 2 insertions

[PATCH v05 28/72] include/uapi/linux/packet_diag.h: include linux/netdevice.h

2016-08-22 Thread Mikko Rapeli
Fixes userspace compilation error: error: ‘MAX_ADDR_LEN’ undeclared here (not in a function) Signed-off-by: Mikko Rapeli --- include/uapi/linux/packet_diag.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/uapi/linux/packet_diag.h b/include/uapi/linux/packet_diag.h index d08c63f

[PATCH v05 26/72] include/uapi/linux/if_pppox.h: include linux/in.h and linux/in6.h

2016-08-22 Thread Mikko Rapeli
Fixes userspace compilation errors: error: field ‘addr’ has incomplete type struct sockaddr_in addr; /* IP address and port to send to */ error: field ‘addr’ has incomplete type struct sockaddr_in6 addr; /* IP address and port to send to */ Signed-off-by: Mikko Rapeli --- include/uapi/linux

<    3   4   5   6   7   8   9   10   >