From: Peter Maydell Date: Fri, 16 Jan 2026 12:58:27 +0000 (+0000) Subject: mshv: Clean up includes X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2be48b31b4ae5e02c59ac6e8a651c07cbd676473;p=thirdparty%2Fqemu.git mshv: Clean up includes 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 Reviewed-by: Philippe Mathieu-Daudé Message-id: 20260116125830.926296-2-peter.maydell@linaro.org --- diff --git a/accel/mshv/irq.c b/accel/mshv/irq.c index adf8f337d9..3c238c33c3 100644 --- a/accel/mshv/irq.c +++ b/accel/mshv/irq.c @@ -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 #include #define MSHV_IRQFD_RESAMPLE_FLAG (1 << MSHV_IRQFD_BIT_RESAMPLE) diff --git a/accel/mshv/mshv-all.c b/accel/mshv/mshv-all.c index 4675cb886f..bed0fa298e 100644 --- a/accel/mshv/mshv-all.c +++ b/accel/mshv/mshv-all.c @@ -41,7 +41,6 @@ #include "system/reset.h" #include "trace.h" #include -#include #include #define TYPE_MSHV_ACCEL ACCEL_CLASS_NAME("mshv") diff --git a/include/system/mshv.h b/include/system/mshv.h index 8b1fc20c80..75286baf16 100644 --- a/include/system/mshv.h +++ b/include/system/mshv.h @@ -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" diff --git a/target/i386/mshv/mshv-cpu.c b/target/i386/mshv/mshv-cpu.c index 1c3db02188..586383b882 100644 --- a/target/i386/mshv/mshv-cpu.c +++ b/target/i386/mshv/mshv-cpu.c @@ -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" diff --git a/target/i386/mshv/x86.c b/target/i386/mshv/x86.c index d574b3bc52..0700cc05ef 100644 --- a/target/i386/mshv/x86.c +++ b/target/i386/mshv/x86.c @@ -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"