[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20170804152203.GA31455@jhogan-linux.le.imgtec.org>
Date: Fri, 4 Aug 2017 16:22:04 +0100
From: James Hogan <james.hogan@...tec.com>
To: Arnd Bergmann <arnd@...db.de>
CC: "Dmitry V. Levin" <ldv@...linux.org>, <linux-mips@...ux-mips.org>,
<linux-ia64@...r.kernel.org>, <linux-xtensa@...ux-xtensa.org>,
Heiko Carstens <heiko.carstens@...ibm.com>,
David Howells <dhowells@...hat.com>,
Max Filippov <jcmvbkbc@...il.com>,
Paul Mackerras <paulus@...ba.org>,
"H. Peter Anvin" <hpa@...or.com>, <sparclinux@...r.kernel.org>,
Hans-Christian Egtvedt <egtvedt@...fundet.no>,
linux-arch <linux-arch@...r.kernel.org>,
<linux-s390@...r.kernel.org>, <linux-am33-list@...hat.com>,
<x86@...nel.org>, Ingo Molnar <mingo@...hat.com>,
Haavard Skinnemoen <hskinnemoen@...il.com>,
Fenghua Yu <fenghua.yu@...el.com>,
Thomas Gleixner <tglx@...utronix.de>,
Chris Zankel <chris@...kel.net>,
Tony Luck <tony.luck@...el.com>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Ralf Baechle <ralf@...ux-mips.org>,
<linux-alpha@...r.kernel.org>,
Martin Schwidefsky <schwidefsky@...ibm.com>,
<linuxppc-dev@...ts.ozlabs.org>,
"David S. Miller" <davem@...emloft.net>
Subject: Re: [PATCH] uapi: fix another asm/shmbuf.h userspace compilation
error
On Thu, Mar 02, 2017 at 02:07:20PM +0100, Arnd Bergmann wrote:
> On Thu, Mar 2, 2017 at 1:46 AM, Dmitry V. Levin <ldv@...linux.org> wrote:
> > Replace size_t with __kernel_size_t to fix asm/shmbuf.h userspace
> > compilation errors like this:
> >
> > /usr/include/asm-generic/shmbuf.h:28:2: error: unknown type name 'size_t'
> > size_t shm_segsz; /* size of segment (bytes) */
> >
> > x32 is the only architecture where sizeof(size_t) is less than
> > sizeof(__kernel_size_t), but as the kernel treats shm_segsz field as
> > __kernel_size_t anyway, UAPI should follow. Thanks to little-endiannes
> > of x32 and 64-bit alignment of the field following shm_segsz, this
> > change doesn't break ABI, and the difference doesn't manifest itself
> > easily.
> >
> > Signed-off-by: Dmitry V. Levin <ldv@...linux.org>
>
> Acked-by: Arnd Bergmann <arnd@...db.de>
Out of interest, is there a plan for merging these patches from Dmitry?
Cheers
James
Download attachment "signature.asc" of type "application/pgp-signature" (834 bytes)
Powered by blists - more mailing lists