Skip to content

Commit

Permalink
include: Clean up includes
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
pm215 authored and Michael Tokarev committed Jan 30, 2024
1 parent c34448f commit b0b05c9
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 7 deletions.
1 change: 0 additions & 1 deletion include/hw/arm/raspberrypi-fw-defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 0 additions & 1 deletion include/hw/mem/memory-device.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
1 change: 0 additions & 1 deletion include/hw/ppc/spapr_nested.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#ifndef HW_SPAPR_NESTED_H
#define HW_SPAPR_NESTED_H

#include "qemu/osdep.h"
#include "target/ppc/cpu.h"

/*
Expand Down
1 change: 0 additions & 1 deletion include/hw/xen/xen-hvm-common.h
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
1 change: 0 additions & 1 deletion include/qemu/qtree.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
#ifndef QEMU_QTREE_H
#define QEMU_QTREE_H

#include "qemu/osdep.h"

#ifdef HAVE_GLIB_WITH_SLICE_ALLOCATOR

Expand Down
2 changes: 0 additions & 2 deletions include/ui/rect.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
#ifndef QEMU_RECT_H
#define QEMU_RECT_H

#include <stdint.h>
#include <stdbool.h>

typedef struct QemuRect {
int16_t x;
Expand Down

0 comments on commit b0b05c9

Please sign in to comment.