]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
Clean up includes some more
authorMarkus Armbruster <armbru@redhat.com>
Mon, 14 Mar 2016 10:25:21 +0000 (11:25 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 22 Mar 2016 21:20:16 +0000 (22:20 +0100)
Manually drop redundant includes that scripts/clean-includes misses,
e.g. because they're hidden in generator programs, or they use the
wrong kind of delimiter.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
17 files changed:
hw/net/vmxnet_rx_pkt.h
hw/net/vmxnet_tx_pkt.h
hw/scsi/virtio-scsi-dataplane.c
include/hw/acpi/pcihp.h
include/qemu/range.h
qga/main.c
qga/vss-win32/requester.cpp
scripts/qapi-types.py
scripts/tracetool/backend/log.py
scripts/tracetool/format/events_h.py
scripts/tracetool/format/h.py
scripts/tracetool/format/tcg_h.py
scripts/tracetool/format/ust_events_c.py
stubs/gdbstub.c
stubs/target-get-monitor-def.c
stubs/target-monitor-defs.c
tests/tcg/test-i386-fprem.c

index a425846b52e4a4ed100bbe602258f5d0380d475d..0a45c1ba009f6f2e499787fbf24d1d8be33862b5 100644 (file)
@@ -18,8 +18,6 @@
 #ifndef VMXNET_RX_PKT_H
 #define VMXNET_RX_PKT_H
 
-#include "stdint.h"
-#include "stdbool.h"
 #include "net/eth.h"
 
 /* defines to enable packet dump functions */
index 57121a6fe5e9f39da983c305dc8133f1f715a009..f51e98ad9526bc045f7f619c3135ba7ce50f5288 100644 (file)
@@ -18,8 +18,6 @@
 #ifndef VMXNET_TX_PKT_H
 #define VMXNET_TX_PKT_H
 
-#include "stdint.h"
-#include "stdbool.h"
 #include "net/eth.h"
 #include "exec/hwaddr.h"
 
index 367e47643fe158f502c2bf1903bfa8e17d71e846..b44ac5dfa0d146ab810ff80f89545bb6d1c95d42 100644 (file)
@@ -19,7 +19,6 @@
 #include <block/scsi.h>
 #include <hw/virtio/virtio-bus.h>
 #include "hw/virtio/virtio-access.h"
-#include "stdio.h"
 
 /* Context: QEMU global mutex held */
 void virtio_scsi_set_iothread(VirtIOSCSI *s, IOThread *iothread)
index 31b7820b6f640222a10243067f60dbb25451dc4d..79a43923e8c2a41a5f7df5d116558e139f410af2 100644 (file)
@@ -27,7 +27,6 @@
 #ifndef HW_ACPI_PCIHP_H
 #define HW_ACPI_PCIHP_H
 
-#include <qemu/typedefs.h>
 #include "hw/acpi/acpi.h"
 #include "migration/vmstate.h"
 
index 9fc547b9cb0ebe868b9a88da028c02e382ad7e8c..c903eb574a757da2e9a635ba7863450a2592f6de 100644 (file)
@@ -1,7 +1,6 @@
 #ifndef QEMU_RANGE_H
 #define QEMU_RANGE_H
 
-#include <qemu/typedefs.h>
 #include "qemu/queue.h"
 
 /*
index 0a168e2da8d5b7bdfa90ce8232c98f59173d1f66..fb2f6638ba41d9f743120910314ac4ca6047abfe 100644 (file)
@@ -24,7 +24,6 @@
 #include "qapi/qmp/qjson.h"
 #include "qga/guest-agent-core.h"
 #include "qemu/module.h"
-#include "signal.h"
 #include "qapi/qmp/qerror.h"
 #include "qapi/qmp/dispatch.h"
 #include "qga/channel.h"
index b57d5170e8341ce44a2f78150edfb09f7d013b47..889052dedd306c02c6c5e22fac017701bb7dd9ce 100644 (file)
@@ -13,7 +13,6 @@
 #include "qemu/osdep.h"
 #include "vss-common.h"
 #include "requester.h"
-#include "assert.h"
 #include "inc/win2003/vswriter.h"
 #include "inc/win2003/vsbackup.h"
 
index e09c8751a93802e3b1f45166ba4900139f1f52fb..437cf6c8e3ec08fb878e1f9c12c7649af9ec260c 100644 (file)
@@ -294,11 +294,6 @@ fdef.write(mcgen('''
 ''',
                  prefix=prefix))
 
-# To avoid circular headers, use only typedefs.h here, not qobject.h
-fdecl.write(mcgen('''
-#include "qemu/typedefs.h"
-'''))
-
 schema = QAPISchema(input_file)
 gen = QAPISchemaGenTypeVisitor()
 schema.visit(gen)
index a62c3107056ba5b170498c73e42ad7d7f664150a..e409b7326e4f9995333f65768dbad484b8473e11 100644 (file)
@@ -20,11 +20,7 @@ PUBLIC = True
 
 
 def generate_h_begin(events):
-    out('#include <stdio.h>',
-        '#include <sys/time.h>',
-        '#include <sys/types.h>',
-        '#include <unistd.h>',
-        '#include "trace/control.h"',
+    out('#include "trace/control.h"',
         '#include "qemu/log.h"',
         '')
 
index bbfaa5bd1fc6d44cfc084b87ac0109cfa4ad580e..4529263e00a7f45ee4c11ca313c7ec93581ef994 100644 (file)
@@ -21,8 +21,6 @@ def generate(events, backend):
         '',
         '#ifndef TRACE__GENERATED_EVENTS_H',
         '#define TRACE__GENERATED_EVENTS_H',
-        '',
-        '#include <stdbool.h>',
         '')
 
     # event identifiers
index 2bd68a218e75303b3de78cdda28533c9622f801c..0835406216789a28615f06fbb8c70c1ec6792cd3 100644 (file)
@@ -23,7 +23,6 @@ def generate(events, backend):
         '#define TRACE__GENERATED_TRACERS_H',
         '',
         '#include "qemu-common.h"',
-        '#include "qemu/typedefs.h"',
         '')
 
     backend.generate_begin(events)
index 006eaa897cefb8b0db2f2a536cb23a2361b805cc..e2331f251ded6eca594ceb8617247461e8d410ee 100644 (file)
@@ -34,8 +34,6 @@ def generate(events, backend):
         '#ifndef TRACE__GENERATED_TCG_TRACERS_H',
         '#define TRACE__GENERATED_TCG_TRACERS_H',
         '',
-        '#include <stdint.h>',
-        '',
         '#include "trace.h"',
         '#include "exec/helper-proto.h"',
         '',
index bf0b3343622c52ba68c5ee0e2f1a8f1ffc365180..9967c7a82e09f99c70914d60722198740fd74951 100644 (file)
@@ -32,5 +32,4 @@ def generate(events, backend):
         ' */',
         '#pragma GCC diagnostic ignored "-Wredundant-decls"',
         '',
-        '#include "qemu/typedefs.h"',
         '#include "generated-ust-provider.h"')
index 359c28990a3e1f5a177575c19b8c75861990de4d..2b7aee50d30200abbfc97c7bda57aee30866f6de 100644 (file)
@@ -1,6 +1,4 @@
 #include "qemu/osdep.h"
-#include "stdbool.h"            /* bool (in exec/gdbstub.h) */
-#include "stddef.h"             /* NULL */
 #include "exec/gdbstub.h"       /* xml_builtin */
 
 const char *const xml_builtin[][2] = {
index dd8305274523931e5966a02dcdfdef23761ff6cd..394e0f9a7d2a8082e9775c3b653b8726ce1ed291 100644 (file)
@@ -20,7 +20,6 @@
  */
 
 #include "qemu/osdep.h"
-#include "stdint.h"
 
 int target_get_monitor_def(CPUState *cs, const char *name, uint64_t *pval);
 
index 7a16ad70146d7c647ca13271e1dd856db6f64dae..ac07b19064cf6f89f259ee0e9a71f09feeea2853 100644 (file)
@@ -1,5 +1,4 @@
 #include "qemu/osdep.h"
-#include "stddef.h"
 
 const MonitorDef *target_monitor_defs(void);
 
index e91fb1ae93c5e19cd90de067f959f1ff021791c3..1a716232041b61d05919c3fa76c7d0bcc7dc936f 100644 (file)
  *  You should have received a copy of the GNU General Public License
  *  along with this program; if not, see <http://www.gnu.org/licenses/>.
  */
-#include "qemu/compiler.h"
+
 #include "qemu/osdep.h"
-#include <stdio.h>
-#include <inttypes.h>
 
 /*
  * Inspired by <ieee754.h>'s union ieee854_long_double, but with single