Skip to content

Commit

Permalink
Include qmp-commands.h exactly where needed
Browse files Browse the repository at this point in the history
Reviewed-by: Eric Blake <[email protected]>
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
Signed-off-by: Markus Armbruster <[email protected]>
Message-Id: <[email protected]>
[OSX breakage fixed]
  • Loading branch information
Markus Armbruster committed Feb 9, 2018
1 parent a82400c commit abb297e
Show file tree
Hide file tree
Showing 11 changed files with 2 additions and 10 deletions.
1 change: 0 additions & 1 deletion block.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
#include "qemu/notify.h"
#include "qemu/coroutine.h"
#include "block/qapi.h"
#include "qmp-commands.h"
#include "qemu/timer.h"
#include "qapi-event.h"
#include "qemu/cutils.h"
Expand Down
1 change: 0 additions & 1 deletion blockjob.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
#include "qapi/qmp/qjson.h"
#include "qemu/coroutine.h"
#include "qemu/id.h"
#include "qmp-commands.h"
#include "qemu/timer.h"
#include "qapi-event.h"

Expand Down
1 change: 0 additions & 1 deletion hw/acpi/acpi-stub.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
#include "qemu/osdep.h"
#include "qapi/error.h"
#include "qapi/qmp/qerror.h"
#include "qmp-commands.h"
#include "hw/acpi/acpi.h"

void acpi_table_add(const QemuOpts *opts, Error **errp)
Expand Down
1 change: 0 additions & 1 deletion hw/ppc/spapr.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@
#include "hw/compat.h"
#include "qemu/cutils.h"
#include "hw/ppc/spapr_cpu_core.h"
#include "qmp-commands.h"

#include <libfdt.h>

Expand Down
1 change: 0 additions & 1 deletion hw/s390x/s390-stattrib.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
#include "qemu/osdep.h"
#include "hw/boards.h"
#include "cpu.h"
#include "qmp-commands.h"
#include "migration/qemu-file.h"
#include "migration/register.h"
#include "hw/s390x/storage-attributes.h"
Expand Down
1 change: 0 additions & 1 deletion hw/smbios/smbios-stub.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
#include "qemu/osdep.h"
#include "qapi/error.h"
#include "qapi/qmp/qerror.h"
#include "qmp-commands.h"
#include "hw/smbios/smbios.h"

void smbios_entry_add(QemuOpts *opts, Error **errp)
Expand Down
1 change: 0 additions & 1 deletion hw/xen/xen-common.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
#include "qemu/osdep.h"
#include "qemu/error-report.h"
#include "hw/xen/xen_backend.h"
#include "qmp-commands.h"
#include "chardev/char.h"
#include "sysemu/accel.h"
#include "migration/misc.h"
Expand Down
1 change: 0 additions & 1 deletion include/sysemu/arch_init.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#ifndef QEMU_ARCH_INIT_H
#define QEMU_ARCH_INIT_H

#include "qmp-commands.h"
#include "qemu/option.h"

enum {
Expand Down
2 changes: 1 addition & 1 deletion qga/guest-agent-core.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*/
#include "qapi/qmp/dispatch.h"
#include "qemu-common.h"
#include "qga-qmp-commands.h"
#include "qga-qapi-types.h"

#define QGA_READ_COUNT_DEFAULT 4096

Expand Down
1 change: 1 addition & 0 deletions qga/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include "qapi/qmp/qjson.h"
#include "qga/guest-agent-core.h"
#include "qemu/module.h"
#include "qga-qmp-commands.h"
#include "qapi/qmp/qerror.h"
#include "qapi/error.h"
#include "qapi/qmp/dispatch.h"
Expand Down
1 change: 0 additions & 1 deletion stubs/dump.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#include "qemu/osdep.h"
#include "qemu-common.h"
#include "sysemu/dump-arch.h"
#include "qmp-commands.h"

int cpu_get_dump_info(ArchDumpInfo *info,
const struct GuestPhysBlockList *guest_phys_blocks)
Expand Down

0 comments on commit abb297e

Please sign in to comment.