From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752999AbbKXEjr (ORCPT ); Mon, 23 Nov 2015 23:39:47 -0500 Received: from pegasus3.altlinux.org ([194.107.17.103]:37262 "EHLO pegasus3.altlinux.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751700AbbKXEjq (ORCPT ); Mon, 23 Nov 2015 23:39:46 -0500 Date: Tue, 24 Nov 2015 07:39:44 +0300 From: "Dmitry V. Levin" To: "H.J. Lu" Cc: "H. Peter Anvin" , LKML Subject: Re: [PATCH 8/8] Use __kernel_long_t in struct mq_attr Message-ID: <20151124043944.GB31047@altlinux.org> References: <1388182464-28428-1-git-send-email-hjl.tools@gmail.com> <1388182464-28428-9-git-send-email-hjl.tools@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=x-unknown; protocol="application/pgp-signature"; boundary="kORqDWCi7qDJ0mEj" Content-Disposition: inline In-Reply-To: <1388182464-28428-9-git-send-email-hjl.tools@gmail.com> X-fingerprint: FE4C 93AB E19A 2E4C CB5D 3E4E 7CAB E6AC 9E35 361E Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --kORqDWCi7qDJ0mEj Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Dec 27, 2013 at 02:14:24PM -0800, H.J. Lu wrote: > Both x32 and x86-64 use the same struct mq_attr for system calls. But > x32 long is 32-bit. This patch replaces long with __kernel_long_t in > struct mq_attr. >=20 > Signed-off-by: H.J. Lu > --- > include/uapi/linux/mqueue.h | 10 +++++----- > 1 file changed, 5 insertions(+), 5 deletions(-) >=20 > diff --git a/include/uapi/linux/mqueue.h b/include/uapi/linux/mqueue.h > index 8b5a796..d0a2b8e 100644 > --- a/include/uapi/linux/mqueue.h > +++ b/include/uapi/linux/mqueue.h > @@ -23,11 +23,11 @@ > #define MQ_BYTES_MAX 819200 > =20 > struct mq_attr { > - long mq_flags; /* message queue flags */ > - long mq_maxmsg; /* maximum number of messages */ > - long mq_msgsize; /* maximum message size */ > - long mq_curmsgs; /* number of messages currently queued */ > - long __reserved[4]; /* ignored for input, zeroed for output */ > + __kernel_long_t mq_flags; /* message queue flags */ > + __kernel_long_t mq_maxmsg; /* maximum number of messages */ > + __kernel_long_t mq_msgsize; /* maximum message size */ > + __kernel_long_t mq_curmsgs; /* number of messages currently queued */ > + __kernel_long_t __reserved[4]; /* ignored for input, zeroed for output = */ > }; > =20 > /* This breaks userspace, please #include before using __kernel_long_t. --=20 ldv --kORqDWCi7qDJ0mEj Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCAAGBQJWU+oPAAoJEAVFT+BVnCUIMf4QAOQQCz7634qxrgYJ1uEECk3+ SGqQKo+a9FK0WirFnpGCsMAguxNSj7FyUnv/PoRc63OnJLDfaOoP/8eqAmnUXxcv un9ndBzvhyHHODrMF2znu+iKvKdRjwhpnY7O3itxB5xybJGopVHTm2QD8LJXJZtz PCbjp8rMYr02BMm4ex2ogU36wP5KiSQ5koOeucmMM5o5fVpCeUs+lZEHyPFIlh5F djZMjV7K+gDDP9gUQtSJVW6I++WQng0I+kuVXAQW9yzsCX+bhQkOgvfLMAo9j97q gO9wRTs5cYor3ob8uN0KG4cpGpGc1Hd+j9/UgsfRZzZ8Z4oU5HmvCs6ZEm61yOR2 QahBznlcPyWA4aCTN48IkIb6ygev4i67iuBWvRNbGTpak/E2U+jR+WgveD+YV8QZ mSdS568YaaBwKlb1CjSE4qlL80wFxuP74Flt+hEbyQLu62GwSjysP3qjrk8KVcrn nMcmu5BITmQmB56dT8jEzu7E2uTBMoKaVcOVQ/9nYwuj02PH3oLjndjhWeOflD8m skE0vo3hKG+2e8Qm67V/ZBcUj3zHKBvkq8nNyNZTPxKSLL9NLMp/u6FG0lTISNcM IXOcLXkOg9yhEj99xHOIvbj4zfOvvqgBgf6dYbXQ/Tm4OPpcoJMJJ65skwR28TV4 cCG+NUjzNd2wb+sb1CxY =7Htg -----END PGP SIGNATURE----- --kORqDWCi7qDJ0mEj--