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 <peter.maydell@linaro.org>
Message-id: 1454089805-5470-3-git-send-email-peter.maydell@linaro.org
  • 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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
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
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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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.