diff options
author | Markus Armbruster <armbru@redhat.com> | 2018-02-01 12:18:38 +0100 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2018-02-09 13:52:15 +0100 |
commit | 47e6b297e76007c04a1e9c492006fe093d932cd9 (patch) | |
tree | 97e61115f914284d897b6824f913a259d45587fd /tests | |
parent | 5ee9d2fe9e1e15d6e4a112220da3ad8a3512819b (diff) | |
download | qemu-47e6b297e76007c04a1e9c492006fe093d932cd9.zip qemu-47e6b297e76007c04a1e9c492006fe093d932cd9.tar.gz qemu-47e6b297e76007c04a1e9c492006fe093d932cd9.tar.bz2 |
Include qapi/qmp/qlist.h exactly where needed
This cleanup makes the number of objects depending on qapi/qmp/qlist.h
drop from 4551 (out of 4743) to 16 in my "build everything" tree.
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-12-armbru@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/check-qdict.c | 3 | ||||
-rw-r--r-- | tests/check-qlit.c | 1 | ||||
-rw-r--r-- | tests/check-qobject.c | 3 | ||||
-rw-r--r-- | tests/device-introspect-test.c | 1 | ||||
-rw-r--r-- | tests/libqtest.c | 3 | ||||
-rw-r--r-- | tests/numa-test.c | 1 | ||||
-rw-r--r-- | tests/qmp-test.c | 1 | ||||
-rw-r--r-- | tests/qom-test.c | 1 | ||||
-rw-r--r-- | tests/test-keyval.c | 1 | ||||
-rw-r--r-- | tests/test-qga.c | 1 | ||||
-rw-r--r-- | tests/test-qobject-output-visitor.c | 1 | ||||
-rw-r--r-- | tests/test-x86-cpuid-compat.c | 1 |
12 files changed, 15 insertions, 3 deletions
diff --git a/tests/check-qdict.c b/tests/check-qdict.c index 1b11736..ec628f3 100644 --- a/tests/check-qdict.c +++ b/tests/check-qdict.c @@ -9,9 +9,10 @@ * This work is licensed under the terms of the GNU LGPL, version 2.1 or later. * See the COPYING.LIB file in the top-level directory. */ -#include "qemu/osdep.h" +#include "qemu/osdep.h" #include "qapi/qmp/qdict.h" +#include "qapi/qmp/qlist.h" #include "qapi/qmp/qnum.h" #include "qapi/qmp/qstring.h" #include "qapi/error.h" diff --git a/tests/check-qlit.c b/tests/check-qlit.c index c59ec1a..b8b5016 100644 --- a/tests/check-qlit.c +++ b/tests/check-qlit.c @@ -11,6 +11,7 @@ #include "qapi/qmp/qbool.h" #include "qapi/qmp/qdict.h" +#include "qapi/qmp/qlist.h" #include "qapi/qmp/qlit.h" #include "qapi/qmp/qnum.h" #include "qapi/qmp/qstring.h" diff --git a/tests/check-qobject.c b/tests/check-qobject.c index 9e1e820..885d0e3 100644 --- a/tests/check-qobject.c +++ b/tests/check-qobject.c @@ -6,9 +6,10 @@ * This work is licensed under the terms of the GNU LGPL, version 2.1 or later. * See the COPYING.LIB file in the top-level directory. */ -#include "qemu/osdep.h" +#include "qemu/osdep.h" #include "qapi/qmp/qbool.h" +#include "qapi/qmp/qlist.h" #include "qapi/qmp/qnull.h" #include "qapi/qmp/qnum.h" #include "qapi/qmp/qstring.h" diff --git a/tests/device-introspect-test.c b/tests/device-introspect-test.c index f7162c0..2b3d011 100644 --- a/tests/device-introspect-test.c +++ b/tests/device-introspect-test.c @@ -22,6 +22,7 @@ #include "qapi/qmp/qstring.h" #include "qapi/qmp/qbool.h" #include "qapi/qmp/qdict.h" +#include "qapi/qmp/qlist.h" #include "libqtest.h" const char common_args[] = "-nodefaults -machine none"; diff --git a/tests/libqtest.c b/tests/libqtest.c index 0ec8af2..16d6081 100644 --- a/tests/libqtest.c +++ b/tests/libqtest.c @@ -12,8 +12,8 @@ * * 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" @@ -25,6 +25,7 @@ #include "qapi/qmp/json-parser.h" #include "qapi/qmp/json-streamer.h" #include "qapi/qmp/qjson.h" +#include "qapi/qmp/qlist.h" #define MAX_IRQ 256 #define SOCKET_TIMEOUT 50 diff --git a/tests/numa-test.c b/tests/numa-test.c index e1b6152..8158854 100644 --- a/tests/numa-test.c +++ b/tests/numa-test.c @@ -11,6 +11,7 @@ #include "qemu/osdep.h" #include "libqtest.h" +#include "qapi/qmp/qlist.h" static char *make_cli(const char *generic_cli, const char *test_cli) { diff --git a/tests/qmp-test.c b/tests/qmp-test.c index 36feb22..cc9661a 100644 --- a/tests/qmp-test.c +++ b/tests/qmp-test.c @@ -14,6 +14,7 @@ #include "libqtest.h" #include "qapi-visit.h" #include "qapi/error.h" +#include "qapi/qmp/qlist.h" #include "qapi/qobject-input-visitor.h" #include "qapi/util.h" #include "qapi/visitor.h" diff --git a/tests/qom-test.c b/tests/qom-test.c index 0ee9907..847703c 100644 --- a/tests/qom-test.c +++ b/tests/qom-test.c @@ -10,6 +10,7 @@ #include "qemu/osdep.h" #include "qemu-common.h" +#include "qapi/qmp/qlist.h" #include "qemu/cutils.h" #include "libqtest.h" diff --git a/tests/test-keyval.c b/tests/test-keyval.c index baf7e33..d0c4bf2 100644 --- a/tests/test-keyval.c +++ b/tests/test-keyval.c @@ -12,6 +12,7 @@ #include "qemu/osdep.h" #include "qapi/error.h" +#include "qapi/qmp/qlist.h" #include "qapi/qmp/qstring.h" #include "qapi/qobject-input-visitor.h" #include "test-qapi-visit.h" diff --git a/tests/test-qga.c b/tests/test-qga.c index fd6bc76..e67c728 100644 --- a/tests/test-qga.c +++ b/tests/test-qga.c @@ -5,6 +5,7 @@ #include <sys/un.h> #include "libqtest.h" +#include "qapi/qmp/qlist.h" typedef struct { char *test_dir; diff --git a/tests/test-qobject-output-visitor.c b/tests/test-qobject-output-visitor.c index 4a24e12..7cf8670 100644 --- a/tests/test-qobject-output-visitor.c +++ b/tests/test-qobject-output-visitor.c @@ -17,6 +17,7 @@ #include "qapi/qobject-output-visitor.h" #include "test-qapi-visit.h" #include "qapi/qmp/qbool.h" +#include "qapi/qmp/qlist.h" #include "qapi/qmp/qnull.h" #include "qapi/qmp/qnum.h" #include "qapi/qmp/qjson.h" diff --git a/tests/test-x86-cpuid-compat.c b/tests/test-x86-cpuid-compat.c index c594b5b..495dd1e 100644 --- a/tests/test-x86-cpuid-compat.c +++ b/tests/test-x86-cpuid-compat.c @@ -1,6 +1,7 @@ #include "qemu/osdep.h" #include "qemu-common.h" #include "qapi/qmp/qdict.h" +#include "qapi/qmp/qlist.h" #include "qapi/qmp/qnum.h" #include "qapi/qmp/qbool.h" #include "libqtest.h" |