提交 814bb12a 编写于 作者: A Anand J 提交者: Michael Tokarev

clean-up: removed duplicate #includes

Some files contain multiple #includes of the same header file.
Removed most of those unnecessary duplicate entries using
scripts/clean-includes.
Reviewed-by: NThomas Huth <thuth@redhat.com>
Signed-off-by: NAnand J <anand.indukala@gmail.com>
Signed-off-by: NMichael Tokarev <mjt@tls.msk.ru>
上级 d66253e4
...@@ -33,7 +33,6 @@ ...@@ -33,7 +33,6 @@
#include "sysemu/qtest.h" #include "sysemu/qtest.h"
#include "hw/xen/xen.h" #include "hw/xen/xen.h"
#include "qom/object.h" #include "qom/object.h"
#include "hw/boards.h"
int tcg_tb_size; int tcg_tb_size;
static bool tcg_allowed = true; static bool tcg_allowed = true;
......
...@@ -26,7 +26,6 @@ ...@@ -26,7 +26,6 @@
#include "exec/cputlb.h" #include "exec/cputlb.h"
#include "exec/memory-internal.h" #include "exec/memory-internal.h"
#include "exec/ram_addr.h" #include "exec/ram_addr.h"
#include "exec/exec-all.h"
#include "tcg/tcg.h" #include "tcg/tcg.h"
#include "qemu/error-report.h" #include "qemu/error-report.h"
#include "exec/log.h" #include "exec/log.h"
......
...@@ -31,7 +31,6 @@ ...@@ -31,7 +31,6 @@
#define MAX_PACKET_LENGTH 4096 #define MAX_PACKET_LENGTH 4096
#include "cpu.h"
#include "qemu/sockets.h" #include "qemu/sockets.h"
#include "sysemu/kvm.h" #include "sysemu/kvm.h"
#include "exec/semihost.h" #include "exec/semihost.h"
......
...@@ -53,7 +53,6 @@ ...@@ -53,7 +53,6 @@
#include "hw/pci/pci_bus.h" #include "hw/pci/pci_bus.h"
#include "hw/pci-host/q35.h" #include "hw/pci-host/q35.h"
#include "hw/i386/x86-iommu.h" #include "hw/i386/x86-iommu.h"
#include "hw/timer/hpet.h"
#include "hw/acpi/aml-build.h" #include "hw/acpi/aml-build.h"
......
...@@ -30,7 +30,6 @@ ...@@ -30,7 +30,6 @@
#include "qemu/option.h" #include "qemu/option.h"
#include "qemu/config-file.h" #include "qemu/config-file.h"
#include "qemu/error-report.h" #include "qemu/error-report.h"
#include "qemu-common.h"
#include "sysemu/device_tree.h" #include "sysemu/device_tree.h"
#include "sysemu/sysemu.h" #include "sysemu/sysemu.h"
#include "hw/loader.h" #include "hw/loader.h"
......
...@@ -47,7 +47,6 @@ ...@@ -47,7 +47,6 @@
#include "elf.h" #include "elf.h"
#include "hw/timer/mc146818rtc.h" #include "hw/timer/mc146818rtc.h"
#include "hw/timer/i8254.h" #include "hw/timer/i8254.h"
#include "sysemu/block-backend.h"
#include "sysemu/blockdev.h" #include "sysemu/blockdev.h"
#include "exec/address-spaces.h" #include "exec/address-spaces.h"
#include "hw/sysbus.h" /* SysBusDevice */ #include "hw/sysbus.h" /* SysBusDevice */
......
...@@ -29,7 +29,6 @@ ...@@ -29,7 +29,6 @@
#include "hw/isa/isa.h" #include "hw/isa/isa.h"
#include "hw/nvram/fw_cfg.h" #include "hw/nvram/fw_cfg.h"
#include "hw/sysbus.h" #include "hw/sysbus.h"
#include "hw/boards.h"
#include "trace.h" #include "trace.h"
#include "qemu/error-report.h" #include "qemu/error-report.h"
#include "qemu/config-file.h" #include "qemu/config-file.h"
......
...@@ -15,7 +15,6 @@ ...@@ -15,7 +15,6 @@
#include "hw/pci/pci.h" #include "hw/pci/pci.h"
#include "hw/pci/pci_bus.h" #include "hw/pci/pci_bus.h"
#include "hw/pci/pci_host.h" #include "hw/pci/pci_host.h"
#include "hw/pci/pci_bus.h"
#include "hw/pci/pci_bridge.h" #include "hw/pci/pci_bridge.h"
#include "hw/i386/pc.h" #include "hw/i386/pc.h"
#include "qemu/range.h" #include "qemu/range.h"
......
...@@ -37,7 +37,6 @@ ...@@ -37,7 +37,6 @@
#include "qemu/log.h" #include "qemu/log.h"
#include "qemu/error-report.h" #include "qemu/error-report.h"
#include "hw/loader.h" #include "hw/loader.h"
#include "sysemu/block-backend.h"
#include "sysemu/blockdev.h" #include "sysemu/blockdev.h"
#include "exec/address-spaces.h" #include "exec/address-spaces.h"
......
...@@ -37,7 +37,6 @@ ...@@ -37,7 +37,6 @@
#include "sysemu/block-backend.h" #include "sysemu/block-backend.h"
#include "sysemu/cpus.h" #include "sysemu/cpus.h"
#include "sysemu/kvm.h" #include "sysemu/kvm.h"
#include "sysemu/device_tree.h"
#include "kvm_ppc.h" #include "kvm_ppc.h"
#include "migration/migration.h" #include "migration/migration.h"
#include "mmu-hash64.h" #include "mmu-hash64.h"
......
...@@ -26,7 +26,6 @@ ...@@ -26,7 +26,6 @@
#include "hw/sysbus.h" #include "hw/sysbus.h"
#include "qemu/timer.h" #include "qemu/timer.h"
#include "hw/ptimer.h" #include "hw/ptimer.h"
#include "qemu/timer.h"
#include "qemu/main-loop.h" #include "qemu/main-loop.h"
#include "trace.h" #include "trace.h"
......
...@@ -34,7 +34,6 @@ ...@@ -34,7 +34,6 @@
#include "qapi/error.h" #include "qapi/error.h"
#include "qemu-common.h" #include "qemu-common.h"
#include "qemu/main-loop.h" #include "qemu/main-loop.h"
#include "sysemu/tpm_backend.h"
#define DEBUG_TIS 0 #define DEBUG_TIS 0
......
...@@ -13,7 +13,6 @@ ...@@ -13,7 +13,6 @@
#include "qapi/error.h" #include "qapi/error.h"
#include "qemu-common.h" #include "qemu-common.h"
#include "cpu.h" #include "cpu.h"
#include "qemu-common.h"
#include "ui/console.h" #include "ui/console.h"
#include "elf.h" #include "elf.h"
#include "exec/address-spaces.h" #include "exec/address-spaces.h"
......
...@@ -17,7 +17,6 @@ ...@@ -17,7 +17,6 @@
#include <sys/statvfs.h> #include <sys/statvfs.h>
#ifdef CONFIG_INOTIFY1 #ifdef CONFIG_INOTIFY1
#include <sys/inotify.h> #include <sys/inotify.h>
#include "qapi/error.h"
#include "qemu/main-loop.h" #include "qemu/main-loop.h"
#endif #endif
......
...@@ -13,7 +13,6 @@ ...@@ -13,7 +13,6 @@
#include "qemu/bitmap.h" #include "qemu/bitmap.h"
#include "sysemu/sysemu.h" #include "sysemu/sysemu.h"
#include "hw/pci/pci.h" #include "hw/pci/pci.h"
#include "hw/boards.h"
#include "hw/compat.h" #include "hw/compat.h"
#include "hw/mem/pc-dimm.h" #include "hw/mem/pc-dimm.h"
#include "hw/mem/nvdimm.h" #include "hw/mem/nvdimm.h"
......
...@@ -59,7 +59,6 @@ ...@@ -59,7 +59,6 @@
#include "qapi/qmp/json-streamer.h" #include "qapi/qmp/json-streamer.h"
#include "qapi/qmp/json-parser.h" #include "qapi/qmp/json-parser.h"
#include "qom/object_interfaces.h" #include "qom/object_interfaces.h"
#include "cpu.h"
#include "trace.h" #include "trace.h"
#include "trace/control.h" #include "trace/control.h"
#include "monitor/hmp-target.h" #include "monitor/hmp-target.h"
...@@ -76,7 +75,6 @@ ...@@ -76,7 +75,6 @@
#include "qapi/qmp-event.h" #include "qapi/qmp-event.h"
#include "qapi-event.h" #include "qapi-event.h"
#include "qmp-introspect.h" #include "qmp-introspect.h"
#include "sysemu/block-backend.h"
#include "sysemu/qtest.h" #include "sysemu/qtest.h"
#include "qemu/cutils.h" #include "qemu/cutils.h"
#include "qapi/qmp/dispatch.h" #include "qapi/qmp/dispatch.h"
......
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
#include "qemu/error-report.h" #include "qemu/error-report.h"
#include "qemu/main-loop.h" #include "qemu/main-loop.h"
#include "qemu/timer.h" #include "qemu/timer.h"
#include "sysemu/block-backend.h"
#include "qemu/cutils.h" #include "qemu/cutils.h"
#define CMD_NOFILE_OK 0x01 #define CMD_NOFILE_OK 0x01
......
...@@ -36,7 +36,6 @@ ...@@ -36,7 +36,6 @@
#include "qom/object_interfaces.h" #include "qom/object_interfaces.h"
#include "hw/mem/pc-dimm.h" #include "hw/mem/pc-dimm.h"
#include "hw/acpi/acpi_dev_interface.h" #include "hw/acpi/acpi_dev_interface.h"
#include "qemu/uuid.h"
NameInfo *qmp_query_name(Error **errp) NameInfo *qmp_query_name(Error **errp)
{ {
......
...@@ -7,10 +7,7 @@ ...@@ -7,10 +7,7 @@
#include "hw/i386/pc.h" #include "hw/i386/pc.h"
#include "hw/isa/isa.h" #include "hw/isa/isa.h"
#include "migration/cpu.h" #include "migration/cpu.h"
#include "exec/exec-all.h"
#include "cpu.h"
#include "exec/exec-all.h"
#include "sysemu/kvm.h" #include "sysemu/kvm.h"
#include "qemu/error-report.h" #include "qemu/error-report.h"
......
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
#include "qemu-common.h" #include "qemu-common.h"
#include "cpu.h" #include "cpu.h"
#include "hw/hw.h" #include "hw/hw.h"
#include "cpu.h"
#include "migration/cpu.h" #include "migration/cpu.h"
static int cpu_post_load(void *opaque, int version_id) static int cpu_post_load(void *opaque, int version_id)
......
...@@ -8,7 +8,6 @@ ...@@ -8,7 +8,6 @@
#include "helper_regs.h" #include "helper_regs.h"
#include "mmu-hash64.h" #include "mmu-hash64.h"
#include "migration/cpu.h" #include "migration/cpu.h"
#include "exec/exec-all.h"
static int cpu_load_old(QEMUFile *f, void *opaque, int version_id) static int cpu_load_old(QEMUFile *f, void *opaque, int version_id)
{ {
......
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
#include "exec/helper-proto.h" #include "exec/helper-proto.h"
#include "helper_regs.h" #include "helper_regs.h"
#include "exec/exec-all.h"
#include "exec/cpu_ldst.h" #include "exec/cpu_ldst.h"
//#define DEBUG_OP //#define DEBUG_OP
......
...@@ -6,10 +6,7 @@ ...@@ -6,10 +6,7 @@
#include "hw/boards.h" #include "hw/boards.h"
#include "qemu/timer.h" #include "qemu/timer.h"
#include "cpu.h"
#include "exec/exec-all.h"
#include "migration/cpu.h" #include "migration/cpu.h"
#include "exec/exec-all.h"
#ifdef TARGET_SPARC64 #ifdef TARGET_SPARC64
static const VMStateDescription vmstate_cpu_timer = { static const VMStateDescription vmstate_cpu_timer = {
......
...@@ -36,7 +36,6 @@ ...@@ -36,7 +36,6 @@
#include "tcg-op.h" #include "tcg-op.h"
#include "qemu/log.h" #include "qemu/log.h"
#include "sysemu/sysemu.h" #include "sysemu/sysemu.h"
#include "exec/exec-all.h"
#include "exec/cpu_ldst.h" #include "exec/cpu_ldst.h"
#include "exec/semihost.h" #include "exec/semihost.h"
......
...@@ -21,9 +21,6 @@ ...@@ -21,9 +21,6 @@
#include <gnutls/gnutls.h> #include <gnutls/gnutls.h>
#include <gnutls/x509.h> #include <gnutls/x509.h>
#include <gnutls/gnutls.h>
#include <gnutls/x509.h>
#if !(defined WIN32) && \ #if !(defined WIN32) && \
defined(CONFIG_TASN1) && \ defined(CONFIG_TASN1) && \
(LIBGNUTLS_VERSION_NUMBER >= 0x020600) (LIBGNUTLS_VERSION_NUMBER >= 0x020600)
......
...@@ -22,8 +22,6 @@ ...@@ -22,8 +22,6 @@
#include "libqos/virtio-pci.h" #include "libqos/virtio-pci.h"
#include "qapi/error.h" #include "qapi/error.h"
#include "libqos/pci-pc.h"
#include "libqos/virtio-pci.h"
#include "libqos/malloc-pc.h" #include "libqos/malloc-pc.h"
#include "hw/virtio/virtio-net.h" #include "hw/virtio/virtio-net.h"
......
...@@ -28,7 +28,6 @@ ...@@ -28,7 +28,6 @@
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include <termios.h> #include <termios.h>
#include <termios.h>
#include <glib/gprintf.h> #include <glib/gprintf.h>
......
...@@ -110,7 +110,6 @@ int main(int argc, char **argv) ...@@ -110,7 +110,6 @@ int main(int argc, char **argv)
#include "trace.h" #include "trace.h"
#include "trace/control.h" #include "trace/control.h"
#include "qemu/queue.h" #include "qemu/queue.h"
#include "sysemu/cpus.h"
#include "sysemu/arch_init.h" #include "sysemu/arch_init.h"
#include "ui/qemu-spice.h" #include "ui/qemu-spice.h"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册