From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52413) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aSsTf-0004PL-5U for qemu-devel@nongnu.org; Mon, 08 Feb 2016 15:32:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aSsTa-0005a2-Ln for qemu-devel@nongnu.org; Mon, 08 Feb 2016 15:32:07 -0500 Received: from mx1.redhat.com ([209.132.183.28]:38294) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aSsTa-0005Zj-GP for qemu-devel@nongnu.org; Mon, 08 Feb 2016 15:32:02 -0500 References: <1454957357-22094-1-git-send-email-peter.maydell@linaro.org> <1454957357-22094-2-git-send-email-peter.maydell@linaro.org> From: Eric Blake Message-ID: <56B8FB41.9020701@redhat.com> Date: Mon, 8 Feb 2016 13:32:01 -0700 MIME-Version: 1.0 In-Reply-To: <1454957357-22094-2-git-send-email-peter.maydell@linaro.org> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="rAbM64Jw6KHP05NWAlLI3XtifMXchAmqe" Subject: Re: [Qemu-devel] [PATCH 1/2] tests/i440fx-test: Don't define ARRAY_SIZE locally List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell , qemu-devel@nongnu.org Cc: Markus Armbruster , patches@linaro.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --rAbM64Jw6KHP05NWAlLI3XtifMXchAmqe Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 02/08/2016 11:49 AM, Peter Maydell wrote: > Don't define ARRAY_SIZE locally; instead include osdep.h for it. >=20 > Signed-off-by: Peter Maydell > --- > tests/i440fx-test.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) Reviewed-by: Eric Blake >=20 > diff --git a/tests/i440fx-test.c b/tests/i440fx-test.c > index 7fa1709..0665caf 100644 > --- a/tests/i440fx-test.c > +++ b/tests/i440fx-test.c > @@ -12,6 +12,7 @@ > * See the COPYING file in the top-level directory. > */ > =20 > +#include "qemu/osdep.h" > #include > #include > #include > @@ -27,8 +28,6 @@ > =20 > #define BROKEN 1 > =20 > -#define ARRAY_SIZE(array) (sizeof(array) / sizeof((array)[0])) > - > typedef struct TestData > { > int num_cpus; >=20 --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --rAbM64Jw6KHP05NWAlLI3XtifMXchAmqe 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/ iQEcBAEBCAAGBQJWuPtBAAoJEKeha0olJ0Nq72MH/2M39wBLAScJ44Jv2dK7gvZ9 WfMqUX3uvSm+j/u4QW+oToXZmYICYSNNrnWQCHHaHfp5DTXgHM90xf/9SimunJM7 CNcwzl5umQcVQ3z6Ca1t0K97POopCdPD0C2GjtMHJadhMdB423poiFEoOy3sHEZb pCnvyQa9g7TGU/0pVS5v9ARNpEZCHnC8kQNucYm83BGMmM6IlV7VSGn5lEu71bTr O2mGWKMt4oVpEXuHFtBkp3mO2UgVQ4E5sGfhme2iZNlMmcfHRFq2QiZThcu06SXy 9WePjbt3rFTdzLCXr0SHisH/MS6/Y/J0mk/rSI9xcRiiZXDxgaXlt8Ao3HPQSIk= =c7df -----END PGP SIGNATURE----- --rAbM64Jw6KHP05NWAlLI3XtifMXchAmqe--