Received: from eggs.gnu.org ([209.51.188.92]:40081) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gjSyd-00036R-8q for qemu-devel@nongnu.org; Tue, 15 Jan 2019 12:58:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gjSyT-00014j-BO for qemu-devel@nongnu.org; Tue, 15 Jan 2019 12:58:09 -0500 References: <20190111140857.4211-1-philmd@redhat.com> <20190111140857.4211-4-philmd@redhat.com> <875zuqjea7.fsf@dusky.pond.sub.org> From: Paolo Bonzini Message-ID: Date: Tue, 15 Jan 2019 18:57:34 +0100 MIME-Version: 1.0 In-Reply-To: <875zuqjea7.fsf@dusky.pond.sub.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 03/15] hw/ssi: Remove SSIBus from "qemu/typedefs.h" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Markus Armbruster , =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= Cc: Thomas Huth , qemu-devel@nongnu.org, Peter Maydell , Alistair Francis , Xiao Guangrong , qemu-block@nongnu.org, "Michael S. Tsirkin" , Laszlo Ersek , Peter Crosthwaite , =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= , qemu-arm@nongnu.org, Gerd Hoffmann , Igor Mammedov On 15/01/19 13:28, Markus Armbruster wrote: >> Signed-off-by: Philippe Mathieu-Daud=C3=A9 >> --- >> hw/arm/strongarm.h | 1 + >> include/hw/arm/pxa.h | 1 + >> include/hw/ssi/pl022.h | 1 + >> include/hw/ssi/ssi.h | 1 + >> include/qemu/typedefs.h | 1 - >> 5 files changed, 4 insertions(+), 1 deletion(-) > When typedefs.h changes, we recompile the world, but it pretty much onl= y > ever changes when new typedefs are added. Thus, *keeping* a typedef > there is therefore pretty cheap. >=20 > Nevertheless, we shouldn't keep typedefs there without a real reason. > Being able to move one away without having to add any new #include > directives is a strong sign for "no real reason". I like patches doing > that. >=20 > What I don't like is adding #include directives just so you can move > typedefs out of typedefs.h: it slows down the build. Granted, the four (three - one added line is the typedef). > added by this patch are a drop in the bucket. The point I'm trying to > make is typedefs.h's purpose: it's for avoiding #include directives. > Circular ones in particular, but others, too. In this case, adding ssi.h inclusions to SSI controllers seems to be a feature, not a bug. Paolo