]> git.proxmox.com Git - mirror_qemu.git/commitdiff
misc: Clean up includes
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 25 Jan 2024 16:34:08 +0000 (16:34 +0000)
committerMichael Tokarev <mjt@tls.msk.ru>
Tue, 30 Jan 2024 18:20:20 +0000 (21:20 +0300)
This commit was created with scripts/clean-includes:
 ./scripts/clean-includes --git misc net/af-xdp.c plugins/*.c audio/pwaudio.c util/userfaultfd.c

All .c should include qemu/osdep.h first.  The script performs three
related cleanups:

* Ensure .c files include qemu/osdep.h first.
* Including it in a .h is redundant, since the .c  already includes
  it.  Drop such inclusions.
* Likewise, including headers qemu/osdep.h includes is redundant.
  Drop these, too.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Zhao Liu <zhao1.liu@intel.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
audio/pwaudio.c
net/af-xdp.c
plugins/core.c
plugins/loader.c
util/userfaultfd.c

index 3ce5f6507b47270c1283cabf5b47ad81932d6e5e..3b14e04fbb016e803029999232e321e46a102233 100644 (file)
@@ -11,7 +11,6 @@
 #include "qemu/osdep.h"
 #include "qemu/module.h"
 #include "audio.h"
-#include <errno.h>
 #include "qemu/error-report.h"
 #include "qapi/error.h"
 #include <spa/param/audio/format-utils.h>
index 6c65028fb00aa42f9f9b2116fc5df4aebf4e18b5..38e600703a3d5478db8e4a8a92c10a2ace174c4c 100644 (file)
@@ -13,7 +13,6 @@
 
 #include "qemu/osdep.h"
 #include <bpf/bpf.h>
-#include <inttypes.h>
 #include <linux/if_link.h>
 #include <linux/if_xdp.h>
 #include <net/if.h>
index 49588285dd01b3ea7765631dbb571d627251cbb4..ee2fa41af9e29b821a857b790c850b79272bb2a7 100644 (file)
@@ -27,7 +27,6 @@
 #include "tcg/tcg.h"
 #include "tcg/tcg-op.h"
 #include "plugin.h"
-#include "qemu/compiler.h"
 
 struct qemu_plugin_cb {
     struct qemu_plugin_ctx *ctx;
index 734c11cae04fe51ec9f0e51b8e6bb71235e0366b..9768b78eb6b5de0ed2b8e25eed67fc3a04f72bea 100644 (file)
@@ -33,7 +33,6 @@
 #ifndef CONFIG_USER_ONLY
 #include "hw/boards.h"
 #endif
-#include "qemu/compiler.h"
 
 #include "plugin.h"
 
index fdff4867e8bd8c0adaac44a4aec468c198214897..1b2fa949d4d084fd42c2fa91fdcd4f1e4e864b39 100644 (file)
@@ -18,7 +18,6 @@
 #include <poll.h>
 #include <sys/syscall.h>
 #include <sys/ioctl.h>
-#include <fcntl.h>
 
 typedef enum {
     UFFD_UNINITIALIZED = 0,