This commit was created with scripts/clean-includes:
./scripts/clean-includes '--git' 'all' '--all'
and manually edited to remove one change to hw/virtio/cbor-helpers.c.
All these changes are header files that include osdep.h or some
system header that osdep.h pulls in; they don't need to do this.
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-5-peter.maydell@linaro.org
#define HW_LASI_NCR710_H
#include "hw/core/sysbus.h"
-#include "qemu/osdep.h"
#include "exec/memattrs.h"
#include "hw/scsi/scsi.h"
#include "hw/scsi/ncr53c710.h"
#ifndef HW_NCR53C710_H
#define HW_NCR53C710_H
-#include "qemu/osdep.h"
#include "hw/core/sysbus.h"
#include "hw/scsi/scsi.h"
#include "qemu/fifo8.h"
#ifndef LOADER_H
#define LOADER_H
#include "hw/nvram/fw_cfg.h"
-#include "qemu/typedefs.h"
/* loader.c */
/**
#ifndef HW_I386_TDVF_H
#define HW_I386_TDVF_H
-#include "qemu/osdep.h"
#define TDVF_SECTION_TYPE_BFV 0
#define TDVF_SECTION_TYPE_CFV 1
#ifndef PPC_SPAPR_FADUMP_H
#define PPC_SPAPR_FADUMP_H
-#include "qemu/osdep.h"
#include "cpu.h"
/* Fadump commands */
#ifndef HW_RISCV_IOMMU_H
#define HW_RISCV_IOMMU_H
-#include "qemu/osdep.h"
#include "qom/object.h"
#define TYPE_RISCV_IOMMU "riscv-iommu"
#ifndef SYSTEM_ACCEL_IRQ_H
#define SYSTEM_ACCEL_IRQ_H
#include "hw/pci/msi.h"
-#include "qemu/osdep.h"
#include "system/kvm.h"
#include "system/mshv.h"
#ifndef ALPHA_TARGET_PROC_H
#define ALPHA_TARGET_PROC_H
-#include "qemu/osdep.h"
#include "target/alpha/cpu.h"
static uint8_t alpha_phys_addr_space_bits(CPUAlphaState *env)
*/
#include <glib/gstrfuncs.h>
-#include <stdbool.h>
typedef struct WindowsUserInfo {
char *sshDirectory;
char *authorizedKeyFile;
* See the COPYING file in the top-level directory.
*/
-#include "qemu/osdep.h"
#include <vss-handles.h>
#ifndef VSS_DEBUG_H
#ifndef VMSR_ENERGY_H
#define VMSR_ENERGY_H
-#include <stdint.h>
-#include "qemu/osdep.h"
#include "io/channel-socket.h"
#include "hw/i386/topology.h"