Include hw/hw.h exactly where needed
In my "build everything" tree, changing hw/hw.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 previous commits have left only the declaration of hw_error() in hw/hw.h. This permits dropping most of its inclusions. Touching it now recompiles less than 200 objects. Signed-off-by:Markus Armbruster <armbru@redhat.com> Reviewed-by:
Alistair Francis <alistair.francis@wdc.com> Message-Id: <20190812052359.30071-19-armbru@redhat.com> Reviewed-by:
Philippe Mathieu-Daudé <philmd@redhat.com> Tested-by:
Philippe Mathieu-Daudé <philmd@redhat.com>
Showing
- accel/kvm/kvm-all.c 0 additions, 1 deletionaccel/kvm/kvm-all.c
- audio/audio.c 0 additions, 1 deletionaudio/audio.c
- audio/spiceaudio.c 0 additions, 1 deletionaudio/spiceaudio.c
- audio/wavcapture.c 0 additions, 1 deletionaudio/wavcapture.c
- cpus.c 1 addition, 0 deletionscpus.c
- device-hotplug.c 0 additions, 1 deletiondevice-hotplug.c
- exec.c 0 additions, 1 deletionexec.c
- hw/9pfs/xen-9p-backend.c 0 additions, 1 deletionhw/9pfs/xen-9p-backend.c
- hw/acpi/core.c 0 additions, 1 deletionhw/acpi/core.c
- hw/acpi/cpu_hotplug.c 0 additions, 1 deletionhw/acpi/cpu_hotplug.c
- hw/acpi/ich9.c 0 additions, 1 deletionhw/acpi/ich9.c
- hw/acpi/pcihp.c 0 additions, 1 deletionhw/acpi/pcihp.c
- hw/acpi/piix4.c 0 additions, 1 deletionhw/acpi/piix4.c
- hw/adc/stm32f2xx_adc.c 0 additions, 1 deletionhw/adc/stm32f2xx_adc.c
- hw/alpha/dp264.c 0 additions, 1 deletionhw/alpha/dp264.c
- hw/alpha/typhoon.c 0 additions, 1 deletionhw/alpha/typhoon.c
- hw/arm/boot.c 0 additions, 1 deletionhw/arm/boot.c
- hw/arm/collie.c 0 additions, 1 deletionhw/arm/collie.c
- hw/arm/gumstix.c 0 additions, 1 deletionhw/arm/gumstix.c
- hw/arm/integratorcp.c 1 addition, 0 deletionshw/arm/integratorcp.c
Loading
Please register or sign in to comment