Received: from eggs.gnu.org ([208.118.235.92]:59945) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SqWlW-0006DV-Op for qemu-devel@nongnu.org; Sun, 15 Jul 2012 17:54:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SqWlV-0002Vd-T5 for qemu-devel@nongnu.org; Sun, 15 Jul 2012 17:54:10 -0400 Received: from smtp.gentoo.org ([140.211.166.183]:36918) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SqWlV-0002VW-N0 for qemu-devel@nongnu.org; Sun, 15 Jul 2012 17:54:09 -0400 From: Mike Frysinger Date: Sun, 15 Jul 2012 17:54:08 -0400 References: <1342383931-11594-1-git-send-email-vapier@gentoo.org> <50031B49.1060804@weilnetz.de> In-Reply-To: <50031B49.1060804@weilnetz.de> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart11108796.Dm54JX5Q2H"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201207151754.08786.vapier@gentoo.org> Subject: Re: [Qemu-devel] [PATCH] cpu-defs.h: pull in qemu-common.h for HOST_LONG_BITS List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Weil Cc: qemu-devel@nongnu.org --nextPart11108796.Dm54JX5Q2H Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable On Sunday 15 July 2012 15:34:33 Stefan Weil wrote: > Am 15.07.2012 22:25, schrieb Mike Frysinger: > > This file uses the define HOST_LONG_BITS, but doesn't explicitly include > > qemu-common.h for it leading to build warnings for some setups: > > In file included from qemu/target-bfin/cpu.h:17, > >=20 > > from qemu/cputlb.c:21: > > qemu/cpu-defs.h:83:5: warning: "HOST_LONG_BITS" is not defined > >=20 > > Signed-off-by: Mike Frysinger > > --- > >=20 > > cpu-defs.h | 1 + > > 1 file changed, 1 insertion(+) > >=20 > > diff --git a/cpu-defs.h b/cpu-defs.h > > index f49e950..0d6018d 100644 > > --- a/cpu-defs.h > > +++ b/cpu-defs.h > > @@ -28,6 +28,7 @@ > >=20 > > #include > > #include > > #include "osdep.h" > >=20 > > +#include "qemu-common.h" > >=20 > > #include "qemu-queue.h" > > #include "targphys.h" >=20 > No. Of course this works, but I don't think that it is reasonable > to include qemu-common.h in every *.h file. There are already too > many of them. >=20 > target-bfin/cpu.h should start like all other cpu.h files with > these include statements: sorry, but that's fragile junk. if a header file uses defines from another= =20 header file, it should be including it. =2Dmike --nextPart11108796.Dm54JX5Q2H Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) iQIcBAABAgAGBQJQAzwAAAoJEEFjO5/oN/WBwV0P/05URVY3mVWvEp/JrZNf/5ph zf5y0OUfp/bas9faaDZ30RkdWxwS8hBDu2ejpyL5bV4g5m+Ab/dUIwL9hvVeDxY+ NlmqllOekeyXb2Uwz4rOV+rLhFZatZ5PMyF4sLGYw5rD9LifZm1RxUzG9U62nNuv 0/GwWafK6+XRaIU+affpGM5A3IFK3TNUrSVQ6bEo6bP7RTftL7z+2k6arizyPOlw F1ZyHuktI5k8sudpoGAfqOSxOfj0RPDeoRga07ZRJ7+h4EbQ8zSSJy2CMhCRhVPL 2QE/29rksu0ujTiUKmpVPRQJuxjG2OdSX4bGfZNLRVpTlhr1ms/0jQvRI+NpmiXp aiREaKYzEw4zMYUT1KtFUgsl0sEyc1mSK5ww0S7gQdaI+UI7fWg7D8Ft+B/s1C79 6n/N8knrkOX6bzDmTKYxusN51nwmFfxBlCXzLoGOdJ5j4kU4IkMPi1EytNj2Zj9Z oKNZsEwmlhG9hgyzzfZsxHNUBZxY2zGKDxg/HREgzWnmS1/tM8kJmKpnIPYPLk0V MgDHb3QB1TkMijto9PRCqclnPPyj4O+/wtMpeQeU6fDztsg6OCr9KMP4mQo+aLxI as4KgGd2lz5QggUIJlu44pIOTd9ZgF2F6EfQs2xwJfMVBwtZ52SDR4QBsO2RptSP V0DhOC2DhrtWTPL+iJGp =AD3x -----END PGP SIGNATURE----- --nextPart11108796.Dm54JX5Q2H--