]> git.proxmox.com Git - mirror_qemu.git/commitdiff
Don't include headers already included by qemu/osdep.h
authorMarkus Armbruster <armbru@redhat.com>
Thu, 2 Feb 2023 13:38:28 +0000 (14:38 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Wed, 8 Feb 2023 06:28:05 +0000 (07:28 +0100)
This commit was created with scripts/clean-includes.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Acked-by: Christian Schoenebeck <qemu_oss@crudebyte.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Message-Id: <20230202133830.2152150-19-armbru@redhat.com>

22 files changed:
accel/tcg/cpu-exec.c
backends/tpm/tpm_ioctl.h
fsdev/p9array.h
hw/9pfs/9p.c
hw/display/virtio-gpu-udmabuf.c
hw/i2c/pmbus_device.c
hw/remote/proxy-memory-listener.c
hw/sensor/adm1272.c
hw/usb/dev-storage-bot.c
hw/usb/dev-storage-classic.c
include/hw/misc/aspeed_lpc.h
include/hw/pci/pcie_doe.h
include/qemu/async-teardown.h
include/qemu/dbus.h
include/qemu/host-utils.h
include/sysemu/event-loop-base.h
softmmu/vl.c
tcg/tci.c
tests/unit/test-seccomp.c
ui/udmabuf.c
util/main-loop.c
util/oslib-posix.c

index 9c857eeb077157942f997690c85b356670515d26..5357608b144ebad70fb48552905ee7d25542c1cf 100644 (file)
@@ -28,7 +28,6 @@
 #include "exec/exec-all.h"
 #include "tcg/tcg.h"
 #include "qemu/atomic.h"
-#include "qemu/compiler.h"
 #include "qemu/timer.h"
 #include "qemu/rcu.h"
 #include "exec/log.h"
index e506ef516057e4531ab8df43776e5bcabac660c3..b1d31768a6dee09524d1f1ec26a8bbbeb6b50c9f 100644 (file)
@@ -12,8 +12,6 @@
 # define __USE_LINUX_IOCTL_DEFS
 #endif
 
-#include <stdint.h>
-#include <sys/types.h>
 #ifndef _WIN32
 #include <sys/uio.h>
 #include <sys/ioctl.h>
index 90e83a7c7b5453c6198c169a39f0601777ee53d4..50a1b15fe973034289260b18b725924a2c121ab8 100644 (file)
@@ -27,8 +27,6 @@
 #ifndef QEMU_P9ARRAY_H
 #define QEMU_P9ARRAY_H
 
-#include "qemu/compiler.h"
-
 /**
  * P9Array provides a mechanism to access arrays in common C-style (e.g. by
  * square bracket [] operator) in conjunction with reference variables that
index 072cf67956a0371466db87f49febbdf0c84edef5..9621ec13416e71d7a906783514baed8cc05180fc 100644 (file)
@@ -19,8 +19,6 @@
 #include "qemu/osdep.h"
 #ifdef CONFIG_LINUX
 #include <linux/limits.h>
-#else
-#include <limits.h>
 #endif
 #include <glib/gprintf.h>
 #include "hw/virtio/virtio.h"
index 8bdf4bac6e4b537b1e38dc384b59f8196c181b72..847fa4c0cc3214a4b1ba68325d12d45e4eefda2a 100644 (file)
@@ -21,7 +21,6 @@
 #include "exec/ramblock.h"
 #include "sysemu/hostmem.h"
 #include <sys/ioctl.h>
-#include <fcntl.h>
 #include <linux/memfd.h>
 #include "qemu/memfd.h"
 #include "standard-headers/linux/udmabuf.h"
index 4071a88cfcd1a107a12041368787fa8f9de1b927..c3d604678454b9926307a25efbdb4358fba9df56 100644 (file)
@@ -8,7 +8,6 @@
 
 #include "qemu/osdep.h"
 #include <math.h>
-#include <string.h>
 #include "hw/i2c/pmbus_device.h"
 #include "migration/vmstate.h"
 #include "qemu/module.h"
index eb9918fe72bbba0b44e4f5a0d258de46a7f7bfa6..18d96a1d04dc9db60d049f51e46b3a96ad78c6af 100644 (file)
@@ -8,7 +8,6 @@
 
 #include "qemu/osdep.h"
 
-#include "qemu/compiler.h"
 #include "qemu/int128.h"
 #include "qemu/range.h"
 #include "exec/memory.h"
index 7310c769be2e6a980b802f1f8d00ab9af4c8027b..8f4a1c2cd4bd915f543e9d205e50dc15992f8b38 100644 (file)
@@ -8,7 +8,6 @@
  */
 
 #include "qemu/osdep.h"
-#include <string.h>
 #include "hw/i2c/pmbus_device.h"
 #include "hw/irq.h"
 #include "migration/vmstate.h"
index b24b3148c284f028ef8600a441e8ad5a29be231d..1e5c5c711f5dd426a9f63023697b79bb714d8bbc 100644 (file)
@@ -8,7 +8,6 @@
  */
 
 #include "qemu/osdep.h"
-#include "qemu/typedefs.h"
 #include "qapi/error.h"
 #include "hw/usb.h"
 #include "hw/usb/desc.h"
index 00f25bade28aaad293aa3add3bff44f32d1d9a70..84d19752b559845771dbb03507c0da13ba6198fb 100644 (file)
@@ -8,7 +8,6 @@
  */
 
 #include "qemu/osdep.h"
-#include "qemu/typedefs.h"
 #include "qapi/error.h"
 #include "qapi/visitor.h"
 #include "hw/usb.h"
index fd228731d2ff020bdd3180aa52829aefebed51e0..fa398959af214c012b8862af9270ffd908ead878 100644 (file)
@@ -12,8 +12,6 @@
 
 #include "hw/sysbus.h"
 
-#include <stdint.h>
-
 #define TYPE_ASPEED_LPC "aspeed.lpc"
 #define ASPEED_LPC(obj) OBJECT_CHECK(AspeedLPCState, (obj), TYPE_ASPEED_LPC)
 
index ba4d8b03bd3b1a68376399006810de85922ed18d..87dc17dcef9c631de018137f8f490f974031215d 100644 (file)
@@ -11,7 +11,6 @@
 #define PCIE_DOE_H
 
 #include "qemu/range.h"
-#include "qemu/typedefs.h"
 #include "hw/register.h"
 
 /*
index 092e7a37e7afcc69dc0e61c07b9fe75e4087439b..b281da005b519a69bc5299320d81f06a654f8b09 100644 (file)
@@ -13,8 +13,6 @@
 #ifndef QEMU_ASYNC_TEARDOWN_H
 #define QEMU_ASYNC_TEARDOWN_H
 
-#include "config-host.h"
-
 #ifdef CONFIG_LINUX
 void init_async_teardown(void);
 #endif
index 08f00dfd534208c19422cd24694007a0dc7b22cf..81d3de8a5a1e8dafaab6af6f9c334e6a8476129f 100644 (file)
@@ -15,7 +15,6 @@
 #include "qom/object.h"
 #include "chardev/char.h"
 #include "qemu/notify.h"
-#include "qemu/typedefs.h"
 
 /* glib/gio 2.68 */
 #define DBUS_METHOD_INVOCATION_HANDLED TRUE
index 88d476161ccb4588984eaf60f231e2487f279e4e..3ce62bf4a569228aff0cde42c893b96a0cc54440 100644 (file)
@@ -30,7 +30,6 @@
 #ifndef HOST_UTILS_H
 #define HOST_UTILS_H
 
-#include "qemu/compiler.h"
 #include "qemu/bswap.h"
 #include "qemu/int128.h"
 
index 2748bf6ae1f827db44793c3e62e826a5b67b85ae..a6c24f13513d888cd526c8d5d0848ae85a456d4b 100644 (file)
@@ -14,7 +14,6 @@
 
 #include "qom/object.h"
 #include "block/aio.h"
-#include "qemu/typedefs.h"
 
 #define TYPE_EVENT_LOOP_BASE         "event-loop-base"
 OBJECT_DECLARE_TYPE(EventLoopBase, EventLoopBaseClass,
index 9177d95d4ecac4b1bc49f871939df18848a60b99..5355a7fe5ab29f24e9c26c0a29ba02c12b08fd5d 100644 (file)
 #include "qemu/guest-random.h"
 #include "qemu/keyval.h"
 
-#include "config-host.h"
-
 #define MAX_VIRTIO_CONSOLES 1
 
 typedef struct BlockdevOptionsQueueEntry {
index 022fe9d0f858d40239f600117e99a827fab5ebee..fc67e7e767a011cc5acb7cec8d96bb4b7aa74843 100644 (file)
--- a/tcg/tci.c
+++ b/tcg/tci.c
@@ -21,7 +21,6 @@
 #include "exec/cpu_ldst.h"
 #include "tcg/tcg-op.h"
 #include "tcg/tcg-ldst.h"
-#include "qemu/compiler.h"
 #include <ffi.h>
 
 
index 3d7771e46c742240dff51550ade6209add1cf48b..f02c79cafd1e096b28cde08bfd343eefbeb9fb72 100644 (file)
@@ -25,7 +25,6 @@
 #include "qapi/error.h"
 #include "qemu/module.h"
 
-#include <unistd.h>
 #include <sys/syscall.h>
 
 static void test_seccomp_helper(const char *args, bool killed,
index cebceb261001be02da9e4c330e98bb36b0e95650..cbf4357bb1c2eb5cc82974c6483fbd15a7862f00 100644 (file)
@@ -8,7 +8,6 @@
 #include "qapi/error.h"
 #include "ui/console.h"
 
-#include <fcntl.h>
 #include <sys/ioctl.h>
 
 int udmabuf_fd(void)
index 58f776a8c9c8e29188e53dac13ff53721b3544e3..3c0f52519264463c2525c39676f7e1c604ae47e9 100644 (file)
@@ -33,7 +33,6 @@
 #include "block/thread-pool.h"
 #include "qemu/error-report.h"
 #include "qemu/queue.h"
-#include "qemu/compiler.h"
 #include "qom/object.h"
 
 #ifndef _WIN32
index 59a891b6a837bc4537d0d7d9e780e81a37b1ca34..fd03fd32c874dda73751beacf7632a627423f825 100644 (file)
@@ -40,7 +40,6 @@
 #include "qemu/thread.h"
 #include <libgen.h>
 #include "qemu/cutils.h"
-#include "qemu/compiler.h"
 #include "qemu/units.h"
 #include "qemu/thread-context.h"
 
@@ -50,7 +49,6 @@
 
 #ifdef __FreeBSD__
 #include <sys/thr.h>
-#include <sys/types.h>
 #include <sys/user.h>
 #include <libutil.h>
 #endif