]> git.proxmox.com Git - mirror_qemu.git/commitdiff
include: Clean up includes
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 25 Jan 2024 16:34:05 +0000 (16:34 +0000)
committerMichael Tokarev <mjt@tls.msk.ru>
Tue, 30 Jan 2024 18:20:20 +0000 (21:20 +0300)
This commit was created with scripts/clean-includes:
 ./scripts/clean-includes --git include include/*/*.h include/*/*/*.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: Zhao Liu <zhao1.liu@intel.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
include/hw/arm/raspberrypi-fw-defs.h
include/hw/mem/memory-device.h
include/hw/ppc/spapr_nested.h
include/hw/xen/xen-hvm-common.h
include/qemu/qtree.h
include/ui/rect.h

index 4551fe7450de683604cb5f901e5073fddfc3b288..579cf0d554645886a46954e13ce385543df1a8ed 100644 (file)
@@ -10,7 +10,6 @@
 #ifndef INCLUDE_HW_MISC_RASPBERRYPI_FW_DEFS_H_
 #define INCLUDE_HW_MISC_RASPBERRYPI_FW_DEFS_H_
 
-#include "qemu/osdep.h"
 
 enum rpi_firmware_property_tag {
     RPI_FWREQ_PROPERTY_END =                           0,
index a1d62cc551ab592941033ecb1c221d332ccb410e..e0571c8a3199a9919829332f32d51c889e2b12b4 100644 (file)
@@ -14,7 +14,6 @@
 #define MEMORY_DEVICE_H
 
 #include "hw/qdev-core.h"
-#include "qemu/typedefs.h"
 #include "qapi/qapi-types-machine.h"
 #include "qom/object.h"
 
index d3834864764f1dbc8f2112ae8dea1f98d19c53a5..d312a5d61dae794f867010c0b48976cda7b131c1 100644 (file)
@@ -1,7 +1,6 @@
 #ifndef HW_SPAPR_NESTED_H
 #define HW_SPAPR_NESTED_H
 
-#include "qemu/osdep.h"
 #include "target/ppc/cpu.h"
 
 /*
index 4e9904f1a650222fb51a6fd121c52f95443c02fb..4b1d728f35cff5b62954e1e8bc83c5bd88147688 100644 (file)
@@ -1,7 +1,6 @@
 #ifndef HW_XEN_HVM_COMMON_H
 #define HW_XEN_HVM_COMMON_H
 
-#include "qemu/osdep.h"
 #include "qemu/units.h"
 
 #include "cpu.h"
index 69fe74b50d079c035e7f465646f3ef1dd546d6a9..dc2b14d2582b7dd9355ef9afd742c49e52bd6b35 100644 (file)
@@ -42,7 +42,6 @@
 #ifndef QEMU_QTREE_H
 #define QEMU_QTREE_H
 
-#include "qemu/osdep.h"
 
 #ifdef HAVE_GLIB_WITH_SLICE_ALLOCATOR
 
index 68f05d78a8e6b0cadc80c229dc2a1fce889e1adf..7ebf47ebcdc2af5db072ec20717bcba950bbd7eb 100644 (file)
@@ -4,8 +4,6 @@
 #ifndef QEMU_RECT_H
 #define QEMU_RECT_H
 
-#include <stdint.h>
-#include <stdbool.h>
 
 typedef struct QemuRect {
     int16_t x;