qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

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>

+27 -6
+1
block/qapi.c
··· 32 32 #include "qapi/error.h" 33 33 #include "qapi/qobject-output-visitor.h" 34 34 #include "qapi/qmp/qbool.h" 35 + #include "qapi/qmp/qlist.h" 35 36 #include "qapi/qmp/qnum.h" 36 37 #include "qapi/qmp/qstring.h" 37 38 #include "sysemu/block-backend.h"
+1
block/rbd.c
··· 21 21 #include "qemu/cutils.h" 22 22 #include "qapi/qmp/qstring.h" 23 23 #include "qapi/qmp/qjson.h" 24 + #include "qapi/qmp/qlist.h" 24 25 25 26 /* 26 27 * When specifying the image filename use:
+1
blockdev.c
··· 45 45 #include "qapi-visit.h" 46 46 #include "qapi/error.h" 47 47 #include "qapi/qmp/qerror.h" 48 + #include "qapi/qmp/qlist.h" 48 49 #include "qapi/qobject-output-visitor.h" 49 50 #include "sysemu/sysemu.h" 50 51 #include "sysemu/iothread.h"
-1
include/qapi/qmp/json-parser.h
··· 15 15 #define QEMU_JSON_PARSER_H 16 16 17 17 #include "qemu-common.h" 18 - #include "qapi/qmp/qlist.h" 19 18 20 19 QObject *json_parser_parse(GQueue *tokens, va_list *ap); 21 20 QObject *json_parser_parse_err(GQueue *tokens, va_list *ap, Error **errp);
-1
include/qapi/qmp/qdict.h
··· 14 14 #define QDICT_H 15 15 16 16 #include "qapi/qmp/qobject.h" 17 - #include "qapi/qmp/qlist.h" 18 17 #include "qemu/queue.h" 19 18 20 19 #define QDICT_BUCKET_MAX 512
+1
qapi/qobject-input-visitor.c
··· 22 22 #include "qapi/qmp/qjson.h" 23 23 #include "qapi/qmp/qbool.h" 24 24 #include "qapi/qmp/qerror.h" 25 + #include "qapi/qmp/qlist.h" 25 26 #include "qapi/qmp/qnull.h" 26 27 #include "qapi/qmp/qnum.h" 27 28 #include "qemu/cutils.h"
+1
qapi/qobject-output-visitor.c
··· 18 18 #include "qemu/queue.h" 19 19 #include "qemu-common.h" 20 20 #include "qapi/qmp/qbool.h" 21 + #include "qapi/qmp/qlist.h" 21 22 #include "qapi/qmp/qnull.h" 22 23 #include "qapi/qmp/qnum.h" 23 24 #include "qapi/qmp/qstring.h"
+1
qobject/json-parser.c
··· 16 16 #include "qapi/error.h" 17 17 #include "qemu-common.h" 18 18 #include "qapi/qmp/qbool.h" 19 + #include "qapi/qmp/qlist.h" 19 20 #include "qapi/qmp/qnull.h" 20 21 #include "qapi/qmp/qnum.h" 21 22 #include "qapi/qmp/qstring.h"
+1
qobject/qdict.c
··· 14 14 #include "qapi/qmp/qnum.h" 15 15 #include "qapi/qmp/qdict.h" 16 16 #include "qapi/qmp/qbool.h" 17 + #include "qapi/qmp/qlist.h" 17 18 #include "qapi/qmp/qnull.h" 18 19 #include "qapi/qmp/qstring.h" 19 20 #include "qapi/error.h"
+1
qobject/qjson.c
··· 18 18 #include "qapi/qmp/json-streamer.h" 19 19 #include "qapi/qmp/qjson.h" 20 20 #include "qapi/qmp/qbool.h" 21 + #include "qapi/qmp/qlist.h" 21 22 #include "qapi/qmp/qnum.h" 22 23 #include "qemu/unicode.h" 23 24
+1
qobject/qlit.c
··· 17 17 18 18 #include "qapi/qmp/qlit.h" 19 19 #include "qapi/qmp/qbool.h" 20 + #include "qapi/qmp/qlist.h" 20 21 #include "qapi/qmp/qnum.h" 21 22 #include "qapi/qmp/qdict.h" 22 23 #include "qapi/qmp/qstring.h"
+1
qobject/qobject.c
··· 13 13 #include "qapi/qmp/qnull.h" 14 14 #include "qapi/qmp/qnum.h" 15 15 #include "qapi/qmp/qdict.h" 16 + #include "qapi/qmp/qlist.h" 16 17 #include "qapi/qmp/qstring.h" 17 18 18 19 static void (*qdestroy[QTYPE__MAX])(QObject *) = {
+2 -1
tests/check-qdict.c
··· 9 9 * This work is licensed under the terms of the GNU LGPL, version 2.1 or later. 10 10 * See the COPYING.LIB file in the top-level directory. 11 11 */ 12 - #include "qemu/osdep.h" 13 12 13 + #include "qemu/osdep.h" 14 14 #include "qapi/qmp/qdict.h" 15 + #include "qapi/qmp/qlist.h" 15 16 #include "qapi/qmp/qnum.h" 16 17 #include "qapi/qmp/qstring.h" 17 18 #include "qapi/error.h"
+1
tests/check-qlit.c
··· 11 11 12 12 #include "qapi/qmp/qbool.h" 13 13 #include "qapi/qmp/qdict.h" 14 + #include "qapi/qmp/qlist.h" 14 15 #include "qapi/qmp/qlit.h" 15 16 #include "qapi/qmp/qnum.h" 16 17 #include "qapi/qmp/qstring.h"
+2 -1
tests/check-qobject.c
··· 6 6 * This work is licensed under the terms of the GNU LGPL, version 2.1 or later. 7 7 * See the COPYING.LIB file in the top-level directory. 8 8 */ 9 - #include "qemu/osdep.h" 10 9 10 + #include "qemu/osdep.h" 11 11 #include "qapi/qmp/qbool.h" 12 + #include "qapi/qmp/qlist.h" 12 13 #include "qapi/qmp/qnull.h" 13 14 #include "qapi/qmp/qnum.h" 14 15 #include "qapi/qmp/qstring.h"
+1
tests/device-introspect-test.c
··· 22 22 #include "qapi/qmp/qstring.h" 23 23 #include "qapi/qmp/qbool.h" 24 24 #include "qapi/qmp/qdict.h" 25 + #include "qapi/qmp/qlist.h" 25 26 #include "libqtest.h" 26 27 27 28 const char common_args[] = "-nodefaults -machine none";
+2 -1
tests/libqtest.c
··· 12 12 * 13 13 * This work is licensed under the terms of the GNU GPL, version 2 or later. 14 14 * See the COPYING file in the top-level directory. 15 - * 16 15 */ 16 + 17 17 #include "qemu/osdep.h" 18 18 #include "libqtest.h" 19 19 ··· 25 25 #include "qapi/qmp/json-parser.h" 26 26 #include "qapi/qmp/json-streamer.h" 27 27 #include "qapi/qmp/qjson.h" 28 + #include "qapi/qmp/qlist.h" 28 29 29 30 #define MAX_IRQ 256 30 31 #define SOCKET_TIMEOUT 50
+1
tests/numa-test.c
··· 11 11 12 12 #include "qemu/osdep.h" 13 13 #include "libqtest.h" 14 + #include "qapi/qmp/qlist.h" 14 15 15 16 static char *make_cli(const char *generic_cli, const char *test_cli) 16 17 {
+1
tests/qmp-test.c
··· 14 14 #include "libqtest.h" 15 15 #include "qapi-visit.h" 16 16 #include "qapi/error.h" 17 + #include "qapi/qmp/qlist.h" 17 18 #include "qapi/qobject-input-visitor.h" 18 19 #include "qapi/util.h" 19 20 #include "qapi/visitor.h"
+1
tests/qom-test.c
··· 10 10 #include "qemu/osdep.h" 11 11 12 12 #include "qemu-common.h" 13 + #include "qapi/qmp/qlist.h" 13 14 #include "qemu/cutils.h" 14 15 #include "libqtest.h" 15 16
+1
tests/test-keyval.c
··· 12 12 13 13 #include "qemu/osdep.h" 14 14 #include "qapi/error.h" 15 + #include "qapi/qmp/qlist.h" 15 16 #include "qapi/qmp/qstring.h" 16 17 #include "qapi/qobject-input-visitor.h" 17 18 #include "test-qapi-visit.h"
+1
tests/test-qga.c
··· 5 5 #include <sys/un.h> 6 6 7 7 #include "libqtest.h" 8 + #include "qapi/qmp/qlist.h" 8 9 9 10 typedef struct { 10 11 char *test_dir;
+1
tests/test-qobject-output-visitor.c
··· 17 17 #include "qapi/qobject-output-visitor.h" 18 18 #include "test-qapi-visit.h" 19 19 #include "qapi/qmp/qbool.h" 20 + #include "qapi/qmp/qlist.h" 20 21 #include "qapi/qmp/qnull.h" 21 22 #include "qapi/qmp/qnum.h" 22 23 #include "qapi/qmp/qjson.h"
+1
tests/test-x86-cpuid-compat.c
··· 1 1 #include "qemu/osdep.h" 2 2 #include "qemu-common.h" 3 3 #include "qapi/qmp/qdict.h" 4 + #include "qapi/qmp/qlist.h" 4 5 #include "qapi/qmp/qnum.h" 5 6 #include "qapi/qmp/qbool.h" 6 7 #include "libqtest.h"
-1
ui/vnc-palette.h
··· 29 29 #ifndef VNC_PALETTE_H 30 30 #define VNC_PALETTE_H 31 31 32 - #include "qapi/qmp/qlist.h" 33 32 #include "qemu/queue.h" 34 33 35 34 #define VNC_PALETTE_HASH_SIZE 256
+1
util/keyval.c
··· 81 81 82 82 #include "qemu/osdep.h" 83 83 #include "qapi/error.h" 84 + #include "qapi/qmp/qlist.h" 84 85 #include "qapi/qmp/qstring.h" 85 86 #include "qemu/cutils.h" 86 87 #include "qemu/option.h"
+1
util/qemu-config.c
··· 1 1 #include "qemu/osdep.h" 2 2 #include "qapi/error.h" 3 + #include "qapi/qmp/qlist.h" 3 4 #include "qemu-common.h" 4 5 #include "qemu/error-report.h" 5 6 #include "qemu/option.h"