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>
This commit is contained in:
Peter Maydell 2024-01-25 16:34:05 +00:00 committed by Michael Tokarev
parent c34448f73f
commit b0b05c9c63
6 changed files with 0 additions and 7 deletions

View File

@ -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,

View File

@ -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"

View File

@ -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"
/* /*

View File

@ -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"

View File

@ -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

View File

@ -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;