]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
all: Clean up includes
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 16 Jan 2026 12:58:30 +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' '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

hw/scsi/lasi_ncr710.h
hw/scsi/ncr53c710.h
include/hw/core/loader.h
include/hw/i386/tdvf.h
include/hw/ppc/spapr_fadump.h
include/hw/riscv/iommu.h
include/system/accel-irq.h
linux-user/alpha/target_proc.h
qga/commands-windows-ssh.h
qga/vss-win32/vss-debug.h
target/i386/kvm/vmsr_energy.h

index 99be001fc3c970598852d4cb2b6c69f6070e6716..450fb7e1c3dcc4ff7088db2d96facee65dff4a8b 100644 (file)
@@ -15,7 +15,6 @@
 #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"
index a8dc92f4ef878ab95cff19e528e27668edfe3943..00b6a01577c0872915e5e8dbd4e9a33dfc7c840c 100644 (file)
@@ -15,7 +15,6 @@
 #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"
index dd22cbb5e85eb547b18617213cdf117c4f3dbb93..d9431e8a8d12e3b676160f70ed141f1064143ea3 100644 (file)
@@ -1,7 +1,6 @@
 #ifndef LOADER_H
 #define LOADER_H
 #include "hw/nvram/fw_cfg.h"
-#include "qemu/typedefs.h"
 
 /* loader.c */
 /**
index e75c8d1acc68abbf1e18edd428c20f6c8ad8d28a..4d7362ad656643ef00edd8d463fc9c64155ea7a2 100644 (file)
@@ -9,7 +9,6 @@
 #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
index fde2830e9411e0175de732fdc4935c47283f1d62..82681fb9a6a3b1144a18313c7a55d6fdb17422df 100644 (file)
@@ -6,7 +6,6 @@
 #ifndef PPC_SPAPR_FADUMP_H
 #define PPC_SPAPR_FADUMP_H
 
-#include "qemu/osdep.h"
 #include "cpu.h"
 
 /* Fadump commands */
index 25f1a8b15961e48b07b341a4c18e202538dbc1eb..999384fc899a5790ef72a3265f67182d480efdea 100644 (file)
@@ -19,7 +19,6 @@
 #ifndef HW_RISCV_IOMMU_H
 #define HW_RISCV_IOMMU_H
 
-#include "qemu/osdep.h"
 #include "qom/object.h"
 
 #define TYPE_RISCV_IOMMU "riscv-iommu"
index 671fb7dfdbbc0301105b88ea03642b871a4c773d..a2caa06f547534b80cf0f13a1e5e37b1f5644fe4 100644 (file)
@@ -12,7 +12,6 @@
 #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"
 
index 6b491ffa3a755e1c18a8331c4339a2519043d610..71949d380daf00236598724965d55ddd4a064e1d 100644 (file)
@@ -6,7 +6,6 @@
 #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)
index 40ac67c4d9e5f8b0f67efda7019591b5c264a325..c35d945a898935c2c22645dc63da120a6851cde7 100644 (file)
@@ -11,7 +11,6 @@
  */
 
 #include <glib/gstrfuncs.h>
-#include <stdbool.h>
 typedef struct WindowsUserInfo {
     char *sshDirectory;
     char *authorizedKeyFile;
index 7800457392d977a360f5e850e8ac145b9ebd5e98..506cee66983136b58158c239cec9038e0922394f 100644 (file)
@@ -10,7 +10,6 @@
  * See the COPYING file in the top-level directory.
  */
 
-#include "qemu/osdep.h"
 #include <vss-handles.h>
 
 #ifndef VSS_DEBUG_H
index 151bcbd64239f24b1ea9767ce58125c316ba468b..415d64f51c8118e5e5ba0eb9761127157b7342c1 100644 (file)
@@ -14,8 +14,6 @@
 #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"