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/audio | |
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/audio')
-rw-r--r-- | hw/audio/ac97.c | 1 | ||||
-rw-r--r-- | hw/audio/adlib.c | 1 | ||||
-rw-r--r-- | hw/audio/cs4231a.c | 2 | ||||
-rw-r--r-- | hw/audio/gus.c | 1 | ||||
-rw-r--r-- | hw/audio/hda-codec.c | 1 | ||||
-rw-r--r-- | hw/audio/intel-hda.c | 1 | ||||
-rw-r--r-- | hw/audio/intel-hda.h | 2 | ||||
-rw-r--r-- | hw/audio/marvell_88w8618.c | 1 | ||||
-rw-r--r-- | hw/audio/pl041.c | 1 | ||||
-rw-r--r-- | hw/audio/sb16.c | 2 |
10 files changed, 10 insertions, 3 deletions
diff --git a/hw/audio/ac97.c b/hw/audio/ac97.c index 9af584fb12..115ee51c7c 100644 --- a/hw/audio/ac97.c +++ b/hw/audio/ac97.c @@ -21,6 +21,7 @@ #include "hw/audio/soundhw.h" #include "audio/audio.h" #include "hw/pci/pci.h" +#include "hw/qdev-properties.h" #include "migration/vmstate.h" #include "qemu/module.h" #include "sysemu/dma.h" diff --git a/hw/audio/adlib.c b/hw/audio/adlib.c index 62e59ccee6..2f4aacbf43 100644 --- a/hw/audio/adlib.c +++ b/hw/audio/adlib.c @@ -28,6 +28,7 @@ #include "hw/audio/soundhw.h" #include "audio/audio.h" #include "hw/isa/isa.h" +#include "hw/qdev-properties.h" //#define DEBUG diff --git a/hw/audio/cs4231a.c b/hw/audio/cs4231a.c index 383200e1e2..d77a4e713e 100644 --- a/hw/audio/cs4231a.c +++ b/hw/audio/cs4231a.c @@ -27,7 +27,7 @@ #include "audio/audio.h" #include "hw/irq.h" #include "hw/isa/isa.h" -#include "hw/qdev.h" +#include "hw/qdev-properties.h" #include "migration/vmstate.h" #include "qemu/module.h" #include "qemu/timer.h" diff --git a/hw/audio/gus.c b/hw/audio/gus.c index 787e04774a..dbfe7cf634 100644 --- a/hw/audio/gus.c +++ b/hw/audio/gus.c @@ -29,6 +29,7 @@ #include "audio/audio.h" #include "hw/irq.h" #include "hw/isa/isa.h" +#include "hw/qdev-properties.h" #include "migration/vmstate.h" #include "gusemu.h" #include "gustate.h" diff --git a/hw/audio/hda-codec.c b/hw/audio/hda-codec.c index 4c33c477e1..4fee0673d9 100644 --- a/hw/audio/hda-codec.c +++ b/hw/audio/hda-codec.c @@ -19,6 +19,7 @@ #include "qemu/osdep.h" #include "hw/pci/pci.h" +#include "hw/qdev-properties.h" #include "intel-hda.h" #include "migration/vmstate.h" #include "qemu/module.h" diff --git a/hw/audio/intel-hda.c b/hw/audio/intel-hda.c index 5a1fcded55..6ecd383540 100644 --- a/hw/audio/intel-hda.c +++ b/hw/audio/intel-hda.c @@ -19,6 +19,7 @@ #include "qemu/osdep.h" #include "hw/pci/pci.h" +#include "hw/qdev-properties.h" #include "hw/pci/msi.h" #include "qemu/timer.h" #include "qemu/bitops.h" diff --git a/hw/audio/intel-hda.h b/hw/audio/intel-hda.h index 53b78da4df..eee6fee5af 100644 --- a/hw/audio/intel-hda.h +++ b/hw/audio/intel-hda.h @@ -1,7 +1,7 @@ #ifndef HW_INTEL_HDA_H #define HW_INTEL_HDA_H -#include "hw/qdev.h" +#include "hw/qdev-core.h" /* --------------------------------------------------------------------- */ /* hda bus */ diff --git a/hw/audio/marvell_88w8618.c b/hw/audio/marvell_88w8618.c index 158a456a41..883ef74c8b 100644 --- a/hw/audio/marvell_88w8618.c +++ b/hw/audio/marvell_88w8618.c @@ -14,6 +14,7 @@ #include "hw/sysbus.h" #include "migration/vmstate.h" #include "hw/irq.h" +#include "hw/qdev-properties.h" #include "hw/audio/wm8750.h" #include "audio/audio.h" #include "qapi/error.h" diff --git a/hw/audio/pl041.c b/hw/audio/pl041.c index 3c371397de..ca91399078 100644 --- a/hw/audio/pl041.c +++ b/hw/audio/pl041.c @@ -22,6 +22,7 @@ #include "qemu/osdep.h" #include "hw/irq.h" +#include "hw/qdev-properties.h" #include "hw/sysbus.h" #include "qemu/log.h" #include "qemu/module.h" diff --git a/hw/audio/sb16.c b/hw/audio/sb16.c index 818659546f..3ad01f3599 100644 --- a/hw/audio/sb16.c +++ b/hw/audio/sb16.c @@ -27,7 +27,7 @@ #include "audio/audio.h" #include "hw/irq.h" #include "hw/isa/isa.h" -#include "hw/qdev.h" +#include "hw/qdev-properties.h" #include "migration/vmstate.h" #include "qemu/timer.h" #include "qemu/host-utils.h" |