Skip to content

Commit

Permalink
hw: Do not include hw/sysbus.h if it is not necessary
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
huth authored and vivier committed May 2, 2021
1 parent e060543 commit f6527ea
Show file tree
Hide file tree
Showing 27 changed files with 0 additions and 27 deletions.
1 change: 0 additions & 1 deletion hw/arm/cubieboard.c
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion hw/arm/orangepi.c
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion hw/char/riscv_htif.c
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion hw/char/sifive_uart.c
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion hw/char/virtio-serial-bus.c
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion hw/core/generic-loader.c
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion hw/core/guest-loader.c
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion hw/ide/ahci_internal.h
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion hw/input/lasips2.c
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion hw/intc/arm_gic_kvm.c
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion hw/intc/arm_gicv3.c
Expand Up @@ -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"

Expand Down
1 change: 0 additions & 1 deletion hw/intc/arm_gicv3_kvm.c
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion hw/intc/s390_flic_kvm.c
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion hw/isa/lpc_ich9.c
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion hw/isa/piix4.c
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion hw/moxie/moxiesim.c
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion hw/nios2/generic_nommu.c
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion hw/nubus/nubus-bus.c
Expand Up @@ -10,7 +10,6 @@

#include "qemu/osdep.h"
#include "hw/nubus/nubus.h"
#include "hw/sysbus.h"
#include "qapi/error.h"


Expand Down
1 change: 0 additions & 1 deletion hw/nvram/spapr_nvram.c
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion hw/rx/rx-gdbsim.c
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion hw/s390x/s390-ccw.c
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion hw/s390x/virtio-ccw.c
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion hw/timer/mips_gictimer.c
Expand Up @@ -7,7 +7,6 @@
*/

#include "qemu/osdep.h"
#include "hw/sysbus.h"
#include "qemu/timer.h"
#include "hw/timer/mips_gictimer.h"

Expand Down
1 change: 0 additions & 1 deletion hw/usb/xen-usb.c
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion hw/vfio/ap.c
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion hw/vfio/ccw.c
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion hw/xen/xen-bus-helper.c
Expand Up @@ -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"
Expand Down

0 comments on commit f6527ea

Please sign in to comment.