mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06: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
17 changed files with 2 additions and 32 deletions
|
@ -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"')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue