Skip to content

Commit

Permalink
Use scripts/clean-includes to drop redundant qemu/typedefs.h
Browse files Browse the repository at this point in the history
Re-run scripts/clean-includes to apply the previous commit's
corrections and updates.  Besides redundant qemu/typedefs.h, this only
finds a redundant config-host.h include in ui/egl-helpers.c.  No idea
how that escaped the previous runs.

Some manual whitespace trimming around dropped includes squashed in.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
  • Loading branch information
Markus Armbruster authored and bonzini committed Mar 22, 2016
1 parent da34e65 commit 14b6d44
Show file tree
Hide file tree
Showing 40 changed files with 0 additions and 47 deletions.
2 changes: 0 additions & 2 deletions hw/i386/acpi-build.h
Expand Up @@ -2,8 +2,6 @@
#ifndef HW_I386_ACPI_BUILD_H
#define HW_I386_ACPI_BUILD_H

#include "qemu/typedefs.h"

void acpi_setup(void);

#endif
2 changes: 0 additions & 2 deletions include/block/accounting.h
Expand Up @@ -25,8 +25,6 @@
#ifndef BLOCK_ACCOUNTING_H
#define BLOCK_ACCOUNTING_H


#include "qemu/typedefs.h"
#include "qemu/timed-average.h"

typedef struct BlockAcctTimedStats BlockAcctTimedStats;
Expand Down
1 change: 0 additions & 1 deletion include/block/aio.h
Expand Up @@ -14,7 +14,6 @@
#ifndef QEMU_AIO_H
#define QEMU_AIO_H

#include "qemu/typedefs.h"
#include "qemu-common.h"
#include "qemu/queue.h"
#include "qemu/event_notifier.h"
Expand Down
2 changes: 0 additions & 2 deletions include/block/write-threshold.h
Expand Up @@ -12,8 +12,6 @@
#ifndef BLOCK_WRITE_THRESHOLD_H
#define BLOCK_WRITE_THRESHOLD_H


#include "qemu/typedefs.h"
#include "qemu-common.h"

/*
Expand Down
1 change: 0 additions & 1 deletion include/exec/cpu-common.h
Expand Up @@ -14,7 +14,6 @@
#include "qemu/bswap.h"
#include "qemu/queue.h"
#include "qemu/fprintf-fn.h"
#include "qemu/typedefs.h"

/**
* CPUListState:
Expand Down
1 change: 0 additions & 1 deletion include/exec/memory.h
Expand Up @@ -31,7 +31,6 @@
#include "qemu/notify.h"
#include "qom/object.h"
#include "qemu/rcu.h"
#include "qemu/typedefs.h"

#define MAX_PHYS_ADDR_SPACE_BITS 62
#define MAX_PHYS_ADDR (((hwaddr)1 << MAX_PHYS_ADDR_SPACE_BITS) - 1)
Expand Down
1 change: 0 additions & 1 deletion include/hw/acpi/acpi.h
Expand Up @@ -19,7 +19,6 @@
* <http://www.gnu.org/licenses/>.
*/

#include "qemu/typedefs.h"
#include "qemu/notify.h"
#include "qemu/option.h"
#include "exec/memory.h"
Expand Down
2 changes: 0 additions & 2 deletions include/hw/acpi/piix4.h
@@ -1,8 +1,6 @@
#ifndef HW_ACPI_PIIX4_H
#define HW_ACPI_PIIX4_H

#include "qemu/typedefs.h"

Object *piix4_pm_find(void);

#endif
1 change: 0 additions & 1 deletion include/hw/acpi/tco.h
Expand Up @@ -9,7 +9,6 @@
#ifndef HW_ACPI_TCO_H
#define HW_ACPI_TCO_H

#include "qemu/typedefs.h"
#include "qemu-common.h"

/* As per ICH9 spec, the internal timer has an error of ~0.6s on every tick */
Expand Down
1 change: 0 additions & 1 deletion include/hw/boards.h
Expand Up @@ -3,7 +3,6 @@
#ifndef HW_BOARDS_H
#define HW_BOARDS_H

#include "qemu/typedefs.h"
#include "sysemu/blockdev.h"
#include "sysemu/accel.h"
#include "hw/qdev.h"
Expand Down
1 change: 0 additions & 1 deletion include/hw/char/digic-uart.h
Expand Up @@ -19,7 +19,6 @@
#define HW_CHAR_DIGIC_UART_H

#include "hw/sysbus.h"
#include "qemu/typedefs.h"

#define TYPE_DIGIC_UART "digic-uart"
#define DIGIC_UART(obj) \
Expand Down
1 change: 0 additions & 1 deletion include/hw/hotplug.h
Expand Up @@ -13,7 +13,6 @@
#define HOTPLUG_H

#include "qom/object.h"
#include "qemu/typedefs.h"

#define TYPE_HOTPLUG_HANDLER "hotplug-handler"

Expand Down
1 change: 0 additions & 1 deletion include/hw/i386/pc.h
Expand Up @@ -2,7 +2,6 @@
#define HW_PC_H

#include "qemu-common.h"
#include "qemu/typedefs.h"
#include "exec/memory.h"
#include "hw/boards.h"
#include "hw/isa/isa.h"
Expand Down
1 change: 0 additions & 1 deletion include/hw/nvram/fw_cfg.h
Expand Up @@ -4,7 +4,6 @@
#ifndef NO_QEMU_PROTOS

#include "exec/hwaddr.h"
#include "qemu/typedefs.h"
#endif

#define FW_CFG_SIGNATURE 0x00
Expand Down
1 change: 0 additions & 1 deletion include/hw/qdev-core.h
Expand Up @@ -3,7 +3,6 @@

#include "qemu/queue.h"
#include "qemu/option.h"
#include "qemu/typedefs.h"
#include "qemu/bitmap.h"
#include "qom/object.h"
#include "hw/irq.h"
Expand Down
1 change: 0 additions & 1 deletion include/hw/scsi/scsi.h
Expand Up @@ -2,7 +2,6 @@
#define QEMU_HW_SCSI_H

#include "hw/qdev.h"
#include "qemu/typedefs.h"
#include "hw/block/block.h"
#include "sysemu/sysemu.h"
#include "qemu/notify.h"
Expand Down
1 change: 0 additions & 1 deletion include/hw/timer/digic-timer.h
Expand Up @@ -19,7 +19,6 @@
#define HW_TIMER_DIGIC_TIMER_H

#include "hw/sysbus.h"
#include "qemu/typedefs.h"
#include "hw/ptimer.h"

#define TYPE_DIGIC_TIMER "digic-timer"
Expand Down
2 changes: 0 additions & 2 deletions include/hw/vfio/vfio.h
@@ -1,8 +1,6 @@
#ifndef VFIO_API_H
#define VFIO_API_H

#include "qemu/typedefs.h"

bool vfio_eeh_as_ok(AddressSpace *as);
int vfio_eeh_as_op(AddressSpace *as, uint32_t op);

Expand Down
1 change: 0 additions & 1 deletion include/hw/xen/xen.h
Expand Up @@ -9,7 +9,6 @@

#include "hw/irq.h"
#include "qemu-common.h"
#include "qemu/typedefs.h"

/* xen-machine.c */
enum xen_mode {
Expand Down
1 change: 0 additions & 1 deletion include/monitor/qdev.h
Expand Up @@ -2,7 +2,6 @@
#define QEMU_QDEV_MONITOR_H

#include "hw/qdev-core.h"
#include "qemu/typedefs.h"

/*** monitor commands ***/

Expand Down
1 change: 0 additions & 1 deletion include/net/filter.h
Expand Up @@ -11,7 +11,6 @@

#include "qom/object.h"
#include "qemu-common.h"
#include "qemu/typedefs.h"
#include "net/queue.h"

#define TYPE_NETFILTER "netfilter"
Expand Down
1 change: 0 additions & 1 deletion include/qapi/visitor.h
Expand Up @@ -14,7 +14,6 @@
#ifndef QAPI_VISITOR_CORE_H
#define QAPI_VISITOR_CORE_H

#include "qemu/typedefs.h"
#include "qapi/qmp/qobject.h"

/* This struct is layout-compatible with all other *List structs
Expand Down
1 change: 0 additions & 1 deletion include/qemu-common.h
Expand Up @@ -12,7 +12,6 @@
#ifndef QEMU_COMMON_H
#define QEMU_COMMON_H

#include "qemu/typedefs.h"
#include "qemu/fprintf-fn.h"

#if defined(__arm__) || defined(__sparc__) || defined(__mips__) || defined(__hppa__) || defined(__ia64__)
Expand Down
1 change: 0 additions & 1 deletion include/qemu/coroutine.h
Expand Up @@ -15,7 +15,6 @@
#ifndef QEMU_COROUTINE_H
#define QEMU_COROUTINE_H

#include "qemu/typedefs.h"
#include "qemu/queue.h"
#include "qemu/timer.h"

Expand Down
1 change: 0 additions & 1 deletion include/qemu/option.h
Expand Up @@ -28,7 +28,6 @@

#include "qemu/queue.h"
#include "qapi/qmp/qdict.h"
#include "qemu/typedefs.h"

const char *get_opt_name(char *buf, int buf_size, const char *p, char delim);
const char *get_opt_value(char *buf, int buf_size, const char *p);
Expand Down
1 change: 0 additions & 1 deletion include/qemu/timer.h
@@ -1,7 +1,6 @@
#ifndef QEMU_TIMER_H
#define QEMU_TIMER_H

#include "qemu/typedefs.h"
#include "qemu-common.h"
#include "qemu/notify.h"
#include "qemu/host-utils.h"
Expand Down
1 change: 0 additions & 1 deletion include/qom/cpu.h
Expand Up @@ -27,7 +27,6 @@
#include "exec/memattrs.h"
#include "qemu/queue.h"
#include "qemu/thread.h"
#include "qemu/typedefs.h"

typedef int (*WriteCoreDumpFunction)(const void *buf, size_t size,
void *opaque);
Expand Down
1 change: 0 additions & 1 deletion include/qom/object.h
Expand Up @@ -17,7 +17,6 @@
#include <glib.h>
#include "qapi-types.h"
#include "qemu/queue.h"
#include "qemu/typedefs.h"

struct TypeImpl;
typedef struct TypeImpl *Type;
Expand Down
1 change: 0 additions & 1 deletion include/sysemu/accel.h
Expand Up @@ -23,7 +23,6 @@
#ifndef HW_ACCEL_H
#define HW_ACCEL_H

#include "qemu/typedefs.h"
#include "qom/object.h"

typedef struct AccelState {
Expand Down
2 changes: 0 additions & 2 deletions include/sysemu/block-backend.h
Expand Up @@ -13,8 +13,6 @@
#ifndef BLOCK_BACKEND_H
#define BLOCK_BACKEND_H

#include "qemu/typedefs.h"

/*
* TODO Have to include block/block.h for a bunch of block layer
* types. Unfortunately, this pulls in the whole BlockDriverState
Expand Down
1 change: 0 additions & 1 deletion include/sysemu/memory_mapping.h
Expand Up @@ -15,7 +15,6 @@
#define MEMORY_MAPPING_H

#include "qemu/queue.h"
#include "qemu/typedefs.h"
#include "exec/memory.h"

typedef struct GuestPhysBlock {
Expand Down
1 change: 0 additions & 1 deletion include/sysemu/replay.h
Expand Up @@ -13,7 +13,6 @@
*/

#include "qapi-types.h"
#include "qemu/typedefs.h"

/* replay clock kinds */
enum ReplayClockKind {
Expand Down
1 change: 0 additions & 1 deletion include/sysemu/sysemu.h
Expand Up @@ -2,7 +2,6 @@
#define SYSEMU_H
/* Misc. things related to the system emulator. */

#include "qemu/typedefs.h"
#include "qemu/option.h"
#include "qemu/queue.h"
#include "qemu/timer.h"
Expand Down
1 change: 0 additions & 1 deletion include/ui/console.h
Expand Up @@ -5,7 +5,6 @@
#include "qom/object.h"
#include "qapi/qmp/qdict.h"
#include "qemu/notify.h"
#include "qemu/typedefs.h"
#include "qapi-types.h"

#ifdef CONFIG_OPENGL
Expand Down
2 changes: 0 additions & 2 deletions include/ui/qemu-pixman.h
Expand Up @@ -16,8 +16,6 @@
#pragma GCC diagnostic pop
#endif

#include "qemu/typedefs.h"

/*
* pixman image formats are defined to be native endian,
* that means host byte order on qemu. So we go define
Expand Down
1 change: 0 additions & 1 deletion stubs/target-get-monitor-def.c
Expand Up @@ -20,7 +20,6 @@
*/

#include "qemu/osdep.h"
#include "qemu/typedefs.h"
#include "stdint.h"

int target_get_monitor_def(CPUState *cs, const char *name, uint64_t *pval);
Expand Down
1 change: 0 additions & 1 deletion stubs/target-monitor-defs.c
@@ -1,6 +1,5 @@
#include "qemu/osdep.h"
#include "stddef.h"
#include "qemu/typedefs.h"

const MonitorDef *target_monitor_defs(void);

Expand Down
1 change: 0 additions & 1 deletion trace/control.h
Expand Up @@ -11,7 +11,6 @@
#define TRACE__CONTROL_H

#include "qemu-common.h"
#include "qemu/typedefs.h"
#include "trace/generated-events.h"


Expand Down
1 change: 0 additions & 1 deletion trace/qmp.c
Expand Up @@ -8,7 +8,6 @@
*/

#include "qemu/osdep.h"
#include "qemu/typedefs.h"
#include "qmp-commands.h"
#include "trace/control.h"

Expand Down
1 change: 0 additions & 1 deletion ui/egl-helpers.c
Expand Up @@ -2,7 +2,6 @@
#include <glob.h>
#include <dirent.h>

#include "config-host.h"
#include "ui/egl-helpers.h"

EGLDisplay *qemu_egl_display;
Expand Down

0 comments on commit 14b6d44

Please sign in to comment.