diff options
author | Markus Armbruster <armbru@redhat.com> | 2019-08-12 07:23:48 +0200 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2019-08-16 13:31:52 +0200 |
commit | 650d103d3ea959212f826acb9d3fe80cf30e347b (patch) | |
tree | d77413eb83368a13ba4dfd0d592997602fa963df /hw/i386 | |
parent | e7febd959740d45c0fc07ce63d834815483afaa0 (diff) |
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>
Diffstat (limited to 'hw/i386')
-rw-r--r-- | hw/i386/amd_iommu.h | 1 | ||||
-rw-r--r-- | hw/i386/multiboot.c | 1 | ||||
-rw-r--r-- | hw/i386/pc.c | 1 | ||||
-rw-r--r-- | hw/i386/pc_piix.c | 1 | ||||
-rw-r--r-- | hw/i386/pc_q35.c | 1 | ||||
-rw-r--r-- | hw/i386/pc_sysfw.c | 1 | ||||
-rw-r--r-- | hw/i386/vmmouse.c | 1 | ||||
-rw-r--r-- | hw/i386/vmport.c | 1 | ||||
-rw-r--r-- | hw/i386/xen/xen-hvm.c | 1 | ||||
-rw-r--r-- | hw/i386/xen/xen_platform.c | 1 | ||||
-rw-r--r-- | hw/i386/xen/xen_pvdevice.c | 1 |
11 files changed, 1 insertions, 10 deletions
diff --git a/hw/i386/amd_iommu.h b/hw/i386/amd_iommu.h index 3a694b186b..e05a4eff5d 100644 --- a/hw/i386/amd_iommu.h +++ b/hw/i386/amd_iommu.h @@ -21,7 +21,6 @@ #ifndef AMD_IOMMU_H #define AMD_IOMMU_H -#include "hw/hw.h" #include "hw/pci/pci.h" #include "hw/i386/x86-iommu.h" diff --git a/hw/i386/multiboot.c b/hw/i386/multiboot.c index a3e33fbe5e..9a59f95497 100644 --- a/hw/i386/multiboot.c +++ b/hw/i386/multiboot.c @@ -25,7 +25,6 @@ #include "qemu/osdep.h" #include "qemu/option.h" #include "cpu.h" -#include "hw/hw.h" #include "hw/nvram/fw_cfg.h" #include "multiboot.h" #include "hw/loader.h" diff --git a/hw/i386/pc.c b/hw/i386/pc.c index 1e8251d327..14fe8233ae 100644 --- a/hw/i386/pc.c +++ b/hw/i386/pc.c @@ -24,7 +24,6 @@ #include "qemu/osdep.h" #include "qemu/units.h" -#include "hw/hw.h" #include "hw/i386/pc.h" #include "hw/char/serial.h" #include "hw/char/parallel.h" diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c index 129f47493b..2fbb581c46 100644 --- a/hw/i386/pc_piix.c +++ b/hw/i386/pc_piix.c @@ -26,7 +26,6 @@ #include "config-devices.h" #include "qemu/units.h" -#include "hw/hw.h" #include "hw/loader.h" #include "hw/i386/pc.h" #include "hw/i386/apic.h" diff --git a/hw/i386/pc_q35.c b/hw/i386/pc_q35.c index 397e1fdd2f..060b47f845 100644 --- a/hw/i386/pc_q35.c +++ b/hw/i386/pc_q35.c @@ -30,7 +30,6 @@ #include "qemu/osdep.h" #include "qemu/units.h" -#include "hw/hw.h" #include "hw/loader.h" #include "sysemu/arch_init.h" #include "hw/i2c/smbus_eeprom.h" diff --git a/hw/i386/pc_sysfw.c b/hw/i386/pc_sysfw.c index de43943af8..defea37fe4 100644 --- a/hw/i386/pc_sysfw.c +++ b/hw/i386/pc_sysfw.c @@ -31,7 +31,6 @@ #include "qemu/option.h" #include "qemu/units.h" #include "hw/sysbus.h" -#include "hw/hw.h" #include "hw/i386/pc.h" #include "hw/boards.h" #include "hw/loader.h" diff --git a/hw/i386/vmmouse.c b/hw/i386/vmmouse.c index a50f5d5dd4..4f81504577 100644 --- a/hw/i386/vmmouse.c +++ b/hw/i386/vmmouse.c @@ -23,7 +23,6 @@ */ #include "qemu/osdep.h" -#include "hw/hw.h" #include "ui/console.h" #include "hw/i386/pc.h" #include "hw/input/i8042.h" diff --git a/hw/i386/vmport.c b/hw/i386/vmport.c index 3bf8cfe041..26fcbe3827 100644 --- a/hw/i386/vmport.c +++ b/hw/i386/vmport.c @@ -22,7 +22,6 @@ * THE SOFTWARE. */ #include "qemu/osdep.h" -#include "hw/hw.h" #include "hw/isa/isa.h" #include "hw/i386/pc.h" #include "hw/input/i8042.h" diff --git a/hw/i386/xen/xen-hvm.c b/hw/i386/xen/xen-hvm.c index f769cd91f2..63abace70a 100644 --- a/hw/i386/xen/xen-hvm.c +++ b/hw/i386/xen/xen-hvm.c @@ -15,6 +15,7 @@ #include "hw/pci/pci_host.h" #include "hw/i386/pc.h" #include "hw/irq.h" +#include "hw/hw.h" #include "hw/i386/apic-msidef.h" #include "hw/xen/xen_common.h" #include "hw/xen/xen-legacy-backend.h" diff --git a/hw/i386/xen/xen_platform.c b/hw/i386/xen/xen_platform.c index 800687a188..0f7b05e5e1 100644 --- a/hw/i386/xen/xen_platform.c +++ b/hw/i386/xen/xen_platform.c @@ -25,7 +25,6 @@ #include "qemu/osdep.h" #include "qapi/error.h" -#include "hw/hw.h" #include "hw/ide.h" #include "hw/pci/pci.h" #include "hw/irq.h" diff --git a/hw/i386/xen/xen_pvdevice.c b/hw/i386/xen/xen_pvdevice.c index 700db81cbc..10c89cda41 100644 --- a/hw/i386/xen/xen_pvdevice.c +++ b/hw/i386/xen/xen_pvdevice.c @@ -32,7 +32,6 @@ #include "qemu/osdep.h" #include "qapi/error.h" #include "qemu/module.h" -#include "hw/hw.h" #include "hw/pci/pci.h" #include "migration/vmstate.h" #include "trace.h" |