Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752631AbdHDPWJ (ORCPT ); Fri, 4 Aug 2017 11:22:09 -0400 Received: from mailapp01.imgtec.com ([195.59.15.196]:45299 "EHLO mailapp01.imgtec.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752064AbdHDPWH (ORCPT ); Fri, 4 Aug 2017 11:22:07 -0400 Date: Fri, 4 Aug 2017 16:22:04 +0100 From: James Hogan To: Arnd Bergmann CC: "Dmitry V. Levin" , , , , Heiko Carstens , David Howells , Max Filippov , Paul Mackerras , "H. Peter Anvin" , , Hans-Christian Egtvedt , linux-arch , , , , Ingo Molnar , Haavard Skinnemoen , Fenghua Yu , Thomas Gleixner , Chris Zankel , Tony Luck , Linux Kernel Mailing List , Ralf Baechle , , Martin Schwidefsky , , "David S. Miller" Subject: Re: [PATCH] uapi: fix another asm/shmbuf.h userspace compilation error Message-ID: <20170804152203.GA31455@jhogan-linux.le.imgtec.org> References: <20170302004607.GE27132@altlinux.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ofekNuVaYCKmvJ0U" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.7.2 (2016-11-26) X-Originating-IP: [192.168.154.110] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2060 Lines: 52 --ofekNuVaYCKmvJ0U Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 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 >=20 > Acked-by: Arnd Bergmann Out of interest, is there a plan for merging these patches from Dmitry? Cheers James --ofekNuVaYCKmvJ0U Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEd80NauSabkiESfLYbAtpk944dnoFAlmEkRMACgkQbAtpk944 dnrAMg/+K3doXr6onSUJPfVtAuAORRxr6EypmBdFZs5/qV4cwNTkljJ0c/yGAKaM fUM6pJ9n56h7YGG0/y2m+YCI56TPWyh8HnoKTNyhgDtg+Sn1e2Ub4dXyEjYdQhXN TMTzPsP/COyFkrStEulbLuGoaU4t7UMFk5nU7FTQ1BpCeyuEO5opnUpA3JMZwehK KK7orqZYUE+iZ8QfbEXiuHr68EsvpMeHj0z6WNkXD/8gRzSFTMqf5wHFpm3cNTJ7 3BRJx3LOkkE3amkPOm1kIOPWkMAEIFF11hRc79e4Wpkak6tnoCowkLvVNadB+UH2 bb5BTgwifuU83lrWsqC6gzs6e4PR0DEAgQofoLy5uGQjVgYqJ970Q8/Cl4xsfvcL qVVFp8oGN5oZoXFiMWhYVQydG4m9TaruA2vOZK3F9fdrNBmd4t+fNxF+l3CTfa79 dAGLliqjUunWrW8WBrFmIySw9Sxl8DbJKyl0jxaJUbfGCnmsmkCZO4fP8h3BK37Y mjMPsH3AjUnkBSLRBK+d261LMYCBgMY/SpUWwR7RqRbtxrqO7voVeNcyXQ1c4tVE cYJhQpy57wjDKE0luxGSU0o1ATJst6xcL+URKTvRoxIWrkZXUBPnwfusoedLqTxd f5AIFSEhwz7t8hBSEweo8qITuBmr86QmyKPwYN4R9xkonfb2Kis= =9M2T -----END PGP SIGNATURE----- --ofekNuVaYCKmvJ0U--