2
0
Эх сурвалжийг харах

include: Clean up includes

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>
Peter Maydell 1 жил өмнө
parent
commit
b0b05c9c63

+ 0 - 1
include/hw/arm/raspberrypi-fw-defs.h

@@ -10,7 +10,6 @@
 #ifndef INCLUDE_HW_MISC_RASPBERRYPI_FW_DEFS_H_
 #ifndef INCLUDE_HW_MISC_RASPBERRYPI_FW_DEFS_H_
 #define INCLUDE_HW_MISC_RASPBERRYPI_FW_DEFS_H_
 #define INCLUDE_HW_MISC_RASPBERRYPI_FW_DEFS_H_
 
 
-#include "qemu/osdep.h"
 
 
 enum rpi_firmware_property_tag {
 enum rpi_firmware_property_tag {
     RPI_FWREQ_PROPERTY_END =                           0,
     RPI_FWREQ_PROPERTY_END =                           0,

+ 0 - 1
include/hw/mem/memory-device.h

@@ -14,7 +14,6 @@
 #define MEMORY_DEVICE_H
 #define MEMORY_DEVICE_H
 
 
 #include "hw/qdev-core.h"
 #include "hw/qdev-core.h"
-#include "qemu/typedefs.h"
 #include "qapi/qapi-types-machine.h"
 #include "qapi/qapi-types-machine.h"
 #include "qom/object.h"
 #include "qom/object.h"
 
 

+ 0 - 1
include/hw/ppc/spapr_nested.h

@@ -1,7 +1,6 @@
 #ifndef HW_SPAPR_NESTED_H
 #ifndef HW_SPAPR_NESTED_H
 #define HW_SPAPR_NESTED_H
 #define HW_SPAPR_NESTED_H
 
 
-#include "qemu/osdep.h"
 #include "target/ppc/cpu.h"
 #include "target/ppc/cpu.h"
 
 
 /*
 /*

+ 0 - 1
include/hw/xen/xen-hvm-common.h

@@ -1,7 +1,6 @@
 #ifndef HW_XEN_HVM_COMMON_H
 #ifndef HW_XEN_HVM_COMMON_H
 #define HW_XEN_HVM_COMMON_H
 #define HW_XEN_HVM_COMMON_H
 
 
-#include "qemu/osdep.h"
 #include "qemu/units.h"
 #include "qemu/units.h"
 
 
 #include "cpu.h"
 #include "cpu.h"

+ 0 - 1
include/qemu/qtree.h

@@ -42,7 +42,6 @@
 #ifndef QEMU_QTREE_H
 #ifndef QEMU_QTREE_H
 #define QEMU_QTREE_H
 #define QEMU_QTREE_H
 
 
-#include "qemu/osdep.h"
 
 
 #ifdef HAVE_GLIB_WITH_SLICE_ALLOCATOR
 #ifdef HAVE_GLIB_WITH_SLICE_ALLOCATOR
 
 

+ 0 - 2
include/ui/rect.h

@@ -4,8 +4,6 @@
 #ifndef QEMU_RECT_H
 #ifndef QEMU_RECT_H
 #define QEMU_RECT_H
 #define QEMU_RECT_H
 
 
-#include <stdint.h>
-#include <stdbool.h>
 
 
 typedef struct QemuRect {
 typedef struct QemuRect {
     int16_t x;
     int16_t x;