Skip to content

Commit

Permalink
stubs: Clean up includes
Browse files Browse the repository at this point in the history
Clean up includes so that osdep.h is included first and headers
which it implies are not included manually.

This commit was created with scripts/clean-includes.

Signed-off-by: Peter Maydell <[email protected]>
Message-id: [email protected]
  • Loading branch information
pm215 committed Feb 4, 2016
1 parent e16f4c8 commit 87c9b5e
Show file tree
Hide file tree
Showing 40 changed files with 40 additions and 1 deletion.
1 change: 1 addition & 0 deletions stubs/arch-query-cpu-def.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "qemu/osdep.h"
#include "qemu-common.h"
#include "sysemu/arch_init.h"
#include "qapi/qmp/qerror.h"
Expand Down
1 change: 1 addition & 0 deletions stubs/bdrv-commit-all.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "qemu/osdep.h"
#include "qemu-common.h"
#include "block/block.h"

Expand Down
1 change: 1 addition & 0 deletions stubs/clock-warp.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "qemu/osdep.h"
#include "qemu-common.h"
#include "qemu/timer.h"

Expand Down
1 change: 1 addition & 0 deletions stubs/cpu-get-clock.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "qemu/osdep.h"
#include "qemu-common.h"
#include "qemu/timer.h"

Expand Down
1 change: 1 addition & 0 deletions stubs/cpu-get-icount.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "qemu/osdep.h"
#include "qemu-common.h"
#include "qemu/timer.h"

Expand Down
1 change: 1 addition & 0 deletions stubs/cpus.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "qemu/osdep.h"
#include "qemu-common.h"
#include "qom/cpu.h"

Expand Down
1 change: 1 addition & 0 deletions stubs/dump.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
*
*/

#include "qemu/osdep.h"
#include "qemu-common.h"
#include "sysemu/dump-arch.h"
#include "qmp-commands.h"
Expand Down
1 change: 1 addition & 0 deletions stubs/fd-register.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "qemu/osdep.h"
#include "qemu-common.h"
#include "qemu/main-loop.h"

Expand Down
1 change: 1 addition & 0 deletions stubs/fdset-add-fd.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "qemu/osdep.h"
#include "qemu-common.h"
#include "monitor/monitor.h"

Expand Down
1 change: 1 addition & 0 deletions stubs/fdset-find-fd.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "qemu/osdep.h"
#include "qemu-common.h"
#include "monitor/monitor.h"

Expand Down
1 change: 1 addition & 0 deletions stubs/fdset-get-fd.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "qemu/osdep.h"
#include "qemu-common.h"
#include "monitor/monitor.h"

Expand Down
1 change: 1 addition & 0 deletions stubs/fdset-remove-fd.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "qemu/osdep.h"
#include "qemu-common.h"
#include "monitor/monitor.h"

Expand Down
1 change: 1 addition & 0 deletions stubs/gdbstub.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "qemu/osdep.h"
#include "stdbool.h" /* bool (in exec/gdbstub.h) */
#include "stddef.h" /* NULL */
#include "exec/gdbstub.h" /* xml_builtin */
Expand Down
1 change: 1 addition & 0 deletions stubs/get-fd.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "qemu/osdep.h"
#include "qemu-common.h"
#include "monitor/monitor.h"

Expand Down
1 change: 1 addition & 0 deletions stubs/get-next-serial.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "qemu/osdep.h"
#include "qemu-common.h"

CharDriverState *serial_hds[0];
1 change: 1 addition & 0 deletions stubs/get-vm-name.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "qemu/osdep.h"
#include "qemu-common.h"

const char *qemu_get_vm_name(void)
Expand Down
1 change: 1 addition & 0 deletions stubs/iothread-lock.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "qemu/osdep.h"
#include "qemu-common.h"
#include "qemu/main-loop.h"

Expand Down
1 change: 1 addition & 0 deletions stubs/is-daemonized.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "qemu/osdep.h"
#include "qemu-common.h"

/* Win32 has its own inline stub */
Expand Down
1 change: 1 addition & 0 deletions stubs/kvm.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "qemu/osdep.h"
#include "qemu-common.h"
#include "sysemu/kvm.h"

Expand Down
1 change: 1 addition & 0 deletions stubs/machine-init-done.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "qemu/osdep.h"
#include "qemu-common.h"
#include "sysemu/sysemu.h"

Expand Down
1 change: 1 addition & 0 deletions stubs/migr-blocker.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "qemu/osdep.h"
#include "qemu-common.h"
#include "migration/migration.h"

Expand Down
1 change: 1 addition & 0 deletions stubs/mon-is-qmp.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "qemu/osdep.h"
#include "qemu-common.h"
#include "monitor/monitor.h"

Expand Down
1 change: 1 addition & 0 deletions stubs/mon-printf.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "qemu/osdep.h"
#include "qemu-common.h"
#include "monitor/monitor.h"

Expand Down
1 change: 1 addition & 0 deletions stubs/monitor-init.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "qemu/osdep.h"
#include "qemu-common.h"
#include "monitor/monitor.h"

Expand Down
1 change: 1 addition & 0 deletions stubs/notify-event.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "qemu/osdep.h"
#include "qemu-common.h"
#include "qemu/main-loop.h"

Expand Down
1 change: 1 addition & 0 deletions stubs/qmp_pc_dimm_device_list.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "qemu/osdep.h"
#include "qom/object.h"
#include "hw/mem/pc-dimm.h"

Expand Down
1 change: 1 addition & 0 deletions stubs/qtest.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* See the COPYING file in the top-level directory.
*/

#include "qemu/osdep.h"
#include "sysemu/qtest.h"

/* Needed for qtest_allowed() */
Expand Down
1 change: 1 addition & 0 deletions stubs/replay-user.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
*
*/

#include "qemu/osdep.h"
#include "sysemu/replay.h"

bool replay_exception(void)
Expand Down
2 changes: 1 addition & 1 deletion stubs/replay.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "qemu/osdep.h"
#include "sysemu/replay.h"
#include <stdlib.h>
#include "sysemu/sysemu.h"

ReplayMode replay_mode;
Expand Down
1 change: 1 addition & 0 deletions stubs/reset.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "qemu/osdep.h"
#include "hw/hw.h"

/* Stub functions for binaries that never call qemu_devices_reset(),
Expand Down
1 change: 1 addition & 0 deletions stubs/runstate-check.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "qemu/osdep.h"
#include "sysemu/sysemu.h"

bool runstate_check(RunState state)
Expand Down
1 change: 1 addition & 0 deletions stubs/set-fd-handler.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "qemu/osdep.h"
#include "qemu-common.h"
#include "qemu/main-loop.h"

Expand Down
1 change: 1 addition & 0 deletions stubs/slirp.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "qemu/osdep.h"
#include "qemu-common.h"
#include "slirp/slirp.h"

Expand Down
1 change: 1 addition & 0 deletions stubs/sysbus.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "qemu/osdep.h"
#include "hw/qdev-core.h"

BusState *sysbus_get_default(void)
Expand Down
1 change: 1 addition & 0 deletions stubs/target-get-monitor-def.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/

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

typedef struct CPUState CPUState;
Expand Down
1 change: 1 addition & 0 deletions stubs/target-monitor-defs.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "qemu/osdep.h"
#include "stddef.h"
#include "qemu/typedefs.h"

Expand Down
1 change: 1 addition & 0 deletions stubs/uuid.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "qemu/osdep.h"
#include "qemu-common.h"
#include "sysemu/sysemu.h"
#include "qmp-commands.h"
Expand Down
1 change: 1 addition & 0 deletions stubs/vhost.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "qemu/osdep.h"
#include "hw/virtio/vhost.h"

bool vhost_has_free_slot(void)
Expand Down
1 change: 1 addition & 0 deletions stubs/vm-stop.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "qemu/osdep.h"
#include "qemu-common.h"
#include "sysemu/sysemu.h"

Expand Down
1 change: 1 addition & 0 deletions stubs/vmstate.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "qemu/osdep.h"
#include "qemu-common.h"
#include "migration/vmstate.h"

Expand Down

0 comments on commit 87c9b5e

Please sign in to comment.