diff options
author | Markus Armbruster | 2019-08-12 07:23:42 +0200 |
---|---|---|
committer | Markus Armbruster | 2019-08-16 13:31:52 +0200 |
commit | 64552b6be4758d3a774f7787b294543ccebd5358 (patch) | |
tree | 585e4f41f5bc934e7dbdba73a2e49dc23ac4e190 /hw/input | |
parent | typedefs: Separate incomplete types and function types (diff) | |
download | qemu-64552b6be4758d3a774f7787b294543ccebd5358.tar.gz qemu-64552b6be4758d3a774f7787b294543ccebd5358.tar.xz qemu-64552b6be4758d3a774f7787b294543ccebd5358.zip |
Include hw/irq.h a lot less
In my "build everything" tree, changing hw/irq.h triggers a recompile
of some 5400 out of 6600 objects (not counting tests and objects that
don't depend on qemu/osdep.h).
hw/hw.h supposedly includes it for convenience. Several other headers
include it just to get qemu_irq and.or qemu_irq_handler.
Move the qemu_irq and qemu_irq_handler typedefs from hw/irq.h to
qemu/typedefs.h, and then include hw/irq.h only where it's still
needed. Touching it now recompiles only some 500 objects.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20190812052359.30071-13-armbru@redhat.com>
Diffstat (limited to 'hw/input')
-rw-r--r-- | hw/input/lm832x.c | 1 | ||||
-rw-r--r-- | hw/input/milkymist-softusb.c | 1 | ||||
-rw-r--r-- | hw/input/pckbd.c | 1 | ||||
-rw-r--r-- | hw/input/pl050.c | 1 | ||||
-rw-r--r-- | hw/input/pxa2xx_keypad.c | 1 | ||||
-rw-r--r-- | hw/input/stellaris_input.c | 2 | ||||
-rw-r--r-- | hw/input/tsc2005.c | 1 | ||||
-rw-r--r-- | hw/input/tsc210x.c | 1 |
8 files changed, 9 insertions, 0 deletions
diff --git a/hw/input/lm832x.c b/hw/input/lm832x.c index ebb72c6590..2ab6d3290b 100644 --- a/hw/input/lm832x.c +++ b/hw/input/lm832x.c @@ -21,6 +21,7 @@ #include "qemu/osdep.h" #include "hw/hw.h" #include "hw/i2c/i2c.h" +#include "hw/irq.h" #include "qemu/module.h" #include "qemu/timer.h" #include "sysemu/reset.h" diff --git a/hw/input/milkymist-softusb.c b/hw/input/milkymist-softusb.c index f779cd4370..92e07fbd8c 100644 --- a/hw/input/milkymist-softusb.c +++ b/hw/input/milkymist-softusb.c @@ -28,6 +28,7 @@ #include "trace.h" #include "ui/console.h" #include "hw/input/hid.h" +#include "hw/irq.h" #include "qemu/error-report.h" #include "qemu/module.h" diff --git a/hw/input/pckbd.c b/hw/input/pckbd.c index 5d06a53362..7e76ee7ad3 100644 --- a/hw/input/pckbd.c +++ b/hw/input/pckbd.c @@ -28,6 +28,7 @@ #include "hw/isa/isa.h" #include "hw/i386/pc.h" #include "hw/input/ps2.h" +#include "hw/irq.h" #include "hw/input/i8042.h" #include "sysemu/reset.h" #include "sysemu/sysemu.h" diff --git a/hw/input/pl050.c b/hw/input/pl050.c index b79bf1647d..2318dbfeac 100644 --- a/hw/input/pl050.c +++ b/hw/input/pl050.c @@ -10,6 +10,7 @@ #include "qemu/osdep.h" #include "hw/sysbus.h" #include "hw/input/ps2.h" +#include "hw/irq.h" #include "qemu/log.h" #include "qemu/module.h" diff --git a/hw/input/pxa2xx_keypad.c b/hw/input/pxa2xx_keypad.c index 93db9ed25b..4788c96d19 100644 --- a/hw/input/pxa2xx_keypad.c +++ b/hw/input/pxa2xx_keypad.c @@ -13,6 +13,7 @@ #include "qemu/osdep.h" #include "hw/hw.h" +#include "hw/irq.h" #include "hw/arm/pxa.h" #include "ui/console.h" diff --git a/hw/input/stellaris_input.c b/hw/input/stellaris_input.c index 3a666d61d4..ffea0542ba 100644 --- a/hw/input/stellaris_input.c +++ b/hw/input/stellaris_input.c @@ -6,9 +6,11 @@ * * This code is licensed under the GPL. */ + #include "qemu/osdep.h" #include "hw/hw.h" #include "hw/input/gamepad.h" +#include "hw/irq.h" #include "ui/console.h" typedef struct { diff --git a/hw/input/tsc2005.c b/hw/input/tsc2005.c index 0a0431744c..e21356c18d 100644 --- a/hw/input/tsc2005.c +++ b/hw/input/tsc2005.c @@ -25,6 +25,7 @@ #include "sysemu/reset.h" #include "ui/console.h" #include "hw/input/tsc2xxx.h" +#include "hw/irq.h" #include "trace.h" #define TSC_CUT_RESOLUTION(value, p) ((value) >> (16 - (p ? 12 : 10))) diff --git a/hw/input/tsc210x.c b/hw/input/tsc210x.c index d2486f4b4e..be7d948168 100644 --- a/hw/input/tsc210x.c +++ b/hw/input/tsc210x.c @@ -27,6 +27,7 @@ #include "ui/console.h" #include "hw/arm/omap.h" /* For I2SCodec */ #include "hw/input/tsc2xxx.h" +#include "hw/irq.h" #define TSC_DATA_REGISTERS_PAGE 0x0 #define TSC_CONTROL_REGISTERS_PAGE 0x1 |