all: Clean up includes
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
This commit is contained in:
@@ -15,7 +15,6 @@
|
|||||||
#define HW_LASI_NCR710_H
|
#define HW_LASI_NCR710_H
|
||||||
|
|
||||||
#include "hw/core/sysbus.h"
|
#include "hw/core/sysbus.h"
|
||||||
#include "qemu/osdep.h"
|
|
||||||
#include "exec/memattrs.h"
|
#include "exec/memattrs.h"
|
||||||
#include "hw/scsi/scsi.h"
|
#include "hw/scsi/scsi.h"
|
||||||
#include "hw/scsi/ncr53c710.h"
|
#include "hw/scsi/ncr53c710.h"
|
||||||
|
|||||||
@@ -15,7 +15,6 @@
|
|||||||
#ifndef HW_NCR53C710_H
|
#ifndef HW_NCR53C710_H
|
||||||
#define HW_NCR53C710_H
|
#define HW_NCR53C710_H
|
||||||
|
|
||||||
#include "qemu/osdep.h"
|
|
||||||
#include "hw/core/sysbus.h"
|
#include "hw/core/sysbus.h"
|
||||||
#include "hw/scsi/scsi.h"
|
#include "hw/scsi/scsi.h"
|
||||||
#include "qemu/fifo8.h"
|
#include "qemu/fifo8.h"
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
#ifndef LOADER_H
|
#ifndef LOADER_H
|
||||||
#define LOADER_H
|
#define LOADER_H
|
||||||
#include "hw/nvram/fw_cfg.h"
|
#include "hw/nvram/fw_cfg.h"
|
||||||
#include "qemu/typedefs.h"
|
|
||||||
|
|
||||||
/* loader.c */
|
/* loader.c */
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -9,7 +9,6 @@
|
|||||||
#ifndef HW_I386_TDVF_H
|
#ifndef HW_I386_TDVF_H
|
||||||
#define HW_I386_TDVF_H
|
#define HW_I386_TDVF_H
|
||||||
|
|
||||||
#include "qemu/osdep.h"
|
|
||||||
|
|
||||||
#define TDVF_SECTION_TYPE_BFV 0
|
#define TDVF_SECTION_TYPE_BFV 0
|
||||||
#define TDVF_SECTION_TYPE_CFV 1
|
#define TDVF_SECTION_TYPE_CFV 1
|
||||||
|
|||||||
@@ -6,7 +6,6 @@
|
|||||||
#ifndef PPC_SPAPR_FADUMP_H
|
#ifndef PPC_SPAPR_FADUMP_H
|
||||||
#define PPC_SPAPR_FADUMP_H
|
#define PPC_SPAPR_FADUMP_H
|
||||||
|
|
||||||
#include "qemu/osdep.h"
|
|
||||||
#include "cpu.h"
|
#include "cpu.h"
|
||||||
|
|
||||||
/* Fadump commands */
|
/* Fadump commands */
|
||||||
|
|||||||
@@ -19,7 +19,6 @@
|
|||||||
#ifndef HW_RISCV_IOMMU_H
|
#ifndef HW_RISCV_IOMMU_H
|
||||||
#define HW_RISCV_IOMMU_H
|
#define HW_RISCV_IOMMU_H
|
||||||
|
|
||||||
#include "qemu/osdep.h"
|
|
||||||
#include "qom/object.h"
|
#include "qom/object.h"
|
||||||
|
|
||||||
#define TYPE_RISCV_IOMMU "riscv-iommu"
|
#define TYPE_RISCV_IOMMU "riscv-iommu"
|
||||||
|
|||||||
@@ -12,7 +12,6 @@
|
|||||||
#ifndef SYSTEM_ACCEL_IRQ_H
|
#ifndef SYSTEM_ACCEL_IRQ_H
|
||||||
#define SYSTEM_ACCEL_IRQ_H
|
#define SYSTEM_ACCEL_IRQ_H
|
||||||
#include "hw/pci/msi.h"
|
#include "hw/pci/msi.h"
|
||||||
#include "qemu/osdep.h"
|
|
||||||
#include "system/kvm.h"
|
#include "system/kvm.h"
|
||||||
#include "system/mshv.h"
|
#include "system/mshv.h"
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,6 @@
|
|||||||
#ifndef ALPHA_TARGET_PROC_H
|
#ifndef ALPHA_TARGET_PROC_H
|
||||||
#define ALPHA_TARGET_PROC_H
|
#define ALPHA_TARGET_PROC_H
|
||||||
|
|
||||||
#include "qemu/osdep.h"
|
|
||||||
#include "target/alpha/cpu.h"
|
#include "target/alpha/cpu.h"
|
||||||
|
|
||||||
static uint8_t alpha_phys_addr_space_bits(CPUAlphaState *env)
|
static uint8_t alpha_phys_addr_space_bits(CPUAlphaState *env)
|
||||||
|
|||||||
@@ -11,7 +11,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <glib/gstrfuncs.h>
|
#include <glib/gstrfuncs.h>
|
||||||
#include <stdbool.h>
|
|
||||||
typedef struct WindowsUserInfo {
|
typedef struct WindowsUserInfo {
|
||||||
char *sshDirectory;
|
char *sshDirectory;
|
||||||
char *authorizedKeyFile;
|
char *authorizedKeyFile;
|
||||||
|
|||||||
@@ -10,7 +10,6 @@
|
|||||||
* See the COPYING file in the top-level directory.
|
* See the COPYING file in the top-level directory.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "qemu/osdep.h"
|
|
||||||
#include <vss-handles.h>
|
#include <vss-handles.h>
|
||||||
|
|
||||||
#ifndef VSS_DEBUG_H
|
#ifndef VSS_DEBUG_H
|
||||||
|
|||||||
@@ -14,8 +14,6 @@
|
|||||||
#ifndef VMSR_ENERGY_H
|
#ifndef VMSR_ENERGY_H
|
||||||
#define VMSR_ENERGY_H
|
#define VMSR_ENERGY_H
|
||||||
|
|
||||||
#include <stdint.h>
|
|
||||||
#include "qemu/osdep.h"
|
|
||||||
#include "io/channel-socket.h"
|
#include "io/channel-socket.h"
|
||||||
#include "hw/i386/topology.h"
|
#include "hw/i386/topology.h"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user