Received: from eggs.gnu.org ([2001:4830:134:3::10]:48311) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1emClN-0008F6-7A for qemu-devel@nongnu.org; Thu, 15 Feb 2018 01:11:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1emClM-00020w-6r for qemu-devel@nongnu.org; Thu, 15 Feb 2018 01:11:21 -0500 References: <20180215042900.16078-1-f4bug@amsat.org> <20180215042900.16078-3-f4bug@amsat.org> From: Thomas Huth Message-ID: <8fd4272f-8c40-3804-8449-752aea88a7cc@redhat.com> Date: Thu, 15 Feb 2018 07:10:40 +0100 MIME-Version: 1.0 In-Reply-To: <20180215042900.16078-3-f4bug@amsat.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 02/30] hw: include "qemu/cunits.h" and clean unused "qemu/cutils.h" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= , qemu-devel@nongnu.org Cc: Peter Maydell , Michael Walle , Mark Cave-Ayland , Gerd Hoffmann , "Edgar E. Iglesias" , Yongbok Kim , Marek Vasut , Markus Armbruster , =?UTF-8?Q?Herv=c3=a9_Poussineau?= , Marcel Apfelbaum , Samuel Thibault , Richard Henderson , Artyom Tarasenko , Eduardo Habkost , qemu-arm@nongnu.org, David Gibson , Chris Wulff , Subbaraya Sundeep , Paul Burton , qemu-ppc@nongnu.org, Aurelien Jarno On 15.02.2018 05:28, Philippe Mathieu-Daud=C3=A9 wrote: > These files were including "qemu/cutils.h" to use the byte-based size > definitions, now available in "qemu/cunits.h". >=20 > Signed-off-by: Philippe Mathieu-Daud=C3=A9 > --- > include/hw/hw.h | 1 + > hw/arm/msf2-soc.c | 1 - > hw/arm/msf2-som.c | 1 - > hw/core/loader-fit.c | 1 - > hw/core/loader.c | 1 - > hw/core/machine.c | 1 - > hw/cris/boot.c | 1 - > hw/display/sm501.c | 1 - > hw/hppa/machine.c | 1 - > hw/lm32/milkymist.c | 1 - > hw/microblaze/boot.c | 1 - > hw/mips/boston.c | 1 - > hw/misc/mos6522.c | 1 - > hw/nios2/boot.c | 1 - > hw/ppc/mac_newworld.c | 1 - > hw/ppc/mac_oldworld.c | 1 - > hw/ppc/pnv.c | 1 - > hw/ppc/prep.c | 1 - > hw/ppc/spapr_rtas.c | 1 - > hw/sd/sdhci.c | 1 - > hw/sparc/sun4m.c | 1 - > hw/sparc64/sun4u.c | 1 - > hw/usb/dev-serial.c | 1 - > hw/usb/dev-storage.c | 1 - > 24 files changed, 1 insertion(+), 23 deletions(-) >=20 > diff --git a/include/hw/hw.h b/include/hw/hw.h > index ab4950c312..8249448cac 100644 > --- a/include/hw/hw.h > +++ b/include/hw/hw.h > @@ -14,6 +14,7 @@ > #include "migration/qemu-file-types.h" > #include "qemu/module.h" > #include "sysemu/reset.h" > +#include "qemu/cunits.h" Instead of adding this to a header and creating yet another possible recompile-the-world dependency this way, wouldn't it be better to include the cunits.h only from the .c files that need the definitions? Thomas