Return-Path: Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:50567 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751871AbdL0TlJ (ORCPT ); Wed, 27 Dec 2017 14:41:09 -0500 Message-ID: <1514403654.2714.71.camel@decadent.org.uk> Subject: Re: [PATCH 4.14 015/159] bitops: Add clear/set_bit32() to linux/bitops.h From: Ben Hutchings To: Greg Kroah-Hartman Cc: Andi Kleen , inux-kernel@vger.kernel.org, stable@vger.kernel.org, Thomas Gleixner , Linus Torvalds , Peter Zijlstra , Ingo Molnar Date: Wed, 27 Dec 2017 19:40:54 +0000 In-Reply-To: <20171227124844.GD3373@kroah.com> References: <20171222084623.668990192@linuxfoundation.org> <20171222084624.604335610@linuxfoundation.org> <1514324496.2714.69.camel@decadent.org.uk> <20171227124844.GD3373@kroah.com> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-FoKSJa43fbmWSdOJ1rCK" Mime-Version: 1.0 Sender: stable-owner@vger.kernel.org List-ID: --=-FoKSJa43fbmWSdOJ1rCK Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, 2017-12-27 at 13:48 +0100, Greg Kroah-Hartman wrote: > On Tue, Dec 26, 2017 at 09:41:36PM +0000, Ben Hutchings wrote: > > On Fri, 2017-12-22 at 09:45 +0100, Greg Kroah-Hartman wrote: > > > 4.14-stable review patch. If anyone has any objections, please let m= e know. > > >=20 > > > ------------------ > > >=20 > > > From: Andi Kleen > > >=20 > > > commit cbe96375025e14fc76f9ed42ee5225120d7210f8 upstream. > > >=20 > > > Add two simple wrappers around set_bit/clear_bit() that accept > > > the common case of an u32 array. This avoids writing > > > casts in all callers. > >=20 > > These won't work correctly on big-endian 64-bit systems. They are also > > unsafe to use on u32 arrays with an odd length, on 64-bit systems. > > This is why lib/bitmap.c has conversion functions for u32 arrays. >=20 > I end up deleteing these later in the patch series, just like upstream > did, so all should be ok, right? Ah, sorry, I didn't get that far. The end result looks OK. Ben. --=20 Ben Hutchings Any sufficiently advanced bug is indistinguishable from a feature. --=-FoKSJa43fbmWSdOJ1rCK Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEErCspvTSmr92z9o8157/I7JWGEQkFAlpD90YACgkQ57/I7JWG EQnnARAAnv7fpWaeTk3Gzx0s/7S19Z99dWniyVRxPnSho8/Vo6OtrE4S7RwhE55Y pyuY/kuZpq+sY4XuHl28y6R8HJ0C9L3gah5qJ8thg9mhc5gv2uutLDOAcrmuJpCY MrohBbauncuTHA+PuL+a85W/DXNx1RYPQL1QTSav74+ngArlFgyIzubDdqGck7ls cbFc0efam4aJy8a7WZGRbi2b7ItyaEm0O63SnZ/UJ4niY0eCZz28b0jWdMSMSl5K BmWbbnuz7dtXQdFn0Sanz+aq8W6wWJ0Fdn/fIxkTCMm1YBZzsiYh+0/9MUM23btk XmN1ywqLMj4DXOqzSIiakaIxt9ScSE/sSSLo5ZrHus3dpUN/fPDfdy/NBe2Rqwu9 PRoRV0qXYdFKwDPwUXpwVvF/pTFiDLb/4n8tpVuogapmUY1L5jCp06qVMSuqVA6o nrnJkldree9LQKOP3vuq6R0kvQYCASVjn2ryQ1ii4Mpr8X2ac51Gutjst259TPrt XH/sMHM1+X3Dvp+UMgvbu5AOy9XZWNbJHInBCBMzFLICGSu+OetMjGBqKT9oXqvr 1oardzcUuqBgu6m3dpN4yiWytIq7lwRU+4NnEcPWDevgIGwCINSlhBpEbVWFwUM6 1g9tMf6kNeKMwLBOdFWoTSm3Mxgu1WsXw7P7unFkG6b0a9yLHnY= =8iFc -----END PGP SIGNATURE----- --=-FoKSJa43fbmWSdOJ1rCK--