diff options
author | Markus Armbruster <armbru@redhat.com> | 2019-08-12 07:23:51 +0200 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2019-08-16 13:31:53 +0200 |
commit | a27bd6c779badb8d76e4430d810ef710a1b98f4e (patch) | |
tree | b7631b26b400537ff383b13e9e9deb299cef85b4 /hw/dma | |
parent | db725815985654007ade0fd53590d613fd657208 (diff) |
Include hw/qdev-properties.h less
In my "build everything" tree, changing hw/qdev-properties.h triggers
a recompile of some 2700 out of 6600 objects (not counting tests and
objects that don't depend on qemu/osdep.h).
Many places including hw/qdev-properties.h (directly or via hw/qdev.h)
actually need only hw/qdev-core.h. Include hw/qdev-core.h there
instead.
hw/qdev.h is actually pointless: all it does is include hw/qdev-core.h
and hw/qdev-properties.h, which in turn includes hw/qdev-core.h.
Replace the remaining uses of hw/qdev.h by hw/qdev-properties.h.
While there, delete a few superfluous inclusions of hw/qdev-core.h.
Touching hw/qdev-properties.h now recompiles some 1200 objects.
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: "Daniel P. Berrangé" <berrange@redhat.com>
Cc: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Message-Id: <20190812052359.30071-22-armbru@redhat.com>
Diffstat (limited to 'hw/dma')
-rw-r--r-- | hw/dma/i82374.c | 1 | ||||
-rw-r--r-- | hw/dma/i8257.c | 1 | ||||
-rw-r--r-- | hw/dma/pl080.c | 1 | ||||
-rw-r--r-- | hw/dma/pl330.c | 1 | ||||
-rw-r--r-- | hw/dma/pxa2xx_dma.c | 1 | ||||
-rw-r--r-- | hw/dma/sparc32_dma.c | 1 | ||||
-rw-r--r-- | hw/dma/xilinx_axidma.c | 1 | ||||
-rw-r--r-- | hw/dma/xlnx-zdma.c | 1 |
8 files changed, 8 insertions, 0 deletions
diff --git a/hw/dma/i82374.c b/hw/dma/i82374.c index 3f0db4a021..b788b3681a 100644 --- a/hw/dma/i82374.c +++ b/hw/dma/i82374.c @@ -26,6 +26,7 @@ #include "qapi/error.h" #include "qemu/module.h" #include "hw/isa/isa.h" +#include "hw/qdev-properties.h" #include "migration/vmstate.h" #include "hw/dma/i8257.h" diff --git a/hw/dma/i8257.c b/hw/dma/i8257.c index c626bd958a..792f617eb4 100644 --- a/hw/dma/i8257.c +++ b/hw/dma/i8257.c @@ -24,6 +24,7 @@ #include "qemu/osdep.h" #include "hw/isa/isa.h" +#include "hw/qdev-properties.h" #include "migration/vmstate.h" #include "hw/dma/i8257.h" #include "qemu/main-loop.h" diff --git a/hw/dma/pl080.c b/hw/dma/pl080.c index 3713d5dadd..52ba23f4bf 100644 --- a/hw/dma/pl080.c +++ b/hw/dma/pl080.c @@ -16,6 +16,7 @@ #include "hw/dma/pl080.h" #include "hw/hw.h" #include "hw/irq.h" +#include "hw/qdev-properties.h" #include "qapi/error.h" #define PL080_CONF_E 0x1 diff --git a/hw/dma/pl330.c b/hw/dma/pl330.c index 28830a42a3..f2bb2d9ac1 100644 --- a/hw/dma/pl330.c +++ b/hw/dma/pl330.c @@ -17,6 +17,7 @@ #include "qemu/osdep.h" #include "qemu-common.h" #include "hw/irq.h" +#include "hw/qdev-properties.h" #include "hw/sysbus.h" #include "migration/vmstate.h" #include "qapi/error.h" diff --git a/hw/dma/pxa2xx_dma.c b/hw/dma/pxa2xx_dma.c index 1124051730..18e7a0b694 100644 --- a/hw/dma/pxa2xx_dma.c +++ b/hw/dma/pxa2xx_dma.c @@ -11,6 +11,7 @@ #include "qemu/osdep.h" #include "hw/hw.h" #include "hw/irq.h" +#include "hw/qdev-properties.h" #include "hw/arm/pxa.h" #include "hw/sysbus.h" #include "migration/vmstate.h" diff --git a/hw/dma/sparc32_dma.c b/hw/dma/sparc32_dma.c index 16d53b92dd..0e5bbcdc7f 100644 --- a/hw/dma/sparc32_dma.c +++ b/hw/dma/sparc32_dma.c @@ -27,6 +27,7 @@ #include "qemu/osdep.h" #include "hw/irq.h" +#include "hw/qdev-properties.h" #include "hw/sparc/sparc32_dma.h" #include "hw/sparc/sun4m_iommu.h" #include "hw/sysbus.h" diff --git a/hw/dma/xilinx_axidma.c b/hw/dma/xilinx_axidma.c index 2c2d567a95..d176df6d44 100644 --- a/hw/dma/xilinx_axidma.c +++ b/hw/dma/xilinx_axidma.c @@ -29,6 +29,7 @@ #include "hw/hw.h" #include "hw/irq.h" #include "hw/ptimer.h" +#include "hw/qdev-properties.h" #include "qemu/log.h" #include "qemu/main-loop.h" #include "qemu/module.h" diff --git a/hw/dma/xlnx-zdma.c b/hw/dma/xlnx-zdma.c index 2dbdfc5739..75b660988f 100644 --- a/hw/dma/xlnx-zdma.c +++ b/hw/dma/xlnx-zdma.c @@ -29,6 +29,7 @@ #include "qemu/osdep.h" #include "hw/dma/xlnx-zdma.h" #include "hw/irq.h" +#include "hw/qdev-properties.h" #include "migration/vmstate.h" #include "qemu/bitops.h" #include "qemu/log.h" |