[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v3 09/29] Include migration/qemu-file-types.h a
From: |
Markus Armbruster |
Subject: |
Re: [Qemu-devel] [PATCH v3 09/29] Include migration/qemu-file-types.h a lot less |
Date: |
Fri, 09 Aug 2019 13:48:38 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) |
Philippe Mathieu-Daudé <address@hidden> writes:
> On 8/9/19 8:46 AM, Markus Armbruster wrote:
>> In my "build everything" tree, changing migration/qemu-file-types.h
>> triggers a recompile of some 2600 out of 6600 objects (not counting
>> tests and objects that don't depend on qemu/osdep.h).
>>
>> The culprit is again hw/hw.h, which supposedly includes it for
>> convenience.
>>
>> Include migration/qemu-file-types.h only where it's needed. Touching
>> it now recompiles less than 200 objects.
>>
>> Signed-off-by: Markus Armbruster <address@hidden>
>> ---
> [...]
>> diff --git a/hw/intc/s390_flic.c b/hw/intc/s390_flic.c
>> index d0be755c82..83c72ee18d 100644
>> --- a/hw/intc/s390_flic.c
>> +++ b/hw/intc/s390_flic.c
>> @@ -22,6 +22,7 @@
>> #include "hw/qdev.h"
>> #include "qapi/error.h"
>> #include "hw/s390x/s390-virtio-ccw.h"
>> +#include "migration/qemu-file-types.h"
>>
>> S390FLICStateClass *s390_get_flic_class(S390FLICState *fs)
>> {
>
> I am not sure this one requires it.
> Did you edit the incorrect file? I still get:
>
> $ make docker-run-test-build@debian-s390x-cross
> [...]
> hw/intc/s390_flic_kvm.c: In function 'kvm_flic_save':
> hw/intc/s390_flic_kvm.c:395:9: error: implicit declaration of function
> 'qemu_put_be64' [-Werror=implicit-function-declaration]
> qemu_put_be64(f, FLIC_FAILED);
> ^~~~~~~~~~~~~
You're right. Will fix.
- [Qemu-devel] [PATCH v3 00/29] Tame a few "touch this, recompile the world" headers, Markus Armbruster, 2019/08/09
- [Qemu-devel] [PATCH v3 02/29] Include generated QAPI headers less, Markus Armbruster, 2019/08/09
- [Qemu-devel] [PATCH v3 04/29] memory: Fix type of IOMMUMemoryRegionClass member @parent_class, Markus Armbruster, 2019/08/09
- [Qemu-devel] [PATCH v3 05/29] queue: Drop superfluous #include qemu/atomic.h, Markus Armbruster, 2019/08/09
- [Qemu-devel] [PATCH v3 09/29] Include migration/qemu-file-types.h a lot less, Markus Armbruster, 2019/08/09
- [Qemu-devel] [PATCH v3 07/29] trace: Do not include qom/cpu.h into generated trace.h, Markus Armbruster, 2019/08/09
- [Qemu-devel] [PATCH v3 03/29] qapi: Split error.json off common.json, Markus Armbruster, 2019/08/09
- [Qemu-devel] [PATCH v3 24/29] Include sysemu/hostmem.h less, Markus Armbruster, 2019/08/09
- [Qemu-devel] [PATCH v3 13/29] Clean up inclusion of exec/cpu-common.h, Markus Armbruster, 2019/08/09
- [Qemu-devel] [PATCH v3 01/29] include: Make headers more self-contained, Markus Armbruster, 2019/08/09
- [Qemu-devel] [PATCH v3 11/29] typedefs: Separate incomplete types and function types, Markus Armbruster, 2019/08/09
- [Qemu-devel] [PATCH v3 08/29] Include sysemu/reset.h a lot less, Markus Armbruster, 2019/08/09
- [Qemu-devel] [PATCH v3 19/29] Include qemu/queue.h slightly less, Markus Armbruster, 2019/08/09