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/net | |
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/net')
-rw-r--r-- | hw/net/can/can_kvaser_pci.c | 1 | ||||
-rw-r--r-- | hw/net/can/can_mioe3680_pci.c | 1 | ||||
-rw-r--r-- | hw/net/can/can_pcm3680_pci.c | 1 | ||||
-rw-r--r-- | hw/net/can/can_sja1000.c | 1 | ||||
-rw-r--r-- | hw/net/e1000.c | 1 | ||||
-rw-r--r-- | hw/net/e1000e.c | 1 | ||||
-rw-r--r-- | hw/net/e1000e_core.c | 1 | ||||
-rw-r--r-- | hw/net/e1000x_common.c | 1 | ||||
-rw-r--r-- | hw/net/eepro100.c | 1 | ||||
-rw-r--r-- | hw/net/lan9118.c | 1 | ||||
-rw-r--r-- | hw/net/milkymist-minimac2.c | 1 | ||||
-rw-r--r-- | hw/net/mipsnet.c | 1 | ||||
-rw-r--r-- | hw/net/ne2000.h | 1 | ||||
-rw-r--r-- | hw/net/opencores_eth.c | 1 | ||||
-rw-r--r-- | hw/net/rocker/rocker.c | 1 | ||||
-rw-r--r-- | hw/net/rocker/rocker_desc.c | 1 | ||||
-rw-r--r-- | hw/net/rtl8139.c | 1 | ||||
-rw-r--r-- | hw/net/spapr_llan.c | 1 | ||||
-rw-r--r-- | hw/net/sunhme.c | 1 | ||||
-rw-r--r-- | hw/net/xen_nic.c | 1 | ||||
-rw-r--r-- | hw/net/xilinx_axienet.c | 1 | ||||
-rw-r--r-- | hw/net/xilinx_ethlite.c | 1 |
22 files changed, 4 insertions, 18 deletions
diff --git a/hw/net/can/can_kvaser_pci.c b/hw/net/can/can_kvaser_pci.c index 10963ef58c..401da73cc8 100644 --- a/hw/net/can/can_kvaser_pci.c +++ b/hw/net/can/can_kvaser_pci.c @@ -36,7 +36,6 @@ #include "qemu/sockets.h" #include "qapi/error.h" #include "chardev/char.h" -#include "hw/hw.h" #include "hw/irq.h" #include "hw/pci/pci.h" #include "migration/vmstate.h" diff --git a/hw/net/can/can_mioe3680_pci.c b/hw/net/can/can_mioe3680_pci.c index 9e060dff01..0f0ca912c9 100644 --- a/hw/net/can/can_mioe3680_pci.c +++ b/hw/net/can/can_mioe3680_pci.c @@ -32,7 +32,6 @@ #include "qemu/sockets.h" #include "qapi/error.h" #include "chardev/char.h" -#include "hw/hw.h" #include "hw/irq.h" #include "hw/pci/pci.h" #include "migration/vmstate.h" diff --git a/hw/net/can/can_pcm3680_pci.c b/hw/net/can/can_pcm3680_pci.c index 5d12f0c552..632eb0b59b 100644 --- a/hw/net/can/can_pcm3680_pci.c +++ b/hw/net/can/can_pcm3680_pci.c @@ -32,7 +32,6 @@ #include "qemu/sockets.h" #include "qapi/error.h" #include "chardev/char.h" -#include "hw/hw.h" #include "hw/irq.h" #include "hw/pci/pci.h" #include "migration/vmstate.h" diff --git a/hw/net/can/can_sja1000.c b/hw/net/can/can_sja1000.c index 6c84be6d29..1f81341554 100644 --- a/hw/net/can/can_sja1000.c +++ b/hw/net/can/can_sja1000.c @@ -28,7 +28,6 @@ #include "qemu/osdep.h" #include "qemu/log.h" #include "chardev/char.h" -#include "hw/hw.h" #include "hw/irq.h" #include "migration/vmstate.h" #include "net/can_emu.h" diff --git a/hw/net/e1000.c b/hw/net/e1000.c index e4e91382f0..da5f3646fd 100644 --- a/hw/net/e1000.c +++ b/hw/net/e1000.c @@ -26,7 +26,6 @@ #include "qemu/osdep.h" -#include "hw/hw.h" #include "hw/pci/pci.h" #include "migration/vmstate.h" #include "net/net.h" diff --git a/hw/net/e1000e.c b/hw/net/e1000e.c index 22e3132581..270ff93841 100644 --- a/hw/net/e1000e.c +++ b/hw/net/e1000e.c @@ -40,6 +40,7 @@ #include "qemu/module.h" #include "qemu/range.h" #include "sysemu/sysemu.h" +#include "hw/hw.h" #include "hw/pci/msi.h" #include "hw/pci/msix.h" #include "migration/vmstate.h" diff --git a/hw/net/e1000e_core.c b/hw/net/e1000e_core.c index 2a221c2ef9..40e41fdd92 100644 --- a/hw/net/e1000e_core.c +++ b/hw/net/e1000e_core.c @@ -37,6 +37,7 @@ #include "sysemu/sysemu.h" #include "net/net.h" #include "net/tap.h" +#include "hw/hw.h" #include "hw/pci/msi.h" #include "hw/pci/msix.h" diff --git a/hw/net/e1000x_common.c b/hw/net/e1000x_common.c index 09047806f2..717f9df1c9 100644 --- a/hw/net/e1000x_common.c +++ b/hw/net/e1000x_common.c @@ -24,7 +24,6 @@ #include "qemu/osdep.h" #include "qemu/units.h" -#include "hw/hw.h" #include "hw/pci/pci.h" #include "net/net.h" diff --git a/hw/net/eepro100.c b/hw/net/eepro100.c index 3c1c534cbf..2ad1b328e4 100644 --- a/hw/net/eepro100.c +++ b/hw/net/eepro100.c @@ -42,7 +42,6 @@ #include "qemu/osdep.h" #include "qemu/units.h" -#include "hw/hw.h" #include "hw/pci/pci.h" #include "migration/vmstate.h" #include "net/net.h" diff --git a/hw/net/lan9118.c b/hw/net/lan9118.c index 937d5603e2..1d32cb79e2 100644 --- a/hw/net/lan9118.c +++ b/hw/net/lan9118.c @@ -15,6 +15,7 @@ #include "migration/vmstate.h" #include "net/net.h" #include "net/eth.h" +#include "hw/hw.h" #include "hw/irq.h" #include "hw/net/lan9118.h" #include "sysemu/sysemu.h" diff --git a/hw/net/milkymist-minimac2.c b/hw/net/milkymist-minimac2.c index a7d879f0ab..1e3fb9c220 100644 --- a/hw/net/milkymist-minimac2.c +++ b/hw/net/milkymist-minimac2.c @@ -25,7 +25,6 @@ #include "qemu/osdep.h" #include "qapi/error.h" #include "cpu.h" /* FIXME: why does this use TARGET_PAGE_ALIGN? */ -#include "hw/hw.h" #include "hw/irq.h" #include "hw/sysbus.h" #include "migration/vmstate.h" diff --git a/hw/net/mipsnet.c b/hw/net/mipsnet.c index 3910beb9a6..013f762d72 100644 --- a/hw/net/mipsnet.c +++ b/hw/net/mipsnet.c @@ -1,5 +1,4 @@ #include "qemu/osdep.h" -#include "hw/hw.h" #include "hw/irq.h" #include "net/net.h" #include "qemu/module.h" diff --git a/hw/net/ne2000.h b/hw/net/ne2000.h index 2cd193e4c6..fc75843703 100644 --- a/hw/net/ne2000.h +++ b/hw/net/ne2000.h @@ -2,7 +2,6 @@ #define HW_NE2000_H #include "qemu/units.h" -#include "hw/hw.h" #include "net/net.h" #define NE2000_PMEM_SIZE (32 * KiB) diff --git a/hw/net/opencores_eth.c b/hw/net/opencores_eth.c index 3e759d79d8..a9e96cdd3a 100644 --- a/hw/net/opencores_eth.c +++ b/hw/net/opencores_eth.c @@ -32,7 +32,6 @@ */ #include "qemu/osdep.h" -#include "hw/hw.h" #include "hw/irq.h" #include "hw/net/mii.h" #include "hw/sysbus.h" diff --git a/hw/net/rocker/rocker.c b/hw/net/rocker/rocker.c index 4ce8f62a2a..789e5c4876 100644 --- a/hw/net/rocker/rocker.c +++ b/hw/net/rocker/rocker.c @@ -16,7 +16,6 @@ */ #include "qemu/osdep.h" -#include "hw/hw.h" #include "hw/pci/pci.h" #include "migration/vmstate.h" #include "hw/pci/msix.h" diff --git a/hw/net/rocker/rocker_desc.c b/hw/net/rocker/rocker_desc.c index b009da4f89..01845f1157 100644 --- a/hw/net/rocker/rocker_desc.c +++ b/hw/net/rocker/rocker_desc.c @@ -16,7 +16,6 @@ #include "qemu/osdep.h" #include "net/net.h" -#include "hw/hw.h" #include "hw/pci/pci.h" #include "rocker.h" diff --git a/hw/net/rtl8139.c b/hw/net/rtl8139.c index 9975af44dd..89156ed802 100644 --- a/hw/net/rtl8139.c +++ b/hw/net/rtl8139.c @@ -53,7 +53,6 @@ #include "qemu/osdep.h" #include <zlib.h> -#include "hw/hw.h" #include "hw/pci/pci.h" #include "migration/vmstate.h" #include "sysemu/dma.h" diff --git a/hw/net/spapr_llan.c b/hw/net/spapr_llan.c index 0ce5e37a28..60085b1bf4 100644 --- a/hw/net/spapr_llan.c +++ b/hw/net/spapr_llan.c @@ -27,7 +27,6 @@ #include "qemu/osdep.h" #include "cpu.h" -#include "hw/hw.h" #include "hw/irq.h" #include "qemu/log.h" #include "qemu/module.h" diff --git a/hw/net/sunhme.c b/hw/net/sunhme.c index 9d8fd70f51..359bd4f9f5 100644 --- a/hw/net/sunhme.c +++ b/hw/net/sunhme.c @@ -23,7 +23,6 @@ */ #include "qemu/osdep.h" -#include "hw/hw.h" #include "hw/pci/pci.h" #include "migration/vmstate.h" #include "hw/net/mii.h" diff --git a/hw/net/xen_nic.c b/hw/net/xen_nic.c index ffb3b5898d..00a7fdf843 100644 --- a/hw/net/xen_nic.c +++ b/hw/net/xen_nic.c @@ -24,7 +24,6 @@ #include <sys/ioctl.h> #include <sys/wait.h> -#include "hw/hw.h" #include "net/net.h" #include "net/checksum.h" #include "net/util.h" diff --git a/hw/net/xilinx_axienet.c b/hw/net/xilinx_axienet.c index b1247a1d9b..b22e344a4b 100644 --- a/hw/net/xilinx_axienet.c +++ b/hw/net/xilinx_axienet.c @@ -30,6 +30,7 @@ #include "net/net.h" #include "net/checksum.h" +#include "hw/hw.h" #include "hw/irq.h" #include "hw/stream.h" diff --git a/hw/net/xilinx_ethlite.c b/hw/net/xilinx_ethlite.c index 27a4fc8d87..a963087f16 100644 --- a/hw/net/xilinx_ethlite.c +++ b/hw/net/xilinx_ethlite.c @@ -26,7 +26,6 @@ #include "qemu/module.h" #include "cpu.h" /* FIXME should not use tswap* */ #include "hw/sysbus.h" -#include "hw/hw.h" #include "hw/irq.h" #include "net/net.h" |