Received: from eggs.gnu.org ([2001:4830:134:3::10]:57747) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dDZ1r-00033D-DC for qemu-devel@nongnu.org; Wed, 24 May 2017 12:20:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dDZ1o-00074u-4i for qemu-devel@nongnu.org; Wed, 24 May 2017 12:20:55 -0400 Received: from mx1.redhat.com ([209.132.183.28]:34296) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dDZ1n-00074e-SF for qemu-devel@nongnu.org; Wed, 24 May 2017 12:20:52 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id DA0F17F6B3 for ; Wed, 24 May 2017 16:20:50 +0000 (UTC) References: <20170518172543.32694-1-quintela@redhat.com> <20170518172543.32694-3-quintela@redhat.com> From: Laurent Vivier Message-ID: <6a45fac0-cbe2-8146-2741-c3589d759c04@redhat.com> Date: Wed, 24 May 2017 18:20:45 +0200 MIME-Version: 1.0 In-Reply-To: <20170518172543.32694-3-quintela@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 02/11] migration: Remove unneeded includes of migration/vmstate.h List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Juan Quintela , qemu-devel@nongnu.org Cc: dgilbert@redhat.com, peterx@redhat.com On 18/05/2017 19:25, Juan Quintela wrote: > Signed-off-by: Juan Quintela > Reviewed-by: Philippe Mathieu-Daud=C3=A9 > --- > hw/core/qdev.c | 1 - > include/hw/acpi/memory_hotplug.h | 1 - > include/hw/acpi/pcihp.h | 1 - > include/hw/pci/shpc.h | 1 - > include/net/net.h | 1 - > target/alpha/cpu.c | 1 - > target/hppa/cpu.c | 1 - > target/s390x/cpu.c | 1 - > target/tilegx/cpu.c | 1 - > 9 files changed, 9 deletions(-) >=20 > diff --git a/hw/core/qdev.c b/hw/core/qdev.c > index 71ff95f..0ce45a2 100644 > --- a/hw/core/qdev.c > +++ b/hw/core/qdev.c > @@ -37,7 +37,6 @@ > #include "hw/boards.h" > #include "hw/sysbus.h" > #include "qapi-event.h" > -#include "migration/vmstate.h" > =20 > bool qdev_hotplug =3D false; > static bool qdev_hot_added =3D false; This one uses "VMStateDescription", "vmstate_check_only_migratable", "vmstate_register_with_alias_id" and "vmstate_unregister" from migration/savevm.h > diff --git a/include/hw/acpi/memory_hotplug.h b/include/hw/acpi/memory_= hotplug.h > index db8ebc9..77c6576 100644 > --- a/include/hw/acpi/memory_hotplug.h > +++ b/include/hw/acpi/memory_hotplug.h > @@ -3,7 +3,6 @@ > =20 > #include "hw/qdev-core.h" > #include "hw/acpi/acpi.h" > -#include "migration/vmstate.h" > #include "hw/acpi/aml-build.h" > =20 > /** This one uses "VMSTATE_STRUCT()" which is defined in migration/vmstate.h > diff --git a/include/hw/acpi/pcihp.h b/include/hw/acpi/pcihp.h > index 04528b7..8a65f99 100644 > --- a/include/hw/acpi/pcihp.h > +++ b/include/hw/acpi/pcihp.h > @@ -28,7 +28,6 @@ > #define HW_ACPI_PCIHP_H > =20 > #include "hw/acpi/acpi.h" > -#include "migration/vmstate.h" > #include "hw/hotplug.h" > =20 > #define ACPI_PCIHP_IO_BASE_PROP "acpi-pcihp-io-base" This one uses "VMSTATE_STRUCT()" which is defined in migration/vmstate.h > diff --git a/include/hw/pci/shpc.h b/include/hw/pci/shpc.h > index b208554..71e836b 100644 > --- a/include/hw/pci/shpc.h > +++ b/include/hw/pci/shpc.h > @@ -3,7 +3,6 @@ > =20 > #include "qemu-common.h" > #include "exec/memory.h" > -#include "migration/vmstate.h" > #include "hw/hotplug.h" > #include "hw/pci/pci.h" This one uses "VMSTATE_BUFFER_UNSAFE_INFO_TEST()" which is defined in migration/vmstate.h. > =20 > diff --git a/include/net/net.h b/include/net/net.h > index 99b28d5..ba663bd 100644 > --- a/include/net/net.h > +++ b/include/net/net.h > @@ -6,7 +6,6 @@ > #include "qapi/qmp/qdict.h" > #include "qemu/option.h" > #include "net/queue.h" > -#include "migration/vmstate.h" > #include "qapi-types.h" > =20 > #define MAC_FMT "%02X:%02X:%02X:%02X:%02X:%02X" This one uses "vmstate_offset_array()" which is defined in migration/vmstate.h Perhaps you can explain why you think they are unneeded? Thanks, Laurent