mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 18:23:57 -06:00
Include qapi/qmp/qdict.h exactly where needed
This cleanup makes the number of objects depending on qapi/qmp/qdict.h drop from 4550 (out of 4743) to 368 in my "build everything" tree. For qapi/qmp/qobject.h, the number drops from 4552 to 390. While there, separate #include from file comment with a blank line. Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-Id: <20180201111846.21846-13-armbru@redhat.com>
This commit is contained in:
parent
47e6b297e7
commit
452fcdbc49
95 changed files with 92 additions and 17 deletions
|
@ -31,6 +31,7 @@
|
|||
#include "libqos/pci-pc.h"
|
||||
|
||||
#include "qemu-common.h"
|
||||
#include "qapi/qmp/qdict.h"
|
||||
#include "qemu/host-utils.h"
|
||||
|
||||
#include "hw/pci/pci_ids.h"
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
|
||||
#include "qemu/osdep.h"
|
||||
#include "qapi/qmp/qbool.h"
|
||||
#include "qapi/qmp/qdict.h"
|
||||
#include "qapi/qmp/qlist.h"
|
||||
#include "qapi/qmp/qnull.h"
|
||||
#include "qapi/qmp/qnum.h"
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
|
||||
#include "qemu-common.h"
|
||||
#include "libqtest.h"
|
||||
#include "qapi/qmp/qdict.h"
|
||||
|
||||
struct PlugTestData {
|
||||
char *machine;
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
#include "qemu/osdep.h"
|
||||
#include "libqtest.h"
|
||||
#include "libqos/virtio.h"
|
||||
#include "qapi/qmp/qdict.h"
|
||||
|
||||
static void drive_add(void)
|
||||
{
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
#include "libqtest.h"
|
||||
#include "libqos/libqos.h"
|
||||
#include "libqos/pci.h"
|
||||
#include "qapi/qmp/qdict.h"
|
||||
|
||||
/*** Test Setup & Teardown ***/
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
#include "qemu/osdep.h"
|
||||
#include "libqtest.h"
|
||||
#include "libqos/pci-pc.h"
|
||||
|
||||
#include "qapi/qmp/qdict.h"
|
||||
#include "hw/pci/pci_regs.h"
|
||||
|
||||
#include "qemu-common.h"
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
#include "qapi/error.h"
|
||||
#include "qapi/qmp/json-parser.h"
|
||||
#include "qapi/qmp/json-streamer.h"
|
||||
#include "qapi/qmp/qdict.h"
|
||||
#include "qapi/qmp/qjson.h"
|
||||
#include "qapi/qmp/qlist.h"
|
||||
|
||||
|
|
|
@ -17,8 +17,6 @@
|
|||
#ifndef LIBQTEST_H
|
||||
#define LIBQTEST_H
|
||||
|
||||
#include "qapi/qmp/qdict.h"
|
||||
|
||||
typedef struct QTestState QTestState;
|
||||
|
||||
extern QTestState *global_qtest;
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
#include "qemu/osdep.h"
|
||||
|
||||
#include "libqtest.h"
|
||||
#include "qapi/qmp/qdict.h"
|
||||
#include "qemu/option.h"
|
||||
#include "qemu/range.h"
|
||||
#include "qemu/sockets.h"
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
|
||||
#include "qemu/osdep.h"
|
||||
#include "libqtest.h"
|
||||
#include "qapi/qmp/qdict.h"
|
||||
#include "qapi/qmp/qlist.h"
|
||||
|
||||
static char *make_cli(const char *generic_cli, const char *test_cli)
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
|
||||
#include "qemu/osdep.h"
|
||||
#include "libqtest.h"
|
||||
#include "qapi/qmp/qdict.h"
|
||||
|
||||
static void test_panic(void)
|
||||
{
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
#include "libqos/pci.h"
|
||||
#include "libqos/pci-pc.h"
|
||||
#include "hw/pci-host/q35.h"
|
||||
#include "qapi/qmp/qdict.h"
|
||||
|
||||
#define TSEG_SIZE_TEST_GUEST_RAM_MBYTES 128
|
||||
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
#include "libqtest.h"
|
||||
#include "qapi-visit.h"
|
||||
#include "qapi/error.h"
|
||||
#include "qapi/qmp/qdict.h"
|
||||
#include "qapi/qmp/qlist.h"
|
||||
#include "qapi/qobject-input-visitor.h"
|
||||
#include "qapi/util.h"
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
#include "qemu/osdep.h"
|
||||
|
||||
#include "qemu-common.h"
|
||||
#include "qapi/qmp/qdict.h"
|
||||
#include "qapi/qmp/qlist.h"
|
||||
#include "qemu/cutils.h"
|
||||
#include "libqtest.h"
|
||||
|
|
|
@ -6,11 +6,13 @@
|
|||
* This work is licensed under the terms of the GNU GPL, version 2 or later.
|
||||
* See the COPYING file in the top-level directory.
|
||||
*/
|
||||
|
||||
#include "qemu/osdep.h"
|
||||
|
||||
#include "libqtest.h"
|
||||
#include "libqos/pci.h"
|
||||
#include "libqos/pci-pc.h"
|
||||
#include "qapi/qmp/qdict.h"
|
||||
#include "hw/pci/pci_regs.h"
|
||||
#include "hw/i386/ich9.h"
|
||||
#include "hw/acpi/ich9.h"
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
#include "chardev/char-mux.h"
|
||||
#include "sysemu/sysemu.h"
|
||||
#include "qapi/error.h"
|
||||
#include "qapi/qmp/qdict.h"
|
||||
#include "qom/qom-qobject.h"
|
||||
#include "qmp-commands.h"
|
||||
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
|
||||
#include "qemu/osdep.h"
|
||||
#include "qapi/error.h"
|
||||
#include "qapi/qmp/qdict.h"
|
||||
#include "qapi/qmp/qlist.h"
|
||||
#include "qapi/qmp/qstring.h"
|
||||
#include "qapi/qobject-input-visitor.h"
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
|
||||
#include "qemu/osdep.h"
|
||||
#include "libqtest.h"
|
||||
#include "qapi/qmp/qdict.h"
|
||||
|
||||
/* add a netfilter to a netdev and then remove it */
|
||||
static void add_one_netfilter(void)
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
#include "qemu/osdep.h"
|
||||
#include "qemu/cutils.h"
|
||||
#include "qapi/error.h"
|
||||
#include "qapi/qmp/qdict.h"
|
||||
#include "qapi/qmp/qstring.h"
|
||||
#include "qemu/config-file.h"
|
||||
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
#include <sys/un.h>
|
||||
|
||||
#include "libqtest.h"
|
||||
#include "qapi/qmp/qdict.h"
|
||||
#include "qapi/qmp/qlist.h"
|
||||
|
||||
typedef struct {
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
#include "test-qapi-event.h"
|
||||
#include "qapi/error.h"
|
||||
#include "qapi/qmp/qbool.h"
|
||||
#include "qapi/qmp/qdict.h"
|
||||
#include "qapi/qmp/qnum.h"
|
||||
#include "qapi/qmp/qstring.h"
|
||||
#include "qapi/qmp-event.h"
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
#include "qapi/qobject-input-visitor.h"
|
||||
#include "test-qapi-visit.h"
|
||||
#include "qapi/qmp/qbool.h"
|
||||
#include "qapi/qmp/qdict.h"
|
||||
#include "qapi/qmp/qnull.h"
|
||||
#include "qapi/qmp/qnum.h"
|
||||
#include "qapi/qmp/qjson.h"
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
#include "qapi/qobject-output-visitor.h"
|
||||
#include "test-qapi-visit.h"
|
||||
#include "qapi/qmp/qbool.h"
|
||||
#include "qapi/qmp/qdict.h"
|
||||
#include "qapi/qmp/qlist.h"
|
||||
#include "qapi/qmp/qnull.h"
|
||||
#include "qapi/qmp/qnum.h"
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
#include "qemu/osdep.h"
|
||||
|
||||
#include "qapi/error.h"
|
||||
#include "qapi/qmp/qdict.h"
|
||||
#include "replication.h"
|
||||
#include "block/block_int.h"
|
||||
#include "sysemu/block-backend.h"
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
|
||||
#include "libqtest.h"
|
||||
#include "libqos/i2c.h"
|
||||
#include "qapi/qmp/qdict.h"
|
||||
#include "hw/misc/tmp105_regs.h"
|
||||
|
||||
#define OMAP2_I2C_1_BASE 0x48070000
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
|
||||
#include "libqtest.h"
|
||||
#include "qapi/error.h"
|
||||
#include "qapi/qmp/qdict.h"
|
||||
#include "qemu/config-file.h"
|
||||
#include "qemu/option.h"
|
||||
#include "qemu/range.h"
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
#include "libqos/libqos-spapr.h"
|
||||
#include "libqos/virtio.h"
|
||||
#include "libqos/virtio-pci.h"
|
||||
#include "qapi/qmp/qdict.h"
|
||||
#include "qemu/bswap.h"
|
||||
#include "hw/virtio/virtio-net.h"
|
||||
#include "standard-headers/linux/virtio_ids.h"
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
#include "boot-sector.h"
|
||||
#include "acpi-utils.h"
|
||||
#include "libqtest.h"
|
||||
#include "qapi/qmp/qdict.h"
|
||||
|
||||
#define VGID_GUID "324e6eaf-d1d1-4bf6-bf41-b9bb6c91fb87"
|
||||
#define VMGENID_GUID_OFFSET 40 /* allow space for
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
|
||||
#include "qemu/osdep.h"
|
||||
#include "libqtest.h"
|
||||
#include "qapi/qmp/qdict.h"
|
||||
#include "qemu/timer.h"
|
||||
|
||||
static void qmp_check_no_event(void)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue