mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-28 21:03:54 -06:00
Include qemu-common.h exactly where needed
No header includes qemu-common.h after this commit, as prescribed by qemu-common.h's file comment. Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-Id: <20190523143508.25387-5-armbru@redhat.com> [Rebased with conflicts resolved automatically, except for include/hw/arm/xlnx-zynqmp.h hw/arm/nrf51_soc.c hw/arm/msf2-soc.c block/qcow2-refcount.c block/qcow2-cluster.c block/qcow2-cache.c target/arm/cpu.h target/lm32/cpu.h target/m68k/cpu.h target/mips/cpu.h target/moxie/cpu.h target/nios2/cpu.h target/openrisc/cpu.h target/riscv/cpu.h target/tilegx/cpu.h target/tricore/cpu.h target/unicore32/cpu.h target/xtensa/cpu.h; bsd-user/main.c and net/tap-bsd.c fixed up]
This commit is contained in:
parent
0b8fa32f55
commit
a8d2532645
485 changed files with 103 additions and 397 deletions
|
@ -68,8 +68,6 @@ def print_top(fheader):
|
|||
fheader.write('''#ifndef QEMU_MODULE_BLOCK_H
|
||||
#define QEMU_MODULE_BLOCK_H
|
||||
|
||||
#include "qemu-common.h"
|
||||
|
||||
static const struct {
|
||||
const char *format_name;
|
||||
const char *protocol_name;
|
||||
|
|
|
@ -148,7 +148,6 @@ class QAPISchemaGenEventVisitor(QAPISchemaModularCVisitor):
|
|||
visit = self._module_basename('qapi-visit', name)
|
||||
self._genc.add(mcgen('''
|
||||
#include "qemu/osdep.h"
|
||||
#include "qemu-common.h"
|
||||
#include "%(prefix)sqapi-emit-events.h"
|
||||
#include "%(events)s.h"
|
||||
#include "%(visit)s.h"
|
||||
|
|
|
@ -287,7 +287,6 @@ class QAPISchemaGenVisitVisitor(QAPISchemaModularCVisitor):
|
|||
self._add_system_module(None, ' * Built-in QAPI visitors')
|
||||
self._genc.preamble_add(mcgen('''
|
||||
#include "qemu/osdep.h"
|
||||
#include "qemu-common.h"
|
||||
#include "qapi/error.h"
|
||||
#include "qapi/qapi-builtin-visit.h"
|
||||
'''))
|
||||
|
@ -303,7 +302,6 @@ class QAPISchemaGenVisitVisitor(QAPISchemaModularCVisitor):
|
|||
visit = self._module_basename('qapi-visit', name)
|
||||
self._genc.preamble_add(mcgen('''
|
||||
#include "qemu/osdep.h"
|
||||
#include "qemu-common.h"
|
||||
#include "qapi/error.h"
|
||||
#include "qapi/qmp/qerror.h"
|
||||
#include "%(visit)s.h"
|
||||
|
|
|
@ -22,7 +22,6 @@ def generate(events, backend, group):
|
|||
'#ifndef TRACE_%s_GENERATED_TRACERS_H' % group.upper(),
|
||||
'#define TRACE_%s_GENERATED_TRACERS_H' % group.upper(),
|
||||
'',
|
||||
'#include "qemu-common.h"',
|
||||
'#include "trace/control.h"',
|
||||
'')
|
||||
|
||||
|
|
|
@ -52,7 +52,6 @@ def generate(events, backend, group):
|
|||
out('/* This file is autogenerated by tracetool, do not edit. */',
|
||||
'',
|
||||
'#include "qemu/osdep.h"',
|
||||
'#include "qemu-common.h"',
|
||||
'#include "cpu.h"',
|
||||
'#include "exec/helper-proto.h"',
|
||||
'#include "%s"' % header,
|
||||
|
|
|
@ -37,7 +37,6 @@ def generate(events, backend, group):
|
|||
' defined(TRACEPOINT_HEADER_MULTI_READ)',
|
||||
'#define TRACE_%s_GENERATED_UST_H' % group.upper(),
|
||||
'',
|
||||
'#include "qemu-common.h"',
|
||||
'#include <lttng/tracepoint.h>',
|
||||
'',
|
||||
'/*',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue