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

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

[PATCH v4 32/79] include/uapi/asm-generic/ipcbuf.h: include linux/posix_types.h

2015-10-15 Thread Mikko Rapeli
Fixes userspace compilation error: error: unknown type name ‘__kernel_key_t’ Signed-off-by: Mikko Rapeli <mikko.rap...@iki.fi> --- 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

[PATCH v4 31/79] include/uapi/linux/sysctl.h: use __kernel_size_t instead of size_t

2015-10-15 Thread Mikko Rapeli
Fixes userspace compilation error: error: unknown type name ‘size_t’ Signed-off-by: Mikko Rapeli <mikko.rap...@iki.fi> --- 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 0

[PATCH v4 28/79] hdspm.h: use __u8, __u32 and __u64 from linux/types.h instead of stdint.h

2015-10-15 Thread Mikko Rapeli
Kernel headers should use linux/types.h based definitions. Signed-off-by: Mikko Rapeli <mikko.rap...@iki.fi> --- include/uapi/sound/hdspm.h | 40 ++-- 1 file changed, 18 insertions(+), 22 deletions(-) diff --git a/include/uapi/sound/hdspm.h b/includ

Re: [PATCH v4 71/79] include/uapi/linux/fuse.h: use linux/types.h also in userspace

2015-10-15 Thread Mikko Rapeli
On Thu, Oct 15, 2015 at 05:20:24PM +0200, Miklos Szeredi wrote: > On Thu, Oct 15, 2015 at 7:56 AM, Mikko Rapeli <mikko.rap...@iki.fi> wrote: > > Kernel headers should not use stdint.h. > > Including breaks compile of library on non-Linux > archs. Allowing this

Re: [PATCH v4 18/79] dm-log-userspace.h: use __u32, __s32 and __u64 from linux/types.h

2015-10-15 Thread Mikko Rapeli
Hi, On Thu, Oct 15, 2015 at 04:09:50AM -0400, Mike Snitzer wrote: > On Thu, Oct 15 2015 at 1:55am -0400, > Mikko Rapeli <mikko.rap...@iki.fi> wrote: > > > Fixes userspace compilation errors like: > > > > linux/dm-log-userspace.h:416:2: error: unknown type na

Re: [PATCH v4 45/79] linux/if.h linux/hdlc/ioctl.h: move IFNAMSIZ definition to hdlc/ioctl.h

2015-10-15 Thread Mikko Rapeli
On Thu, Oct 15, 2015 at 10:49:17AM +0200, Frans Klaver wrote: > Hi, > > On Thu, Oct 15, 2015 at 7:56 AM, Mikko Rapeli <mikko.rap...@iki.fi> wrote: > > And include linux/hdlc/ioctl.h from linux/if.h. > > That appears to have already been the case before this patch. You

[PATCH] linux/if.h linux/hdlc/ioctl.h: move IFNAMSIZ definition to hdlc/ioctl.h

2015-10-15 Thread Mikko Rapeli
Fixes userspace compiler error: error: ‘IFNAMSIZ’ undeclared here (not in a function) Suggested by Frans Klaver <franskla...@gmail.com> on lkml message <20150530195223.ga15...@bugger.home>. Signed-off-by: Mikko Rapeli <mikko.rap...@iki.fi> --- include/uapi/linux/hdlc/ioct

Re: [PATCH 97/98] HACK include/uapi/linux/elfcore.h: use __kernel_pid_t and remove elf_greg_t stuff in userspace

2015-10-06 Thread Mikko Rapeli
Trying to find out what would be an acceptable fix for elfcore.h but.. On Sat, May 30, 2015 at 05:39:29PM +0200, Mikko Rapeli wrote: > __kernel_pid_t change feels like right one. Commenting out elf_greg_t > things in userspace does not but exporting x86/include/asm/elf.h and its > dep

Re: [PATCH 98/98] HACK include/uapi/linux/errqueue.h: include time.h in userspace

2015-10-06 Thread Mikko Rapeli
Hi, On Sat, May 30, 2015 at 05:39:30PM +0200, Mikko Rapeli wrote: > linux/time.h conflicts with userspace header time.h. Try to be compatible > for kernel and userspace. Any comments about this change? I assume the and incompatibility in userspace is a known thing and the resulting defin

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 mikko.rap...@iki.fi wrote: Fixes userspace compilation error: drm/drm.h:132:2: error: unknown type name ‘size_t’ Signed-off-by: Mikko Rapeli mikko.rap...@iki.fi --- include/uapi/drm

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 <mikko.rap...@iki.fi> wrote: > > > On Thu, Sep 03, 2015 at 09:42:32AM +0200, Ingo Molnar wrote: > > > > > > * Mikko Rapeli <mikko.rap...@iki.fi> wrote: > > >

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

2015-09-05 Thread Mikko Rapeli
.com> > Cc: Denys Vlasenko <dvlas...@redhat.com> > Cc: H. Peter Anvin <h...@zytor.com> > Cc: Linus Torvalds <torva...@linux-foundation.org> > Cc: Mikko Rapeli <mikko.rap...@iki.fi> > Cc: Peter Zijlstra <pet...@infradead.org> > Cc: Thomas Gleixner <

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 <mikko.rap...@iki.fi> wrote: > > > > > +++ b/arch/x86/include/uapi/asm/sigcontext32.h > > > > @@ -3,6 +3,6 @@ > > > > > > > > /* This is a lega

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 <mikko.rap...@iki.fi> wrote: > > > On Sat, Sep 05, 2015 at 01:59:43PM +0200, Ingo Molnar wrote: > > > > > > * Mikko Rapeli <mikko.rap...@iki.fi> wrote: > >

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 <mikko.rap...@iki.fi> wrote: > > > > diff --git a/arch/x86/include/uapi/asm/sigcontext32.h > > > b/arch/x86/include/uapi/asm/sigcontext32.h > > > index a92b0f0dc09e..8b8701

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.rap...@iki.fi> -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

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 <mikko.rap...@iki.fi> wrote: > > Fixes compiler error since list_head is not exported to userspace headers. > > > > Signed-off-by:

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 <mikko.rap...@iki.fi> 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 a

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: [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 01/20] drm: use __u{32,64} instead of uint{32,64}_t in virtgpu_drm.h

2015-12-07 Thread Mikko Rapeli
r <gabr...@lse.epita.fr> wrote: > >>> Signed-off-by: Gabriel Laskar <gabr...@lse.epita.fr> > >>> CC: Emil Velikov <emil.l.veli...@gmail.com> > >>> CC: Mikko Rapeli <mikko.rap...@iki.fi> > >>> > >>> --- > >>> inc

[PATCH] uapi glibc compat: fix cases where glibc net/if.h is included before linux/if.h

2016-02-07 Thread Mikko Rapeli
org> Signed-off-by: Mikko Rapeli <mikko.rap...@iki.fi> --- include/uapi/linux/if.h | 21 + include/uapi/linux/libc-compat.h | 33 + 2 files changed, 54 insertions(+) diff --git a/include/uapi/linux/if.h b/include/uapi/linux/if.

Kernel uapi and glibc header conflicts (was Re: header conflict introduced by change to netfilter_ipv4/ip_tables.h )

2016-02-07 Thread Mikko Rapeli
On Thu, Jan 07, 2016 at 10:30:40AM -0800, Stephen Hemminger wrote: > On Thu, 7 Jan 2016 07:29:50 + > Mikko Rapeli <mikko.rap...@iki.fi> wrote: > > > On Wed, Jan 06, 2016 at 09:20:07AM -0800, Stephen Hemminger wrote: > > > This commit breaks compilation of iprou

Re: [PATCH] uapi glibc compat: fix cases where glibc net/if.h is included before linux/if.h

2016-02-25 Thread Mikko Rapeli
(Adding libc-alpha list, review of https://lkml.org/lkml/2016/2/7/89 ) On Wed, Feb 17, 2016 at 10:46:20AM -0500, David Miller wrote: > From: Mikko Rapeli <mikko.rap...@iki.fi> > Date: Sun, 7 Feb 2016 16:03:21 +0200 > > > @@ -68,6 +72,8 @@ > > * @IFF_ECHO:

[PATCH v2] uapi glibc compat: fix compile errors when glibc net/if.h included before linux/if.h

2016-04-24 Thread Mikko Rapeli
;shemm...@brocade.com> Reported-by: Waldemar Brodkorb <m...@waldemar-brodkorb.de> Cc: Gabriel Laskar <gabr...@lse.epita.fr> Signed-off-by: Mikko Rapeli <mikko.rap...@iki.fi> --- include/uapi/linux/if.h | 28 + include/uapi/linux/libc-compat.h |

Re: [PATCH v2] uapi glibc compat: fix compile errors when glibc net/if.h included before linux/if.h

2016-04-25 Thread Mikko Rapeli
On Mon, Apr 25, 2016 at 12:26:09PM +0100, Szabolcs Nagy wrote: > On 24/04/16 16:45, Mikko Rapeli wrote: > > glibc's net/if.h contains copies of definitions from linux/if.h and these > > conflict and cause build failures if both files are included by application > > source

Re: [PATCH v2] uapi glibc compat: fix compile errors when glibc net/if.h included before linux/if.h

2016-05-09 Thread Mikko Rapeli
On Mon, May 09, 2016 at 11:35:35PM +0200, Pablo Neira Ayuso wrote: > It seems linux-netdev was not Cc'ed. I cannot find this in David's > patchwork [1]. > > @Mikko: Could you resubmit including net...@vger.kernel.org? Thanks. Done: http://patchwork.ozlabs.org/patch/620262/ -Mikko

Re: [PATCH 4.2.y-ckt 53/53] uapi glibc compat: fix compile errors when glibc net/if.h included before linux/if.h

2016-05-25 Thread Mikko Rapeli
On Tue, May 24, 2016 at 10:55:23AM -0700, Kamal Mostafa wrote: > 4.2.8-ckt11 -stable review patch. If anyone has any objections, please let > me know. > > ---8<---- > > From: Mikko Rapeli <mikko.rap...@iki.fi

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 <ha...@hauke-m.de> Looks good. Reviewed-by: Mikko Rapeli <mikko.rap...@iki.fi> > --- > incl

Re: [PATCH 1/2] Revert "include/uapi/drm/amdgpu_drm.h: use __u32 and __u64 from "

2016-08-19 Thread Mikko Rapeli
the code. Basically, don't do cleanups in this header. > > > >Signed-off-by: Marek Olšák <marek.ol...@amd.com> > > I completely agree with you that this was a bad move, but I fear that we > will run into opposition with that. > > Adding Mikko Rapeli who made the reverted

Re: [PATCH 1/2] Revert "include/uapi/drm/amdgpu_drm.h: use __u32 and __u64 from "

2016-08-20 Thread Mikko Rapeli
Cc'ing lkml too. On Fri, Aug 19, 2016 at 11:54:21PM +0100, Emil Velikov wrote: > Story time: > I was dreaming of a day were we can stop installing these headers, > thus making deprecation a bit easier process. > Yet after failing to convince Dave and Daniel on a number of occasions > I've

Re: [PATCH 1/2] Revert "include/uapi/drm/amdgpu_drm.h: use __u32 and __u64 from "

2016-08-20 Thread Mikko Rapeli
Cc'ing lkml. On Sat, Aug 20, 2016 at 12:05:54PM +0200, Marek Olšák wrote: > On Sat, Aug 20, 2016 at 12:54 AM, Emil Velikov > wrote: > > On 19 August 2016 at 15:26, Christian König wrote: > >> Am 19.08.2016 um 15:50 schrieb Marek Olšák: > >>> >

Re: [PATCH 1/2] Revert "include/uapi/drm/amdgpu_drm.h: use __u32 and __u64 from "

2016-08-20 Thread Mikko Rapeli
Cc'ing lkml. On Fri, Aug 19, 2016 at 09:18:24PM -0500, Ken Phillis Jr wrote: > On Fri, Aug 19, 2016 at 8:46 PM, Rob Clark wrote: > > > perhaps, but if the target audience for driver specific APIs is > > libdrm/mesa, which already uses stdint types, then I fail to see the >

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 <robdcl...@gmail.com> wrote: > > On Sat, Aug 20, 2016 at 1:58 PM, Mikko Rapeli <mikko.rap...@iki.fi> wrote: > >> Cc'ing lkml too. > >> > >> On Fri

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

2016-08-22 Thread Mikko Rapeli
rose.h:74:8: error: redefinition of ‘struct rose_cause_struct’ linux/rose.h:79:8: error: redefinition of ‘struct rose_facilities_struct’ Signed-off-by: Mikko Rapeli <mikko.rap...@iki.fi> --- include/uapi/linux/libc-compat.h | 30 ++ include/uapi/linux/rose.h|

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

2016-08-22 Thread Mikko Rapeli
f9c9.8000...@citrix.com>. The ifdef 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 <mikko.rap...@iki.fi> Cc: David Vrabel <da

[PATCH v05 19/72] include/uapi/linux/socket.h: include sys/socket.h in userspace

2016-08-22 Thread Mikko Rapeli
This libc header has sockaddr definition for userspace. Fixes userspace compilation errors like these from kernel headers including only linux/socket.h: error: field ‘ifru_addr’ has incomplete type struct sockaddr ifru_addr; Signed-off-by: Mikko Rapeli <mikko.rap...@iki.fi> --- includ

[PATCH v05 52/72] include/linux/sdb.h: use linux/types.h types instead of stdint.h

2016-08-22 Thread Mikko Rapeli
Kernel headers should use linux/types.h types. Signed-off-by: Mikko Rapeli <mikko.rap...@iki.fi> --- include/linux/sdb.h | 62 + 1 file changed, 29 insertions(+), 33 deletions(-) diff --git a/include/linux/sdb.h b/include/linux/sdb.h

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

2016-08-22 Thread Mikko Rapeli
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 <mikko.rap...@iki.fi> --- arch/arm/include/uapi/asm/signal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH v05 23/72] include/uapi/linux/ipv6_route.h: include linux/in6.h

2016-08-22 Thread Mikko Rapeli
Fixes userspace compile errors like: error: field ‘mf6cc_origin’ has incomplete type struct sockaddr_in6 mf6cc_origin; /* Origin of mcast */ Signed-off-by: Mikko Rapeli <mikko.rap...@iki.fi> --- include/uapi/linux/mroute6.h | 1 + 1 file changed, 1 insertion(+) diff --git a/includ

[PATCH v05 68/72] uapi ax25.h: glibc netax25/ax25.h header file compatibility fixes

2016-08-22 Thread Mikko Rapeli
efinition of ‘struct ax25_ctl_struct’ linux/ax25.h:98:8: error: redefinition of ‘struct ax25_info_struct’ linux/ax25.h:111:8: error: redefinition of ‘struct ax25_fwd_struct’ Signed-off-by: Mikko Rapeli <mikko.rap...@iki.fi> --- include/uapi/linux/ax25.h| 22

[PATCH v05 20/72] include/uapi/linux/rds.h: include linux/socket.h and linux/types.h

2016-08-22 Thread Mikko Rapeli
Fixes userspace compilation errors like: error: unknown type name ‘__be32’ error: field ‘dest_addr’ has incomplete type struct sockaddr_storage dest_addr; Signed-off-by: Mikko Rapeli <mikko.rap...@iki.fi> Acked-by: Sowmini Varadhan <sowmini.varad...@oracle.com> --- include/uapi

[PATCH v05 64/72] include/uapi/linux/ipx.h: fix conflicting defitions with glibc netipx/ipx.h

2016-08-22 Thread Mikko Rapeli
ipx_interface_definition’ ./linux/ipx.h:49:8: error: redefinition of ‘struct ipx_config_data’ ./linux/ipx.h:58:8: error: redefinition of ‘struct ipx_route_def’ Signed-off-by: Mikko Rapeli <mikko.rap...@iki.fi> --- include/uapi/linux/ipx.h | 13 - include/uapi/linux/libc-co

[PATCH v05 63/72] include/uapi/sound/Kbuild: remove sound/asoc.h from userspace

2016-08-22 Thread Mikko Rapeli
is here. ^ Signed-off-by: Mikko Rapeli <mikko.rap...@iki.fi> --- include/uapi/sound/Kbuild | 1 - 1 file changed, 1 deletion(-) diff --git a/include/uapi/sound/Kbuild b/include/uapi/sound/Kbuild index 691984c..6d8b203 100644 --- a/include/uapi/sound/Kbuild +++ b/include/uapi/sound/Kbuild @

[PATCH v05 70/72] uapi time.h: glibc time.h header file compatibility fixes

2016-08-22 Thread Mikko Rapeli
al’ linux/time.h:67:0: warning: "TIMER_ABSTIME" redefined Signed-off-by: Mikko Rapeli <mikko.rap...@iki.fi> --- include/uapi/linux/libc-compat.h | 37 + include/uapi/linux/time.h| 18 -- 2 files changed, 53 insertions(+), 2 dele

[PATCH v05 53/72] include/linux/xz.h: use linux/types.h types instead of stdint.h

2016-08-22 Thread Mikko Rapeli
Kernel headers should use linux/types.h types. Signed-off-by: Mikko Rapeli <mikko.rap...@iki.fi> --- include/linux/xz.h | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/include/linux/xz.h b/include/linux/xz.h index 64cffa6..7686511 100644 --- a/include/linu

[PATCH v05 59/72] include/uapi/linux/errqueue.h: include time.h in userspace

2016-08-22 Thread Mikko Rapeli
linux/time.h conflicts with userspace header time.h. Try to be compatible for kernel and userspace. Signed-off-by: Mikko Rapeli <mikko.rap...@iki.fi> --- include/uapi/linux/errqueue.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/uapi/linux/errqueue.h b/include/uapi

[PATCH v05 22/72] include/uapi/linux/if_tunnel.h: include linux/if.h, linux/ip.h and linux/in6.h

2016-08-22 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 <mikko.rap...@iki.fi> --- include/uapi/linux/if_tunnel.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/uapi/linux/if_tunn

[PATCH v05 51/72] include/linux/ipmi-fru.h: use linux/types.h instead of stdint.h

2016-08-22 Thread Mikko Rapeli
Kernel headers should use linux/types.h types. Signed-off-by: Mikko Rapeli <mikko.rap...@iki.fi> --- include/linux/ipmi-fru.h | 31 +++ 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/include/linux/ipmi-fru.h b/include/linux/ipmi-fru.h index 4

[PATCH v05 24/72] include/uapi/linux/ipv6_route.h: include linux/in6.h

2016-08-22 Thread Mikko Rapeli
Fixes userspace compile errors like: error: field ‘rtmsg_dst’ has incomplete type struct in6_addr rtmsg_dst; Signed-off-by: Mikko Rapeli <mikko.rap...@iki.fi> --- include/uapi/linux/ipv6_route.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/uapi/linux/ipv6_route.h b/i

[PATCH v05 50/72] include/uapi/linux/fuse.h: use linux/types.h also in userspace

2016-08-22 Thread Mikko Rapeli
Kernel headers should not use stdint.h. Signed-off-by: Mikko Rapeli <mikko.rap...@iki.fi> Cc: Arnd Bergmann <a...@arndb.de> Cc: Miklos Szeredi <mik...@szeredi.hu> --- include/uapi/linux/fuse.h | 452 +++--- 1 file changed, 224 insertions

[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 <mikko.rap...@iki.fi> --- include/uapi/xen/evtchn.h | 2 ++ 1 file chan

[PATCH v05 67/72] uapi uio.h: glibc sys/uio.h header file compatibility fixes

2016-08-22 Thread Mikko Rapeli
Fixes this userspace compile error when glibc sys/uio.h is included before linux/uio.h: linux/uio.h:16:8: error: redefinition of ‘struct iovec’ Signed-off-by: Mikko Rapeli <mikko.rap...@iki.fi> --- include/uapi/linux/libc-compat.h | 10 ++ include/uapi/linux/uio.h | 4 +

[PATCH v05 58/72] include/uapi/linux/elfcore.h: remove non-compiling userspace parts

2016-08-22 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 <mikko.rap...@iki.fi> --- include/uapi

[PATCH v05 61/72] include/uapi/rdma/rdma_user_rxe.h: include in.h and in6.h

2016-08-22 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 <mikko.rap...@iki.fi> --- include/uap

[PATCH v05 71/72] uapi term*.h: glibc termios.h header file compatibility fixes

2016-08-22 Thread Mikko Rapeli
ne NCCS 32 ^ Signed-off-by: Mikko Rapeli <mikko.rap...@iki.fi> --- include/uapi/asm-generic/termbits.h | 3 +++ include/uapi/asm-generic/termios.h | 5 + include/uapi/linux/libc-compat.h| 28 3 files changed, 36 insertions(+) diff --git a/include/uapi/asm-ge

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-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 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 <mikko.rap...@iki.fi> Cc: Bart Van Assche <bart.vanass...@sandisk.com> --- include/uapi/linux/dm-log-userspace.h | 53 ++

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 <mikko.rap..

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

2016-08-23 Thread Mikko Rapeli
On Mon, Aug 22, 2016 at 02:52:58PM -0400, Sowmini Varadhan wrote: > On (08/22/16 20:32), Mikko Rapeli wrote: > > > > Fixes userspace compilation errors like: > > > > linux/rds.h:96:2: error: unknown type name ‘uint8_t’ > > > > Signed-off-by: Mikko

Re: [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 > >

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

2016-08-23 Thread Mikko Rapeli
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 Rapeli wrote: > >> - * uint32_t (*get_region_size)(struct dm_dirty_log *log); > >> + * __u32 (*get_region_size)(struct dm_dirty_

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

2016-08-23 Thread Mikko Rapeli
> https://github.com/0day-ci/linux/commits/Mikko-Rapeli/Userspace-compile-test-and-fixes-for-exported-uapi-header-files/20160823-034928 > config: x86_64-randconfig-v0-08230740 (attached as .config) > compiler: gcc-4.4 (Debian 4.4.7-8) 4.4.7 > reproduce: > # save the attach

Re: [PATCH v05 66/72] uapi icmp.h: glibc netinet/ip_icmp.h header file compatibility fixes

2016-08-23 Thread Mikko Rapeli
On Mon, Aug 22, 2016 at 04:32:51PM -0700, David Miller wrote: > You have to post this properly to the netdev list. > > If netdev is not CC:'d it doesn't get properly logged in patchwork, > and won't be applied. Sorry, get_maintainers.pl did not find netdev list for these patches. Could you

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

2016-08-23 Thread Mikko Rapeli
On Mon, Aug 22, 2016 at 12:39:38PM -0700, Stephen Hemminger wrote: > On Mon, 22 Aug 2016 20:32:55 +0200 > Mikko Rapeli <mikko.rap...@iki.fi> wrote: > > > Fixes userspace compiler error: > > > > error: unknown type name ‘uint32_t’ > > > > Sig

Re: [PATCH v05 50/72] include/uapi/linux/fuse.h: use linux/types.h also in userspace

2016-08-23 Thread Mikko Rapeli
On Tue, Aug 23, 2016 at 09:16:22AM +0200, Miklos Szeredi wrote: > On Mon, Aug 22, 2016 at 8:33 PM, Mikko Rapeli <mikko.rap...@iki.fi> wrote: > > Kernel headers should not use stdint.h. > > > > NACK. > > This header is used by more than one OS. Having a diffe

Re: [PATCH v05 21/72] include/uapi/linux/if_pppox.h: include linux/if.h

2016-08-23 Thread Mikko Rapeli
On Mon, Aug 22, 2016 at 12:37:45PM -0700, Stephen Hemminger wrote: > On Mon, 22 Aug 2016 20:32:38 +0200 > Mikko Rapeli <mikko.rap...@iki.fi> wrote: > > > Fixes userspace compilation error: > > > > error: ‘IFNAMSIZ’ undeclared here (not in a function) >

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

2016-08-23 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 <mikko.rap..

Re: [PATCH v05 34/72] include/uapi/linux/errqueue.h: include linux/time.h

2016-08-23 Thread Mikko Rapeli
Thanks! It never occurred to me to test kernel documentation builds. I will have a look now. -Mikko

[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 <mikko.rap...@iki.fi> --- include/uapi/linux/rds.h | 102 +++ 1 file changed, 51 insertions(+), 51 deletions(-) diff

[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 <mikko.rap...@iki.fi> --- s

[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 <mikko.rap...@iki.fi> --- scripts/headers_compile_test.sh | 329 +

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

2016-08-22 Thread Mikko Rapeli
’ Signed-off-by: Mikko Rapeli <mikko.rap...@iki.fi> --- 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/sh

[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 <mikko.rap...@iki.fi> --- include/uapi/scsi/scsi_netlink_fc.h | 16 1 file changed, 8 insertions(+), 8 del

[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 <mikko.rap...@iki.fi> --- include/uapi/scsi/scsi_bsg_fc.h | 54 + 1 file changed, 28 insertions(+), 26 deletions(-)

[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 <mikko.rap...@iki.fi> --- 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

[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 <mikko.rap...@iki.fi> --- include/uapi/asm-generic/msgbuf.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/uapi/asm-generic/msgbu

[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 <mikko.rap...@iki.fi> --- include/uapi/scsi/scsi_netlink.h | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/includ

[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 <mikko.rap...@iki.fi> --- include/uapi/linux/dm-log-userspace.h | 43 ++- 1 file changed, 22 insertions(+), 21 del

[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 <mikko.rap...@iki.fi> --- include/uapi/linux/scc.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/uapi/linux/scc.h b/i

[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 <mikko.rap...@iki.fi> --- include/uapi/linux/nfsd/cld.h | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/include/uapi/linu

[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 <nhor...@tuxdriver.com> Signed-off-by: Mikko Rapeli <mikko.rap...@iki.fi> --- include/uapi/linux/sctp.h | 10 +- 1 file changed, 5 insertions(+), 5 deleti

[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 <mikko.rap...@iki.fi> --- include/uapi/linux/reiserfs_xattr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/uapi/linux/reiserfs_xattr.h b/includ

[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 <mikko.rap...@iki.fi> --- include/uapi/linux/android/binder.h | 4 ++-- 1 file changed, 2 insertions(+), 2 del

[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 <mikko.rap...@iki.fi> --- 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/openvsw

[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 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 <mikko.rap...@iki.fi> --- include/uapi/linux/target_core_user.h | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/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 <mikko.rap...@iki.fi> --- include/uapi/linux/atm_zatm.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/uapi/linux/atm_za

[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 <mikko.rap...@iki.fi> --- include/uapi/linux/dlm_netlink.h | 1 + 1 file changed, 1 insertion(+) diff --git a/includ

[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 <mikko.rap...@iki.fi> --- include/uapi/asm-generic/ucontext.h | 3 +++ 1 file c

[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 <mikko.rap...@iki.fi> --- 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/ua

[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 <mikko.rap...@iki.fi> --- include/uapi/linux/llc.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/uapi/linux/llc.h b/i

[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 <mikko.rap...@iki.fi> --- include/uapi/linux/ip6_tunnel.h | 2 ++

[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 <mikko.rap...@iki.fi> --- 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

[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 <mikko.rap...@iki.fi> --- include/uapi/linux/packet_diag.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/uapi/linux/packet_diag.h b/include/uapi

[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 <mikko.rap...@iki

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