From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46899) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bBRsS-0000f1-UK for qemu-devel@nongnu.org; Fri, 10 Jun 2016 15:13:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bBRsO-0004do-Kv for qemu-devel@nongnu.org; Fri, 10 Jun 2016 15:13:55 -0400 Received: from mx1.redhat.com ([209.132.183.28]:41779) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bBRsO-0004dO-Ey for qemu-devel@nongnu.org; Fri, 10 Jun 2016 15:13:52 -0400 References: <1465575342-12146-1-git-send-email-peter.maydell@linaro.org> From: Eric Blake Message-ID: <575B116E.9060506@redhat.com> Date: Fri, 10 Jun 2016 13:13:50 -0600 MIME-Version: 1.0 In-Reply-To: <1465575342-12146-1-git-send-email-peter.maydell@linaro.org> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="9vKDSD3cdFOmfdNGqnOfRDjfGwnuTd9rF" Subject: Re: [Qemu-devel] [PATCH] nbd: Don't use cpu_to_*w() functions List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell , qemu-devel@nongnu.org Cc: patches@linaro.org, Paolo Bonzini This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --9vKDSD3cdFOmfdNGqnOfRDjfGwnuTd9rF Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 06/10/2016 10:15 AM, Peter Maydell wrote: > The cpu_to_*w() functions just compose a pointer dereference > with a byteswap. Instead use st*_p(), which handles potential > pointer misalignment and avoids the need to cast the pointer. >=20 > Signed-off-by: Peter Maydell > --- > nbd/client.c | 10 +++++----- > 1 file changed, 5 insertions(+), 5 deletions(-) >=20 Reviewed-by: Eric Blake --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --9vKDSD3cdFOmfdNGqnOfRDjfGwnuTd9rF Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJXWxFuAAoJEKeha0olJ0NqvlYH/2bnB7ihCm2PwUZ/rKO/as1H kwuswKqgw5sq6EHbeL/qJGLgcRUYsuoZlHRQt+DLlHwkMPOs5C63Wi4hSS3K48Q6 JvXdVDAl7SmU+qxBsFlQomJhloNDr6FZ4hULdl9a/WeVZ7fTHSaXiMuCF3TtRiVT tvNI2A9pV7kUeX7NgNwgkFkWQKtCTBj0UAKqCW53G5EKkS0iukym2I7ILAqCuHto Rf4zFUuHFJbuVFNGhuL1qWV4awQ5tHq4N4pOUqUmpV83uWk9KexBCVat4o1SSjyF CFOAytUf1PIJrSu6ok5KueamtmxL3OUFlnCSgn3O4TeALTZ7MsNpwdqJemjSBt0= =PBkr -----END PGP SIGNATURE----- --9vKDSD3cdFOmfdNGqnOfRDjfGwnuTd9rF--