]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
mshv: Clean up includes
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 16 Jan 2026 12:58:27 +0000 (12:58 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 22 Jan 2026 11:23:31 +0000 (11:23 +0000)
This commit was created with scripts/clean-includes:
 ./scripts/clean-includes '--git' 'mshv' 'accel/mshv' 'target/i386/mshv' 'include/system/mshv.h'

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: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-id: 20260116125830.926296-2-peter.maydell@linaro.org

accel/mshv/irq.c
accel/mshv/mshv-all.c
include/system/mshv.h
target/i386/mshv/mshv-cpu.c
target/i386/mshv/x86.c

index adf8f337d9c939a80ff18fc83827812135f051ba..3c238c33c33b2149e95a7b3760e9cf11ac7859b7 100644 (file)
@@ -10,8 +10,8 @@
  * SPDX-License-Identifier: GPL-2.0-or-later
  */
 
-#include "linux/mshv.h"
 #include "qemu/osdep.h"
+#include "linux/mshv.h"
 #include "qemu/error-report.h"
 #include "hw/hyperv/hvhdk_mini.h"
 #include "hw/hyperv/hvgdk_mini.h"
@@ -20,7 +20,6 @@
 #include "system/mshv.h"
 #include "system/mshv_int.h"
 #include "trace.h"
-#include <stdint.h>
 #include <sys/ioctl.h>
 
 #define MSHV_IRQFD_RESAMPLE_FLAG (1 << MSHV_IRQFD_BIT_RESAMPLE)
index 4675cb886fedef8d57eb065d8f38d233252ff1bf..bed0fa298e6f14ddec6c2dd4112c88a30380e116 100644 (file)
@@ -41,7 +41,6 @@
 #include "system/reset.h"
 #include "trace.h"
 #include <err.h>
-#include <stdint.h>
 #include <sys/ioctl.h>
 
 #define TYPE_MSHV_ACCEL ACCEL_CLASS_NAME("mshv")
index 8b1fc20c80ddf539bb39ecdda33341ea9dcb65d4..75286baf1657e5689551fee59867d3a3f8c743f9 100644 (file)
@@ -14,7 +14,6 @@
 #ifndef QEMU_MSHV_H
 #define QEMU_MSHV_H
 
-#include "qemu/osdep.h"
 #include "qemu/accel.h"
 #include "hw/hyperv/hyperv-proto.h"
 #include "hw/hyperv/hvhdk.h"
index 1c3db02188c432061312cabcf9f1bba40fc812da..586383b88204da720a0161c15b1b278196846416 100644 (file)
@@ -13,7 +13,6 @@
 #include "qemu/osdep.h"
 #include "qemu/error-report.h"
 #include "qemu/memalign.h"
-#include "qemu/typedefs.h"
 
 #include "system/mshv.h"
 #include "system/mshv_int.h"
index d574b3bc52fe1d86a8321a25e27aa4bac0ffdd54..0700cc05efb3aa38f94118648bb420b9e7606017 100644 (file)
@@ -13,7 +13,6 @@
 #include "cpu.h"
 #include "emulate/x86_decode.h"
 #include "emulate/x86_emu.h"
-#include "qemu/typedefs.h"
 #include "qemu/error-report.h"
 #include "system/mshv.h"