]> git.proxmox.com Git - mirror_qemu.git/commitdiff
hw: Do not include hw/sysbus.h if it is not necessary
authorThomas Huth <thuth@redhat.com>
Sat, 27 Mar 2021 08:28:04 +0000 (09:28 +0100)
committerLaurent Vivier <laurent@vivier.eu>
Sun, 2 May 2021 15:24:50 +0000 (17:24 +0200)
Many files include hw/sysbus.h without needing it. Remove the superfluous
include statements.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20210327082804.2259480-1-thuth@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
27 files changed:
hw/arm/cubieboard.c
hw/arm/orangepi.c
hw/char/riscv_htif.c
hw/char/sifive_uart.c
hw/char/virtio-serial-bus.c
hw/core/generic-loader.c
hw/core/guest-loader.c
hw/ide/ahci_internal.h
hw/input/lasips2.c
hw/intc/arm_gic_kvm.c
hw/intc/arm_gicv3.c
hw/intc/arm_gicv3_kvm.c
hw/intc/s390_flic_kvm.c
hw/isa/lpc_ich9.c
hw/isa/piix4.c
hw/moxie/moxiesim.c
hw/nios2/generic_nommu.c
hw/nubus/nubus-bus.c
hw/nvram/spapr_nvram.c
hw/rx/rx-gdbsim.c
hw/s390x/s390-ccw.c
hw/s390x/virtio-ccw.c
hw/timer/mips_gictimer.c
hw/usb/xen-usb.c
hw/vfio/ap.c
hw/vfio/ccw.c
hw/xen/xen-bus-helper.c

index 9d0d728180bce08c1ed56a9e8fb59e14d26748e4..3ec30ca5afa404a816285df61669c39f4e8c355b 100644 (file)
@@ -20,7 +20,6 @@
 #include "qapi/error.h"
 #include "cpu.h"
 #include "sysemu/sysemu.h"
-#include "hw/sysbus.h"
 #include "hw/boards.h"
 #include "hw/qdev-properties.h"
 #include "hw/arm/allwinner-a10.h"
index 40cdb5c6d2cbd61cf92fad4f0fc44fdce26aaab8..b8d38c9e8d045df21c5d752dec99422233a94a83 100644 (file)
@@ -22,7 +22,6 @@
 #include "exec/address-spaces.h"
 #include "qapi/error.h"
 #include "cpu.h"
-#include "hw/sysbus.h"
 #include "hw/boards.h"
 #include "hw/qdev-properties.h"
 #include "hw/arm/allwinner-h3.h"
index ba1af1cfc450891ffcad2b684d61a26da1807dc8..ddae738d56311e0562a2c92ce109e49c7075f216 100644 (file)
@@ -23,7 +23,6 @@
 #include "qemu/osdep.h"
 #include "qapi/error.h"
 #include "qemu/log.h"
-#include "hw/sysbus.h"
 #include "hw/char/riscv_htif.h"
 #include "hw/char/serial.h"
 #include "chardev/char.h"
index ee7adb8e3083cb85ca513ae0f293d185cecc3e2e..fe1266678932de82f8280b31cffae6cfffab4b7a 100644 (file)
@@ -19,7 +19,6 @@
 #include "qemu/osdep.h"
 #include "qapi/error.h"
 #include "qemu/log.h"
-#include "hw/sysbus.h"
 #include "chardev/char.h"
 #include "chardev/char-fe.h"
 #include "hw/irq.h"
index b20038991a6c26228f1e5378542029c3cdb66517..dd6bc27b3b5df6f10e34500307eb0ae3e45f83c5 100644 (file)
@@ -28,7 +28,6 @@
 #include "qemu/error-report.h"
 #include "qemu/queue.h"
 #include "hw/qdev-properties.h"
-#include "hw/sysbus.h"
 #include "trace.h"
 #include "hw/virtio/virtio-serial.h"
 #include "hw/virtio/virtio-access.h"
index 2b2a7b5e9aabda0f7f46ffbc6c337635ffbb09b2..d14f932eea2e1eb39d2f6dab3e54a6aca685aca8 100644 (file)
@@ -32,7 +32,6 @@
 
 #include "qemu/osdep.h"
 #include "hw/core/cpu.h"
-#include "hw/sysbus.h"
 #include "sysemu/dma.h"
 #include "sysemu/reset.h"
 #include "hw/boards.h"
index bde44e27b432c447187b00104a48bb421c76e655..d3f9d1a06eb309886d452da003c8b161ff7f22fd 100644 (file)
@@ -26,7 +26,6 @@
 
 #include "qemu/osdep.h"
 #include "hw/core/cpu.h"
-#include "hw/sysbus.h"
 #include "sysemu/dma.h"
 #include "hw/loader.h"
 #include "hw/qdev-properties.h"
index 7f32e87731d93e787187c6cd7bb609e3f60cc800..109de9e2d1128bd220463b0c9547c87a81192a5c 100644 (file)
@@ -26,7 +26,6 @@
 
 #include "hw/ide/ahci.h"
 #include "hw/ide/internal.h"
-#include "hw/sysbus.h"
 #include "hw/pci/pci.h"
 
 #define AHCI_MEM_BAR_SIZE         0x1000
index 60afb94c780e54ff44fd2c2638de8d24eb269a25..275737842e95bdeedcb14d0e20ed1feaf8103560 100644 (file)
@@ -26,7 +26,6 @@
 #include "hw/qdev-properties.h"
 #include "hw/input/ps2.h"
 #include "hw/input/lasips2.h"
-#include "hw/sysbus.h"
 #include "exec/hwaddr.h"
 #include "sysemu/sysemu.h"
 #include "trace.h"
index 9494185cf467e3ed82592f22f182df28f0f9b210..49f79a8674b0a8238ef4f0a3004bd6430f40c8cf 100644 (file)
@@ -23,7 +23,6 @@
 #include "qapi/error.h"
 #include "qemu/module.h"
 #include "cpu.h"
-#include "hw/sysbus.h"
 #include "migration/blocker.h"
 #include "sysemu/kvm.h"
 #include "kvm_arm.h"
index 66eaa9719828ca2c257cdee9e7e8b0f615e61e78..d63f8af604d69187ca8c4ead91dca04f209641cb 100644 (file)
@@ -18,7 +18,6 @@
 #include "qemu/osdep.h"
 #include "qapi/error.h"
 #include "qemu/module.h"
-#include "hw/sysbus.h"
 #include "hw/intc/arm_gicv3.h"
 #include "gicv3_internal.h"
 
index 65a4c880a351f04d78fd5c6c6760d6e176d8aa3d..5c09f00dec2bd590aa1f8ccf0b1e67c196e7409e 100644 (file)
@@ -22,7 +22,6 @@
 #include "qemu/osdep.h"
 #include "qapi/error.h"
 #include "hw/intc/arm_gicv3_common.h"
-#include "hw/sysbus.h"
 #include "qemu/error-report.h"
 #include "qemu/module.h"
 #include "sysemu/kvm.h"
index b3fb9f83952e789ee1e9e18395f5438c661243d3..d1c8fb8016a08e15b83d5876bc5642600f2ed77d 100644 (file)
@@ -17,7 +17,6 @@
 #include "qemu/error-report.h"
 #include "qemu/module.h"
 #include "qapi/error.h"
-#include "hw/sysbus.h"
 #include "sysemu/kvm.h"
 #include "hw/s390x/s390_flic.h"
 #include "hw/s390x/adapter.h"
index 3963b735207013e5c97b51ce73c971a6a8087609..160bea447aab713ec352bcbad3ac8064b036fc17 100644 (file)
@@ -34,7 +34,6 @@
 #include "qapi/visitor.h"
 #include "qemu/range.h"
 #include "hw/isa/isa.h"
-#include "hw/sysbus.h"
 #include "migration/vmstate.h"
 #include "hw/irq.h"
 #include "hw/isa/apm.h"
index b3b6a4378a334b1a4bf0105a685701a42d911a41..48c5dda2b65959c28175ff56ffbc2256245d0b4c 100644 (file)
@@ -29,7 +29,6 @@
 #include "hw/southbridge/piix.h"
 #include "hw/pci/pci.h"
 #include "hw/isa/isa.h"
-#include "hw/sysbus.h"
 #include "hw/intc/i8259.h"
 #include "hw/dma/i8257.h"
 #include "hw/timer/i8254.h"
index f7b57fcae19051c400087a59f1f40fc31558a9f2..196b730589d47fa21957af9ad909d2f7188375fa 100644 (file)
@@ -29,7 +29,6 @@
 #include "qemu/error-report.h"
 #include "qapi/error.h"
 #include "cpu.h"
-#include "hw/sysbus.h"
 #include "net/net.h"
 #include "sysemu/reset.h"
 #include "sysemu/sysemu.h"
index 19899e2c1ef8d6eb085f6bb5dff7dbefa02c7c10..b70a42dc2fc2827710dea9c63b2b627629bb4fd5 100644 (file)
@@ -31,7 +31,6 @@
 #include "qemu-common.h"
 #include "cpu.h"
 
-#include "hw/sysbus.h"
 #include "hw/char/serial.h"
 #include "hw/boards.h"
 #include "exec/memory.h"
index 942a6d5342d325ab0a8f746579c7c57d7c6ea6e6..5c134523082e38207bd6d6138f30e66344baafbe 100644 (file)
@@ -10,7 +10,6 @@
 
 #include "qemu/osdep.h"
 #include "hw/nubus/nubus.h"
-#include "hw/sysbus.h"
 #include "qapi/error.h"
 
 
index 01f77520146368787601fea1cbb02268f2b04b28..3bb4654c5895d6e1b3d89e8bee4f0fc40800ca05 100644 (file)
@@ -33,7 +33,6 @@
 #include "sysemu/device_tree.h"
 #include "sysemu/sysemu.h"
 #include "sysemu/runstate.h"
-#include "hw/sysbus.h"
 #include "migration/vmstate.h"
 #include "hw/nvram/chrp_nvram.h"
 #include "hw/ppc/spapr.h"
index 8c611b0a59ea9d98eb72c6055687c0b8cdb1e329..9b82feff5284fca8ba185508da2f537c8a9e2296 100644 (file)
@@ -22,7 +22,6 @@
 #include "qapi/error.h"
 #include "qemu-common.h"
 #include "cpu.h"
-#include "hw/sysbus.h"
 #include "hw/loader.h"
 #include "hw/rx/rx62n.h"
 #include "sysemu/sysemu.h"
index b497571863f692f4cf34578947f9dcca35b344da..242491a1aea0ead790ff7ddd61fbb5d050efde3c 100644 (file)
@@ -15,7 +15,6 @@
 #include <libgen.h>
 #include "qapi/error.h"
 #include "qemu/module.h"
-#include "hw/sysbus.h"
 #include "hw/s390x/css.h"
 #include "hw/s390x/css-bridge.h"
 #include "hw/s390x/s390-ccw.h"
index 8195f3546e438f556cdd1c7de78fb93a635ecc25..92b950e09a134d087ba4f5355cfea490cc694e71 100644 (file)
@@ -17,7 +17,6 @@
 #include "hw/virtio/virtio.h"
 #include "migration/qemu-file-types.h"
 #include "hw/virtio/virtio-net.h"
-#include "hw/sysbus.h"
 #include "qemu/bitops.h"
 #include "qemu/error-report.h"
 #include "qemu/module.h"
index bc44cd934e85a23789f3178c1fed70fb98e0c010..2b0696d4acb56866cf37e9966f0263964f66a22f 100644 (file)
@@ -7,7 +7,6 @@
  */
 
 #include "qemu/osdep.h"
-#include "hw/sysbus.h"
 #include "qemu/timer.h"
 #include "hw/timer/mips_gictimer.h"
 
index 4d266d7bb4508c6c8404100be000db53459e7fd3..0f7369e7ed64683d0dd2b7e98fe817f2ba6792aa 100644 (file)
@@ -26,7 +26,6 @@
 #include "qemu/config-file.h"
 #include "qemu/main-loop.h"
 #include "qemu/option.h"
-#include "hw/sysbus.h"
 #include "hw/usb.h"
 #include "hw/xen/xen-legacy-backend.h"
 #include "monitor/qdev.h"
index 9571c2f91fdc5f79b0aa1736530dd9695fdf296d..f9dbec37da20e8e6762c13bece6f88c714691c2b 100644 (file)
@@ -14,7 +14,6 @@
 #include <linux/vfio.h>
 #include <sys/ioctl.h>
 #include "qapi/error.h"
-#include "hw/sysbus.h"
 #include "hw/vfio/vfio.h"
 #include "hw/vfio/vfio-common.h"
 #include "hw/s390x/ap-device.h"
index b2df708e4b0192cc6af898edeca44433157720d5..e752c845e9e496036e5728015a93ed24151e548e 100644 (file)
@@ -20,7 +20,6 @@
 #include <sys/ioctl.h>
 
 #include "qapi/error.h"
-#include "hw/sysbus.h"
 #include "hw/vfio/vfio.h"
 #include "hw/vfio/vfio-common.h"
 #include "hw/s390x/s390-ccw.h"
index b459bb93968022de83422aa46d0d1055966ef8cd..5a1e12b374e7fbacf12ec068e6ee483bedfad02b 100644 (file)
@@ -6,7 +6,6 @@
  */
 
 #include "qemu/osdep.h"
-#include "hw/sysbus.h"
 #include "hw/xen/xen.h"
 #include "hw/xen/xen-bus.h"
 #include "hw/xen/xen-bus-helper.h"