Received: from eggs.gnu.org ([208.118.235.92]:38178) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SrT8C-0008M8-3G for qemu-devel@nongnu.org; Wed, 18 Jul 2012 08:13:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SrT85-0000A3-4B for qemu-devel@nongnu.org; Wed, 18 Jul 2012 08:13:28 -0400 Received: from smtp.gentoo.org ([140.211.166.183]:53444) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SrT84-00009l-Qs for qemu-devel@nongnu.org; Wed, 18 Jul 2012 08:13:21 -0400 From: Mike Frysinger Date: Wed, 18 Jul 2012 08:13:37 -0400 References: <1342383931-11594-1-git-send-email-vapier@gentoo.org> <201207151754.08786.vapier@gentoo.org> <5003A61A.7080500@weilnetz.de> In-Reply-To: <5003A61A.7080500@weilnetz.de> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2487254.O4TgHr4OrJ"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201207180813.38326.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 --nextPart2487254.O4TgHr4OrJ Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable On Monday 16 July 2012 01:26:50 Stefan Weil wrote: > Am 15.07.2012 23:54, schrieb Mike Frysinger: > > 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 > >=20 > >> these include statements: > > sorry, but that's fragile junk. if a header file uses defines from > > another header file, it should be including it. > > -mike >=20 > There are different ways how things can be done. >=20 > Normally, I agree with you that each header file should be complete, > but that's not the QEMU style. >=20 > In your special case, it's more important to keep all */cpu.h similar. > qemu/target-bfin/cpu.h is still not part of the official QEMU code, > so it can be fixed before it is committed. a lot of existing files in the top level pull in qemu-common.h. i don't th= ink=20 this is a special case considering it's the first failure i've seen since i= =20 started the Blackfin port over a year ago. =2Dmike --nextPart2487254.O4TgHr4OrJ 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) iQIcBAABAgAGBQJQBqhyAAoJEEFjO5/oN/WBaCoQAJGArEs3whFJr1a5oMFci6pG QtfFs5SkMa+Efj+wp4uYrizyR0myRpGbrj571ijN7x8JQ8eYUlqK6u+ioqmnzbku sgieaw8VHrirc4+wXzh8CgSlUbxQtZrCtj+qnzixdaLBNdQA9QcfogBAYqFjdzlo X5DKKizk5itGxQl0MkJxlVsf0FPUUxgxc1g82UhRX0nnhqkRtVA9eYHsWbxu1MZ4 YX4ghW80dd+Rzm/lcaP3juQorWzIw/lkzKECcac8IWIkT348eeWO2LqFkcjOHf8q 10Q/692Q9Fh2JdDmplwgVS33YKUsrJR99OFEc63gLI/1URh72caj9gpPou336pV8 qtCdZjVB7IcMoNSs6SWZFFTw/CDv+d1zouh8+XUglJsg5mRSPP9wH5r9dkVWU1km NuzL+e5tQF937J5LY9j1OtmSaMjr8X1cBK4RroB7IpfgKgZdFwCAQhR4d+NNXTJt c9lvBoHcl1QEbLpLOV/JjmyaJa3VrVeOzbVizIIkS9v4i7HyspQ6Nw77hjlXmaHd T1Ok4KJr3j3oXb8lotrX7Spe+q8uZJvTAfSSucOFxy6cYacYzttWNaYSSQgLrT2s 8IV9dANT3M/ku57HWQ1ZzbERCNkCKy98B+bx4dDjAKvb63YcdKQ4Welt4M2RXJsH IzHsRxOdldU2V5hDeHtR =vHIH -----END PGP SIGNATURE----- --nextPart2487254.O4TgHr4OrJ--