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/timer | |
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/timer')
-rw-r--r-- | hw/timer/a9gtimer.c | 1 | ||||
-rw-r--r-- | hw/timer/arm_mptimer.c | 1 | ||||
-rw-r--r-- | hw/timer/exynos4210_mct.c | 1 | ||||
-rw-r--r-- | hw/timer/exynos4210_rtc.c | 1 | ||||
-rw-r--r-- | hw/timer/hpet.c | 1 | ||||
-rw-r--r-- | hw/timer/i8254.c | 1 | ||||
-rw-r--r-- | hw/timer/i8254_common.c | 1 | ||||
-rw-r--r-- | hw/timer/lm32_timer.c | 1 | ||||
-rw-r--r-- | hw/timer/m48t59.c | 1 | ||||
-rw-r--r-- | hw/timer/mc146818rtc.c | 1 | ||||
-rw-r--r-- | hw/timer/milkymist-sysctl.c | 1 | ||||
-rw-r--r-- | hw/timer/mips_gictimer.c | 1 | ||||
-rw-r--r-- | hw/timer/omap_gptimer.c | 1 | ||||
-rw-r--r-- | hw/timer/omap_synctimer.c | 1 | ||||
-rw-r--r-- | hw/timer/pxa2xx_timer.c | 1 | ||||
-rw-r--r-- | hw/timer/sun4v-rtc.c | 1 | ||||
-rw-r--r-- | hw/timer/twl92230.c | 1 |
17 files changed, 3 insertions, 14 deletions
diff --git a/hw/timer/a9gtimer.c b/hw/timer/a9gtimer.c index b310dfb1b3..0339b92cf8 100644 --- a/hw/timer/a9gtimer.c +++ b/hw/timer/a9gtimer.c @@ -21,6 +21,7 @@ */ #include "qemu/osdep.h" +#include "hw/hw.h" #include "hw/irq.h" #include "hw/timer/a9gtimer.h" #include "migration/vmstate.h" diff --git a/hw/timer/arm_mptimer.c b/hw/timer/arm_mptimer.c index a13255d308..abfc5baa77 100644 --- a/hw/timer/arm_mptimer.c +++ b/hw/timer/arm_mptimer.c @@ -20,6 +20,7 @@ */ #include "qemu/osdep.h" +#include "hw/hw.h" #include "hw/irq.h" #include "hw/ptimer.h" #include "hw/timer/arm_mptimer.h" diff --git a/hw/timer/exynos4210_mct.c b/hw/timer/exynos4210_mct.c index 7f2af5287c..79b291863c 100644 --- a/hw/timer/exynos4210_mct.c +++ b/hw/timer/exynos4210_mct.c @@ -62,6 +62,7 @@ #include "hw/ptimer.h" #include "hw/arm/exynos4210.h" +#include "hw/hw.h" #include "hw/irq.h" //#define DEBUG_MCT diff --git a/hw/timer/exynos4210_rtc.c b/hw/timer/exynos4210_rtc.c index 561451059e..f79b970c5e 100644 --- a/hw/timer/exynos4210_rtc.c +++ b/hw/timer/exynos4210_rtc.c @@ -35,7 +35,6 @@ #include "qemu/bcd.h" #include "hw/ptimer.h" -#include "hw/hw.h" #include "hw/irq.h" #include "sysemu/sysemu.h" diff --git a/hw/timer/hpet.c b/hw/timer/hpet.c index 305704a339..1ddae4e7d7 100644 --- a/hw/timer/hpet.c +++ b/hw/timer/hpet.c @@ -25,7 +25,6 @@ */ #include "qemu/osdep.h" -#include "hw/hw.h" #include "hw/i386/pc.h" #include "hw/irq.h" #include "ui/console.h" diff --git a/hw/timer/i8254.c b/hw/timer/i8254.c index 97258757b1..a4be7330ef 100644 --- a/hw/timer/i8254.c +++ b/hw/timer/i8254.c @@ -23,7 +23,6 @@ */ #include "qemu/osdep.h" -#include "hw/hw.h" #include "hw/irq.h" #include "qemu/module.h" #include "qemu/timer.h" diff --git a/hw/timer/i8254_common.c b/hw/timer/i8254_common.c index 062e8690c4..57bf10cc94 100644 --- a/hw/timer/i8254_common.c +++ b/hw/timer/i8254_common.c @@ -24,7 +24,6 @@ */ #include "qemu/osdep.h" -#include "hw/hw.h" #include "hw/isa/isa.h" #include "qemu/module.h" #include "qemu/timer.h" diff --git a/hw/timer/lm32_timer.c b/hw/timer/lm32_timer.c index bfa9de76ba..a381e39f0a 100644 --- a/hw/timer/lm32_timer.c +++ b/hw/timer/lm32_timer.c @@ -22,7 +22,6 @@ */ #include "qemu/osdep.h" -#include "hw/hw.h" #include "hw/irq.h" #include "hw/sysbus.h" #include "migration/vmstate.h" diff --git a/hw/timer/m48t59.c b/hw/timer/m48t59.c index 1240315206..199003030a 100644 --- a/hw/timer/m48t59.c +++ b/hw/timer/m48t59.c @@ -25,7 +25,6 @@ #include "qemu/osdep.h" #include "qemu-common.h" -#include "hw/hw.h" #include "hw/irq.h" #include "hw/timer/m48t59.h" #include "qemu/timer.h" diff --git a/hw/timer/mc146818rtc.c b/hw/timer/mc146818rtc.c index b432662bc4..473935339d 100644 --- a/hw/timer/mc146818rtc.c +++ b/hw/timer/mc146818rtc.c @@ -27,7 +27,6 @@ #include "qemu/cutils.h" #include "qemu/module.h" #include "qemu/bcd.h" -#include "hw/hw.h" #include "hw/irq.h" #include "qemu/timer.h" #include "sysemu/sysemu.h" diff --git a/hw/timer/milkymist-sysctl.c b/hw/timer/milkymist-sysctl.c index 7c56224710..900b0b62a9 100644 --- a/hw/timer/milkymist-sysctl.c +++ b/hw/timer/milkymist-sysctl.c @@ -22,7 +22,6 @@ */ #include "qemu/osdep.h" -#include "hw/hw.h" #include "hw/irq.h" #include "hw/sysbus.h" #include "migration/vmstate.h" diff --git a/hw/timer/mips_gictimer.c b/hw/timer/mips_gictimer.c index f5c5806724..bc44cd934e 100644 --- a/hw/timer/mips_gictimer.c +++ b/hw/timer/mips_gictimer.c @@ -7,7 +7,6 @@ */ #include "qemu/osdep.h" -#include "hw/hw.h" #include "hw/sysbus.h" #include "qemu/timer.h" #include "hw/timer/mips_gictimer.h" diff --git a/hw/timer/omap_gptimer.c b/hw/timer/omap_gptimer.c index c34f60b5d4..c407190138 100644 --- a/hw/timer/omap_gptimer.c +++ b/hw/timer/omap_gptimer.c @@ -19,7 +19,6 @@ */ #include "qemu/osdep.h" -#include "hw/hw.h" #include "hw/irq.h" #include "qemu/timer.h" #include "hw/arm/omap.h" diff --git a/hw/timer/omap_synctimer.c b/hw/timer/omap_synctimer.c index 0d75a90f3a..72b997939b 100644 --- a/hw/timer/omap_synctimer.c +++ b/hw/timer/omap_synctimer.c @@ -18,7 +18,6 @@ * with this program; if not, see <http://www.gnu.org/licenses/>. */ #include "qemu/osdep.h" -#include "hw/hw.h" #include "qemu/timer.h" #include "hw/arm/omap.h" struct omap_synctimer_s { diff --git a/hw/timer/pxa2xx_timer.c b/hw/timer/pxa2xx_timer.c index f61053b3c6..99e6c1e250 100644 --- a/hw/timer/pxa2xx_timer.c +++ b/hw/timer/pxa2xx_timer.c @@ -8,7 +8,6 @@ */ #include "qemu/osdep.h" -#include "hw/hw.h" #include "hw/irq.h" #include "qemu/timer.h" #include "sysemu/sysemu.h" diff --git a/hw/timer/sun4v-rtc.c b/hw/timer/sun4v-rtc.c index ba62adc826..54272a822f 100644 --- a/hw/timer/sun4v-rtc.c +++ b/hw/timer/sun4v-rtc.c @@ -10,7 +10,6 @@ */ #include "qemu/osdep.h" -#include "hw/hw.h" #include "hw/sysbus.h" #include "qemu/module.h" #include "qemu/timer.h" diff --git a/hw/timer/twl92230.c b/hw/timer/twl92230.c index 6b2a25b9c9..63bd13d2ca 100644 --- a/hw/timer/twl92230.c +++ b/hw/timer/twl92230.c @@ -21,7 +21,6 @@ #include "qemu/osdep.h" #include "qemu-common.h" -#include "hw/hw.h" #include "qemu/timer.h" #include "hw/i2c/i2c.h" #include "hw/irq.h" |