mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-23 03:29:43 +00:00
Clean up includes some more
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>
This commit is contained in:
parent
14b6d44d47
commit
c80f6e9caa
@ -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 */
|
||||
|
@ -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"
|
||||
|
||||
|
@ -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)
|
||||
|
@ -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"
|
||||
|
||||
|
@ -1,7 +1,6 @@
|
||||
#ifndef QEMU_RANGE_H
|
||||
#define QEMU_RANGE_H
|
||||
|
||||
#include <qemu/typedefs.h>
|
||||
#include "qemu/queue.h"
|
||||
|
||||
/*
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
||||
|
@ -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)
|
||||
|
@ -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"',
|
||||
'')
|
||||
|
||||
|
@ -21,8 +21,6 @@ def generate(events, backend):
|
||||
'',
|
||||
'#ifndef TRACE__GENERATED_EVENTS_H',
|
||||
'#define TRACE__GENERATED_EVENTS_H',
|
||||
'',
|
||||
'#include <stdbool.h>',
|
||||
'')
|
||||
|
||||
# event identifiers
|
||||
|
@ -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)
|
||||
|
@ -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"',
|
||||
'',
|
||||
|
@ -32,5 +32,4 @@ def generate(events, backend):
|
||||
' */',
|
||||
'#pragma GCC diagnostic ignored "-Wredundant-decls"',
|
||||
'',
|
||||
'#include "qemu/typedefs.h"',
|
||||
'#include "generated-ust-provider.h"')
|
||||
|
@ -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] = {
|
||||
|
@ -20,7 +20,6 @@
|
||||
*/
|
||||
|
||||
#include "qemu/osdep.h"
|
||||
#include "stdint.h"
|
||||
|
||||
int target_get_monitor_def(CPUState *cs, const char *name, uint64_t *pval);
|
||||
|
||||
|
@ -1,5 +1,4 @@
|
||||
#include "qemu/osdep.h"
|
||||
#include "stddef.h"
|
||||
|
||||
const MonitorDef *target_monitor_defs(void);
|
||||
|
||||
|
@ -22,10 +22,8 @@
|
||||
* 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
|
||||
|
Loading…
Reference in New Issue
Block a user