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
* 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"
#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)
#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")
#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"
#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"
#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"