include: Clean up includes

Clean up includes so that osdep.h is included first and headers
which it implies are not included manually.

This commit was created with scripts/clean-includes.

NB: If this commit breaks compilation for your out-of-tree
patchseries or fork, then you need to make sure you add
#include "qemu/osdep.h" to any new .c files that you have.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
Peter Maydell 2016-02-23 11:58:03 +00:00
parent 974dc73d77
commit 90ce6e2644
97 changed files with 0 additions and 156 deletions

View File

@ -25,8 +25,6 @@
#ifndef BLOCK_ACCOUNTING_H #ifndef BLOCK_ACCOUNTING_H
#define BLOCK_ACCOUNTING_H #define BLOCK_ACCOUNTING_H
#include <stdint.h>
#include <stdbool.h>
#include "qemu/typedefs.h" #include "qemu/typedefs.h"
#include "qemu/timed-average.h" #include "qemu/timed-average.h"

View File

@ -19,7 +19,6 @@
#ifndef NBD_H #ifndef NBD_H
#define NBD_H #define NBD_H
#include <sys/types.h>
#include "qemu-common.h" #include "qemu-common.h"
#include "qemu/option.h" #include "qemu/option.h"

View File

@ -26,7 +26,6 @@
#define SNAPSHOT_H #define SNAPSHOT_H
#include "qemu-common.h" #include "qemu-common.h"
#include "qapi/error.h"
#include "qemu/option.h" #include "qemu/option.h"

View File

@ -12,7 +12,6 @@
#ifndef BLOCK_WRITE_THRESHOLD_H #ifndef BLOCK_WRITE_THRESHOLD_H
#define BLOCK_WRITE_THRESHOLD_H #define BLOCK_WRITE_THRESHOLD_H
#include <stdint.h>
#include "qemu/typedefs.h" #include "qemu/typedefs.h"
#include "qemu-common.h" #include "qemu-common.h"

View File

@ -1,2 +1 @@
#include "config-host.h"
#include "config-target.h" #include "config-target.h"

View File

@ -22,7 +22,6 @@
#define QCRYPTO_CIPHER_H__ #define QCRYPTO_CIPHER_H__
#include "qemu-common.h" #include "qemu-common.h"
#include "qapi/error.h"
typedef struct QCryptoCipher QCryptoCipher; typedef struct QCryptoCipher QCryptoCipher;

View File

@ -22,7 +22,6 @@
#define QCRYPTO_HASH_H__ #define QCRYPTO_HASH_H__
#include "qemu-common.h" #include "qemu-common.h"
#include "qapi/error.h"
/* See also "QCryptoHashAlgorithm" defined in qapi/crypto.json */ /* See also "QCryptoHashAlgorithm" defined in qapi/crypto.json */

View File

@ -22,7 +22,6 @@
#define QCRYPTO_INIT_H__ #define QCRYPTO_INIT_H__
#include "qemu-common.h" #include "qemu-common.h"
#include "qapi/error.h"
int qcrypto_init(Error **errp); int qcrypto_init(Error **errp);

View File

@ -22,7 +22,6 @@
#define QCRYPTO_SECRET_H__ #define QCRYPTO_SECRET_H__
#include "qemu-common.h" #include "qemu-common.h"
#include "qapi/error.h"
#include "qom/object.h" #include "qom/object.h"
#define TYPE_QCRYPTO_SECRET "secret" #define TYPE_QCRYPTO_SECRET "secret"

View File

@ -22,7 +22,6 @@
#define QCRYPTO_TLSCRED_H__ #define QCRYPTO_TLSCRED_H__
#include "qemu-common.h" #include "qemu-common.h"
#include "qapi/error.h"
#include "qom/object.h" #include "qom/object.h"
#ifdef CONFIG_GNUTLS #ifdef CONFIG_GNUTLS

View File

@ -1,7 +1,6 @@
#ifndef _QEMU_ELF_H #ifndef _QEMU_ELF_H
#define _QEMU_ELF_H #define _QEMU_ELF_H
#include <inttypes.h>
/* 32-bit ELF base types. */ /* 32-bit ELF base types. */
typedef uint32_t Elf32_Addr; typedef uint32_t Elf32_Addr;

View File

@ -154,7 +154,6 @@ static inline void tswap64s(uint64_t *s)
/* MMU memory access macros */ /* MMU memory access macros */
#if defined(CONFIG_USER_ONLY) #if defined(CONFIG_USER_ONLY)
#include <assert.h>
#include "exec/user/abitypes.h" #include "exec/user/abitypes.h"
/* On some host systems the guest address space is reserved on the host. /* On some host systems the guest address space is reserved on the host.

View File

@ -23,9 +23,6 @@
#error cpu.h included from common code #error cpu.h included from common code
#endif #endif
#include "config.h"
#include <inttypes.h>
#include "qemu/osdep.h"
#include "qemu/queue.h" #include "qemu/queue.h"
#include "tcg-target.h" #include "tcg-target.h"
#ifndef CONFIG_USER_ONLY #ifndef CONFIG_USER_ONLY

View File

@ -18,7 +18,6 @@
#ifndef DEF_HELPER_H #ifndef DEF_HELPER_H
#define DEF_HELPER_H 1 #define DEF_HELPER_H 1
#include "qemu/osdep.h"
#define HELPER(name) glue(helper_, name) #define HELPER(name) glue(helper_, name)

View File

@ -21,8 +21,6 @@
#define DIRTY_MEMORY_MIGRATION 2 #define DIRTY_MEMORY_MIGRATION 2
#define DIRTY_MEMORY_NUM 3 /* num of dirty bits */ #define DIRTY_MEMORY_NUM 3 /* num of dirty bits */
#include <stdint.h>
#include <stdbool.h>
#include "exec/cpu-common.h" #include "exec/cpu-common.h"
#ifndef CONFIG_USER_ONLY #ifndef CONFIG_USER_ONLY
#include "exec/hwaddr.h" #include "exec/hwaddr.h"
@ -31,7 +29,6 @@
#include "qemu/queue.h" #include "qemu/queue.h"
#include "qemu/int128.h" #include "qemu/int128.h"
#include "qemu/notify.h" #include "qemu/notify.h"
#include "qapi/error.h"
#include "qom/object.h" #include "qom/object.h"
#include "qemu/rcu.h" #include "qemu/rcu.h"

View File

@ -19,7 +19,6 @@
#ifndef THUNK_H #ifndef THUNK_H
#define THUNK_H #define THUNK_H
#include <inttypes.h>
#include "cpu.h" #include "cpu.h"
/* types enums definitions */ /* types enums definitions */

View File

@ -86,9 +86,6 @@ this code that are retained.
#include <sunmath.h> #include <sunmath.h>
#endif #endif
#include <inttypes.h>
#include "config-host.h"
#include "qemu/osdep.h"
/* This 'flag' type must be able to hold at least 0 and 1. It should /* This 'flag' type must be able to hold at least 0 and 1. It should
* probably be replaced with 'bool' but the uses would need to be audited * probably be replaced with 'bool' but the uses would need to be audited

View File

@ -19,7 +19,6 @@
* <http://www.gnu.org/licenses/>. * <http://www.gnu.org/licenses/>.
*/ */
#include "qapi/error.h"
#include "qemu/typedefs.h" #include "qemu/typedefs.h"
#include "qemu/notify.h" #include "qemu/notify.h"
#include "qemu/option.h" #include "qemu/option.h"

View File

@ -1,9 +1,7 @@
#ifndef HW_ACPI_GEN_UTILS_H #ifndef HW_ACPI_GEN_UTILS_H
#define HW_ACPI_GEN_UTILS_H #define HW_ACPI_GEN_UTILS_H
#include <stdint.h>
#include <glib.h> #include <glib.h>
#include "qemu/compiler.h"
#include "hw/acpi/acpi-defs.h" #include "hw/acpi/acpi-defs.h"
/* Reserve RAM space for tables: add another order of magnitude. */ /* Reserve RAM space for tables: add another order of magnitude. */

View File

@ -2,8 +2,6 @@
#define BIOS_LINKER_LOADER_H #define BIOS_LINKER_LOADER_H
#include <glib.h> #include <glib.h>
#include <stdbool.h>
#include <inttypes.h>
GArray *bios_linker_loader_init(void); GArray *bios_linker_loader_init(void);

View File

@ -27,7 +27,6 @@
#ifndef HW_ACPI_PCIHP_H #ifndef HW_ACPI_PCIHP_H
#define HW_ACPI_PCIHP_H #define HW_ACPI_PCIHP_H
#include <inttypes.h>
#include <qemu/typedefs.h> #include <qemu/typedefs.h>
#include "hw/acpi/acpi.h" #include "hw/acpi/acpi.h"
#include "migration/vmstate.h" #include "migration/vmstate.h"

View File

@ -12,7 +12,6 @@
#define HW_BLOCK_COMMON_H #define HW_BLOCK_COMMON_H
#include "qemu-common.h" #include "qemu-common.h"
#include "qapi/error.h"
/* Configuration */ /* Configuration */

View File

@ -38,8 +38,6 @@
* CPUID Fn8000_0008_ECX[ApicIdCoreIdSize[3:0]] is set to apicid_core_width(). * CPUID Fn8000_0008_ECX[ApicIdCoreIdSize[3:0]] is set to apicid_core_width().
*/ */
#include <stdint.h>
#include <string.h>
#include "qemu/bitops.h" #include "qemu/bitops.h"

View File

@ -1,7 +1,6 @@
#ifndef APM_H #ifndef APM_H
#define APM_H #define APM_H
#include <stdint.h>
#include "qemu-common.h" #include "qemu-common.h"
#include "hw/hw.h" #include "hw/hw.h"
#include "exec/memory.h" #include "exec/memory.h"

View File

@ -2,8 +2,6 @@
#define FW_CFG_H #define FW_CFG_H
#ifndef NO_QEMU_PROTOS #ifndef NO_QEMU_PROTOS
#include <stdint.h>
#include <stddef.h>
#include "exec/hwaddr.h" #include "exec/hwaddr.h"
#include "qemu/typedefs.h" #include "qemu/typedefs.h"

View File

@ -6,7 +6,6 @@
#include "hw/qdev.h" #include "hw/qdev.h"
#include "exec/memory.h" #include "exec/memory.h"
#include "sysemu/dma.h" #include "sysemu/dma.h"
#include "qapi/error.h"
/* PCI includes legacy ISA access. */ /* PCI includes legacy ISA access. */
#include "hw/isa/isa.h" #include "hw/isa/isa.h"

View File

@ -4,7 +4,6 @@
#include "qemu-common.h" #include "qemu-common.h"
#include "exec/memory.h" #include "exec/memory.h"
#include "migration/vmstate.h" #include "migration/vmstate.h"
#include "qapi/error.h"
#include "hw/hotplug.h" #include "hw/hotplug.h"
#include "hw/pci/pci.h" #include "hw/pci/pci.h"

View File

@ -7,7 +7,6 @@
#include "qemu/bitmap.h" #include "qemu/bitmap.h"
#include "qom/object.h" #include "qom/object.h"
#include "hw/irq.h" #include "hw/irq.h"
#include "qapi/error.h"
#include "hw/hotplug.h" #include "hw/hotplug.h"
enum { enum {

View File

@ -11,7 +11,6 @@
#ifndef VHOST_BACKEND_H_ #ifndef VHOST_BACKEND_H_
#define VHOST_BACKEND_H_ #define VHOST_BACKEND_H_
#include <stdbool.h>
typedef enum VhostBackendType { typedef enum VhostBackendType {
VHOST_BACKEND_TYPE_NONE = 0, VHOST_BACKEND_TYPE_NONE = 0,

View File

@ -6,7 +6,6 @@
* must not depend on any xen headers being present in * must not depend on any xen headers being present in
* /usr/include/xen, so it can be included unconditionally. * /usr/include/xen, so it can be included unconditionally.
*/ */
#include <inttypes.h>
#include "hw/irq.h" #include "hw/irq.h"
#include "qemu-common.h" #include "qemu-common.h"

View File

@ -1,10 +1,7 @@
#ifndef QEMU_HW_XEN_COMMON_H #ifndef QEMU_HW_XEN_COMMON_H
#define QEMU_HW_XEN_COMMON_H 1 #define QEMU_HW_XEN_COMMON_H 1
#include "config-host.h"
#include <stddef.h>
#include <inttypes.h>
/* /*
* If we have new enough libxenctrl then we do not want/need these compat * If we have new enough libxenctrl then we do not want/need these compat

View File

@ -22,7 +22,6 @@
#define QIO_CHANNEL_H__ #define QIO_CHANNEL_H__
#include "qemu-common.h" #include "qemu-common.h"
#include "qapi/error.h"
#include "qom/object.h" #include "qom/object.h"
#define TYPE_QIO_CHANNEL "qio-channel" #define TYPE_QIO_CHANNEL "qio-channel"

View File

@ -22,7 +22,6 @@
#define QIO_TASK_H__ #define QIO_TASK_H__
#include "qemu-common.h" #include "qemu-common.h"
#include "qapi/error.h"
#include "qom/object.h" #include "qom/object.h"
typedef struct QIOTask QIOTask; typedef struct QIOTask QIOTask;

View File

@ -27,7 +27,6 @@
Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA. */ 02110-1301, USA. */
#include "config-host.h"
#if defined(HOST_WORDS_BIGENDIAN) #if defined(HOST_WORDS_BIGENDIAN)
#define WORDS_BIGENDIAN 1 #define WORDS_BIGENDIAN 1

View File

@ -56,9 +56,6 @@
#define DECCFULLNAME "Decimal Context Descriptor" /* Verbose name */ #define DECCFULLNAME "Decimal Context Descriptor" /* Verbose name */
#define DECCAUTHOR "Mike Cowlishaw" /* Who to blame */ #define DECCAUTHOR "Mike Cowlishaw" /* Who to blame */
#include <stdint.h>
#include <stdio.h> /* for printf, etc. */
#include <signal.h> /* for traps */
/* Extended flags setting -- set this to 0 to use only IEEE flags */ /* Extended flags setting -- set this to 0 to use only IEEE flags */
#define DECEXTFLAG 1 /* 1=enable extended flags */ #define DECEXTFLAG 1 /* 1=enable extended flags */

View File

@ -42,8 +42,6 @@
#define DECVERSION "decNumber 3.53" /* Package Version [16 max.] */ #define DECVERSION "decNumber 3.53" /* Package Version [16 max.] */
#define DECNLAUTHOR "Mike Cowlishaw" /* Who to blame */ #define DECNLAUTHOR "Mike Cowlishaw" /* Who to blame */
#include <stdlib.h> /* for abs */
#include <string.h> /* for memset, strcpy */
#include "libdecnumber/dconfig.h" #include "libdecnumber/dconfig.h"
/* Conditional code flag -- set this to match hardware platform */ /* Conditional code flag -- set this to match hardware platform */

View File

@ -18,7 +18,6 @@
#include "qemu-common.h" #include "qemu-common.h"
#include "qemu/thread.h" #include "qemu/thread.h"
#include "qemu/notify.h" #include "qemu/notify.h"
#include "qapi/error.h"
#include "migration/vmstate.h" #include "migration/vmstate.h"
#include "qapi-types.h" #include "qapi-types.h"
#include "exec/cpu-common.h" #include "exec/cpu-common.h"

View File

@ -25,7 +25,6 @@
#define QEMU_FILE_H 1 #define QEMU_FILE_H 1
#include "exec/cpu-common.h" #include "exec/cpu-common.h"
#include <stdint.h>
/* This function writes a chunk of data to a file at the given position. /* This function writes a chunk of data to a file at the given position.
* The pos argument can be ignored if the file is only being used for * The pos argument can be ignored if the file is only being used for

View File

@ -18,7 +18,6 @@
#ifndef QEMU_NET_CHECKSUM_H #ifndef QEMU_NET_CHECKSUM_H
#define QEMU_NET_CHECKSUM_H #define QEMU_NET_CHECKSUM_H
#include <stdint.h>
struct iovec; struct iovec;
uint32_t net_checksum_add_cont(int len, uint8_t *buf, int seq); uint32_t net_checksum_add_cont(int len, uint8_t *buf, int seq);

View File

@ -26,8 +26,6 @@
#ifndef QEMU_ETH_H #ifndef QEMU_ETH_H
#define QEMU_ETH_H #define QEMU_ETH_H
#include <sys/types.h>
#include <string.h>
#include "qemu/bswap.h" #include "qemu/bswap.h"
#include "qemu/iov.h" #include "qemu/iov.h"

View File

@ -115,9 +115,6 @@
#ifndef ERROR_H #ifndef ERROR_H
#define ERROR_H #define ERROR_H
#include <stdarg.h>
#include <stdbool.h>
#include "qemu/compiler.h"
#include "qapi-types.h" #include "qapi-types.h"
/* /*

View File

@ -14,7 +14,6 @@
#ifndef QMP_EVENT_H #ifndef QMP_EVENT_H
#define QMP_EVENT_H #define QMP_EVENT_H
#include "qapi/error.h"
#include "qapi/qmp/qdict.h" #include "qapi/qmp/qdict.h"
typedef void (*QMPEventFuncEmit)(unsigned event, QDict *dict, Error **errp); typedef void (*QMPEventFuncEmit)(unsigned event, QDict *dict, Error **errp);

View File

@ -16,7 +16,6 @@
#include "qapi/qmp/qobject.h" #include "qapi/qmp/qobject.h"
#include "qapi/qmp/qdict.h" #include "qapi/qmp/qdict.h"
#include "qapi/error.h"
typedef void (QmpCommandFunc)(QDict *, QObject **, Error **); typedef void (QmpCommandFunc)(QDict *, QObject **, Error **);

View File

@ -14,7 +14,6 @@
#ifndef QEMU_JSON_LEXER_H #ifndef QEMU_JSON_LEXER_H
#define QEMU_JSON_LEXER_H #define QEMU_JSON_LEXER_H
#include "glib-compat.h"
typedef enum json_token_type { typedef enum json_token_type {
JSON_MIN = 100, JSON_MIN = 100,

View File

@ -16,7 +16,6 @@
#include "qemu-common.h" #include "qemu-common.h"
#include "qapi/qmp/qlist.h" #include "qapi/qmp/qlist.h"
#include "qapi/error.h"
QObject *json_parser_parse(GQueue *tokens, va_list *ap); QObject *json_parser_parse(GQueue *tokens, va_list *ap);
QObject *json_parser_parse_err(GQueue *tokens, va_list *ap, Error **errp); QObject *json_parser_parse_err(GQueue *tokens, va_list *ap, Error **errp);

View File

@ -14,8 +14,6 @@
#ifndef QEMU_JSON_STREAMER_H #ifndef QEMU_JSON_STREAMER_H
#define QEMU_JSON_STREAMER_H #define QEMU_JSON_STREAMER_H
#include <stdint.h>
#include "glib-compat.h"
#include "qapi/qmp/json-lexer.h" #include "qapi/qmp/json-lexer.h"
typedef struct JSONToken { typedef struct JSONToken {

View File

@ -14,7 +14,6 @@
#ifndef QBOOL_H #ifndef QBOOL_H
#define QBOOL_H #define QBOOL_H
#include <stdbool.h>
#include "qapi/qmp/qobject.h" #include "qapi/qmp/qobject.h"
typedef struct QBool { typedef struct QBool {

View File

@ -16,8 +16,6 @@
#include "qapi/qmp/qobject.h" #include "qapi/qmp/qobject.h"
#include "qapi/qmp/qlist.h" #include "qapi/qmp/qlist.h"
#include "qemu/queue.h" #include "qemu/queue.h"
#include <stdbool.h>
#include <stdint.h>
#define QDICT_BUCKET_MAX 512 #define QDICT_BUCKET_MAX 512

View File

@ -14,7 +14,6 @@
#ifndef QFLOAT_H #ifndef QFLOAT_H
#define QFLOAT_H #define QFLOAT_H
#include <stdint.h>
#include "qapi/qmp/qobject.h" #include "qapi/qmp/qobject.h"
typedef struct QFloat { typedef struct QFloat {

View File

@ -13,7 +13,6 @@
#ifndef QINT_H #ifndef QINT_H
#define QINT_H #define QINT_H
#include <stdint.h>
#include "qapi/qmp/qobject.h" #include "qapi/qmp/qobject.h"
typedef struct QInt { typedef struct QInt {

View File

@ -14,8 +14,6 @@
#ifndef QJSON_H #ifndef QJSON_H
#define QJSON_H #define QJSON_H
#include <stdarg.h>
#include "qemu/compiler.h"
#include "qapi/qmp/qobject.h" #include "qapi/qmp/qobject.h"
#include "qapi/qmp/qstring.h" #include "qapi/qmp/qstring.h"

View File

@ -32,8 +32,6 @@
#ifndef QOBJECT_H #ifndef QOBJECT_H
#define QOBJECT_H #define QOBJECT_H
#include <stddef.h>
#include <assert.h>
#include "qapi-types.h" #include "qapi-types.h"
struct QObject { struct QObject {

View File

@ -13,7 +13,6 @@
#ifndef QSTRING_H #ifndef QSTRING_H
#define QSTRING_H #define QSTRING_H
#include <stdint.h>
#include "qapi/qmp/qobject.h" #include "qapi/qmp/qobject.h"
typedef struct QString { typedef struct QString {

View File

@ -12,7 +12,6 @@
#ifndef QAPI_VISITOR_IMPL_H #ifndef QAPI_VISITOR_IMPL_H
#define QAPI_VISITOR_IMPL_H #define QAPI_VISITOR_IMPL_H
#include "qapi/error.h"
#include "qapi/visitor.h" #include "qapi/visitor.h"
struct Visitor struct Visitor

View File

@ -16,8 +16,6 @@
#include "qemu/typedefs.h" #include "qemu/typedefs.h"
#include "qapi/qmp/qobject.h" #include "qapi/qmp/qobject.h"
#include "qapi/error.h"
#include <stdlib.h>
/* This struct is layout-compatible with all other *List structs /* This struct is layout-compatible with all other *List structs
* created by the qapi generator. It is used as a typical * created by the qapi generator. It is used as a typical

View File

@ -12,7 +12,6 @@
#ifndef QEMU_COMMON_H #ifndef QEMU_COMMON_H
#define QEMU_COMMON_H #define QEMU_COMMON_H
#include "qemu/osdep.h"
#include "qemu/typedefs.h" #include "qemu/typedefs.h"
#include "qemu/fprintf-fn.h" #include "qemu/fprintf-fn.h"

View File

@ -15,7 +15,6 @@
#ifndef __QEMU_ATOMIC_H #ifndef __QEMU_ATOMIC_H
#define __QEMU_ATOMIC_H 1 #define __QEMU_ATOMIC_H 1
#include "qemu/compiler.h"
/* Compiler barrier */ /* Compiler barrier */

View File

@ -13,10 +13,7 @@
#define BITMAP_H #define BITMAP_H
#include <glib.h> #include <glib.h>
#include <string.h>
#include <stdlib.h>
#include "qemu/osdep.h"
#include "qemu/bitops.h" #include "qemu/bitops.h"
/* /*

View File

@ -12,8 +12,6 @@
#ifndef BITOPS_H #ifndef BITOPS_H
#define BITOPS_H #define BITOPS_H
#include <stdint.h>
#include <assert.h>
#include "host-utils.h" #include "host-utils.h"
#include "atomic.h" #include "atomic.h"

View File

@ -1,15 +1,10 @@
#ifndef BSWAP_H #ifndef BSWAP_H
#define BSWAP_H #define BSWAP_H
#include "config-host.h"
#include <inttypes.h>
#include <limits.h>
#include <string.h>
#include "fpu/softfloat.h" #include "fpu/softfloat.h"
#ifdef CONFIG_MACHINE_BSWAP_H #ifdef CONFIG_MACHINE_BSWAP_H
# include <sys/endian.h> # include <sys/endian.h>
# include <sys/types.h>
# include <machine/bswap.h> # include <machine/bswap.h>
#elif defined(__FreeBSD__) #elif defined(__FreeBSD__)
# include <sys/endian.h> # include <sys/endian.h>

View File

@ -14,7 +14,6 @@
#ifndef QEMU_COMPATFD_H #ifndef QEMU_COMPATFD_H
#define QEMU_COMPATFD_H #define QEMU_COMPATFD_H
#include <signal.h>
struct qemu_signalfd_siginfo { struct qemu_signalfd_siginfo {
uint32_t ssi_signo; /* Signal number */ uint32_t ssi_signo; /* Signal number */

View File

@ -3,7 +3,6 @@
#ifndef COMPILER_H #ifndef COMPILER_H
#define COMPILER_H #define COMPILER_H
#include "config-host.h"
/*---------------------------------------------------------------------------- /*----------------------------------------------------------------------------
| The macro QEMU_GNUC_PREREQ tests for minimum version of the GNU C compiler. | The macro QEMU_GNUC_PREREQ tests for minimum version of the GNU C compiler.

View File

@ -1,9 +1,7 @@
#ifndef QEMU_CONFIG_H #ifndef QEMU_CONFIG_H
#define QEMU_CONFIG_H #define QEMU_CONFIG_H
#include <stdio.h>
#include "qemu/option.h" #include "qemu/option.h"
#include "qapi/error.h"
#include "qapi/qmp/qdict.h" #include "qapi/qmp/qdict.h"
QemuOptsList *qemu_find_opts(const char *group); QemuOptsList *qemu_find_opts(const char *group);

View File

@ -15,7 +15,6 @@
#ifndef QEMU_COROUTINE_H #ifndef QEMU_COROUTINE_H
#define QEMU_COROUTINE_H #define QEMU_COROUTINE_H
#include <stdbool.h>
#include "qemu/typedefs.h" #include "qemu/typedefs.h"
#include "qemu/queue.h" #include "qemu/queue.h"
#include "qemu/timer.h" #include "qemu/timer.h"

View File

@ -13,9 +13,6 @@
#ifndef QEMU_ERROR_H #ifndef QEMU_ERROR_H
#define QEMU_ERROR_H #define QEMU_ERROR_H
#include <stdarg.h>
#include <stdbool.h>
#include "qemu/compiler.h"
typedef struct Location { typedef struct Location {
/* all members are private to qemu-error.c */ /* all members are private to qemu-error.c */

View File

@ -8,8 +8,6 @@
#ifndef QEMU_FPRINTF_FN_H #ifndef QEMU_FPRINTF_FN_H
#define QEMU_FPRINTF_FN_H 1 #define QEMU_FPRINTF_FN_H 1
#include "qemu/compiler.h"
#include <stdio.h>
typedef int (*fprintf_function)(FILE *f, const char *fmt, ...) typedef int (*fprintf_function)(FILE *f, const char *fmt, ...)
GCC_FMT_ATTR(2, 3); GCC_FMT_ATTR(2, 3);

View File

@ -12,9 +12,6 @@
#ifndef HBITMAP_H #ifndef HBITMAP_H
#define HBITMAP_H 1 #define HBITMAP_H 1
#include <limits.h>
#include <stdint.h>
#include <stdbool.h>
#include "bitops.h" #include "bitops.h"
#include "host-utils.h" #include "host-utils.h"

View File

@ -25,10 +25,7 @@
#ifndef HOST_UTILS_H #ifndef HOST_UTILS_H
#define HOST_UTILS_H 1 #define HOST_UTILS_H 1
#include "qemu/compiler.h" /* QEMU_GNUC_PREREQ */
#include "qemu/bswap.h" #include "qemu/bswap.h"
#include <limits.h>
#include <stdbool.h>
#ifdef CONFIG_INT128 #ifdef CONFIG_INT128
static inline void mulu64(uint64_t *plow, uint64_t *phigh, static inline void mulu64(uint64_t *plow, uint64_t *phigh,

View File

@ -1,9 +1,6 @@
#ifndef INT128_H #ifndef INT128_H
#define INT128_H #define INT128_H
#include <assert.h>
#include <stdint.h>
#include <stdbool.h>
typedef struct Int128 Int128; typedef struct Int128 Int128;

View File

@ -1,10 +1,6 @@
#ifndef QEMU_LOG_H #ifndef QEMU_LOG_H
#define QEMU_LOG_H #define QEMU_LOG_H
#include <stdarg.h>
#include <stdbool.h>
#include <stdio.h>
#include "qemu/compiler.h"
/* Private global variables, don't use */ /* Private global variables, don't use */
extern FILE *qemu_logfile; extern FILE *qemu_logfile;

View File

@ -1,8 +1,6 @@
#ifndef QEMU_MEMFD_H #ifndef QEMU_MEMFD_H
#define QEMU_MEMFD_H #define QEMU_MEMFD_H
#include "config-host.h"
#include <stdbool.h>
#ifndef F_LINUX_SPECIFIC_BASE #ifndef F_LINUX_SPECIFIC_BASE
#define F_LINUX_SPECIFIC_BASE 1024 #define F_LINUX_SPECIFIC_BASE 1024

View File

@ -14,7 +14,6 @@
#ifndef QEMU_MODULE_H #ifndef QEMU_MODULE_H
#define QEMU_MODULE_H #define QEMU_MODULE_H
#include "qemu/osdep.h"
#define DSO_STAMP_FUN glue(qemu_stamp, CONFIG_STAMP) #define DSO_STAMP_FUN glue(qemu_stamp, CONFIG_STAMP)
#define DSO_STAMP_FUN_STR stringify(DSO_STAMP_FUN) #define DSO_STAMP_FUN_STR stringify(DSO_STAMP_FUN)

View File

@ -26,9 +26,7 @@
#ifndef QEMU_OPTIONS_H #ifndef QEMU_OPTIONS_H
#define QEMU_OPTIONS_H #define QEMU_OPTIONS_H
#include <stdint.h>
#include "qemu/queue.h" #include "qemu/queue.h"
#include "qapi/error.h"
#include "qapi/qmp/qdict.h" #include "qapi/qmp/qdict.h"
#include "qemu/typedefs.h" #include "qemu/typedefs.h"

View File

@ -1,7 +1,6 @@
#ifndef QEMU_RANGE_H #ifndef QEMU_RANGE_H
#define QEMU_RANGE_H #define QEMU_RANGE_H
#include <inttypes.h>
#include <qemu/typedefs.h> #include <qemu/typedefs.h>
#include "qemu/queue.h" #include "qemu/queue.h"

View File

@ -23,15 +23,8 @@
* IBM's contributions to this file may be relicensed under LGPLv2 or later. * IBM's contributions to this file may be relicensed under LGPLv2 or later.
*/ */
#include <stdlib.h>
#include <assert.h>
#include <limits.h>
#include <unistd.h>
#include <stdint.h>
#include <stdbool.h>
#include <glib.h> #include <glib.h>
#include "qemu/compiler.h"
#include "qemu/thread.h" #include "qemu/thread.h"
#include "qemu/queue.h" #include "qemu/queue.h"
#include "qemu/atomic.h" #include "qemu/atomic.h"

View File

@ -13,7 +13,6 @@ int inet_aton(const char *cp, struct in_addr *ia);
#else #else
#include <sys/types.h>
#include <sys/socket.h> #include <sys/socket.h>
#include <netinet/in.h> #include <netinet/in.h>
#include <netinet/tcp.h> #include <netinet/tcp.h>
@ -26,7 +25,6 @@ int inet_aton(const char *cp, struct in_addr *ia);
#endif /* !_WIN32 */ #endif /* !_WIN32 */
#include "qapi/error.h"
#include "qapi-types.h" #include "qapi-types.h"
/* misc helpers */ /* misc helpers */

View File

@ -1,8 +1,6 @@
#ifndef __QEMU_THREAD_H #ifndef __QEMU_THREAD_H
#define __QEMU_THREAD_H 1 #define __QEMU_THREAD_H 1
#include <inttypes.h>
#include <stdbool.h>
typedef struct QemuMutex QemuMutex; typedef struct QemuMutex QemuMutex;
typedef struct QemuCond QemuCond; typedef struct QemuCond QemuCond;

View File

@ -25,7 +25,6 @@
#ifndef THROTTLE_H #ifndef THROTTLE_H
#define THROTTLE_H #define THROTTLE_H
#include <stdint.h>
#include "qemu-common.h" #include "qemu-common.h"
#include "qemu/timer.h" #include "qemu/timer.h"

View File

@ -25,7 +25,6 @@
#ifndef TIMED_AVERAGE_H #ifndef TIMED_AVERAGE_H
#define TIMED_AVERAGE_H #define TIMED_AVERAGE_H
#include <stdint.h>
#include "qemu/timer.h" #include "qemu/timer.h"

View File

@ -18,7 +18,6 @@
* in /usr/include/sys, and don't have ENOATTR. * in /usr/include/sys, and don't have ENOATTR.
*/ */
#include "config-host.h"
#ifdef CONFIG_LIBATTR #ifdef CONFIG_LIBATTR
# include <attr/xattr.h> # include <attr/xattr.h>

View File

@ -20,7 +20,6 @@
#ifndef QEMU_CPU_H #ifndef QEMU_CPU_H
#define QEMU_CPU_H #define QEMU_CPU_H
#include <signal.h>
#include <setjmp.h> #include <setjmp.h>
#include "hw/qdev-core.h" #include "hw/qdev-core.h"
#include "disas/bfd.h" #include "disas/bfd.h"

View File

@ -15,11 +15,8 @@
#define QEMU_OBJECT_H #define QEMU_OBJECT_H
#include <glib.h> #include <glib.h>
#include <stdint.h>
#include <stdbool.h>
#include "qemu/queue.h" #include "qemu/queue.h"
#include "qemu/typedefs.h" #include "qemu/typedefs.h"
#include "qapi/error.h"
struct TypeImpl; struct TypeImpl;
typedef struct TypeImpl *Type; typedef struct TypeImpl *Type;

View File

@ -14,7 +14,6 @@
#define BLOCK_BACKEND_H #define BLOCK_BACKEND_H
#include "qemu/typedefs.h" #include "qemu/typedefs.h"
#include "qapi/error.h"
/* /*
* TODO Have to include block/block.h for a bunch of block layer * TODO Have to include block/block.h for a bunch of block layer

View File

@ -11,7 +11,6 @@
#define BLOCKDEV_H #define BLOCKDEV_H
#include "block/block.h" #include "block/block.h"
#include "qapi/error.h"
#include "qemu/queue.h" #include "qemu/queue.h"
void blockdev_mark_auto_del(BlockBackend *blk); void blockdev_mark_auto_del(BlockBackend *blk);

View File

@ -10,7 +10,6 @@
#ifndef DMA_H #ifndef DMA_H
#define DMA_H #define DMA_H
#include <stdio.h>
#include "exec/memory.h" #include "exec/memory.h"
#include "exec/address-spaces.h" #include "exec/address-spaces.h"
#include "hw/hw.h" #include "hw/hw.h"

View File

@ -14,7 +14,6 @@
#include "sysemu/sysemu.h" /* for MAX_NODES */ #include "sysemu/sysemu.h" /* for MAX_NODES */
#include "qom/object.h" #include "qom/object.h"
#include "qapi/error.h"
#include "exec/memory.h" #include "exec/memory.h"
#include "qemu/option.h" #include "qemu/option.h"
#include "qemu/bitmap.h" #include "qemu/bitmap.h"

View File

@ -14,8 +14,6 @@
#ifndef QEMU_KVM_H #ifndef QEMU_KVM_H
#define QEMU_KVM_H #define QEMU_KVM_H
#include <errno.h>
#include "config-host.h"
#include "qemu/queue.h" #include "qemu/queue.h"
#include "qom/cpu.h" #include "qom/cpu.h"
#include "exec/memattrs.h" #include "exec/memattrs.h"

View File

@ -1,7 +1,6 @@
#ifndef SYSEMU_NUMA_H #ifndef SYSEMU_NUMA_H
#define SYSEMU_NUMA_H #define SYSEMU_NUMA_H
#include <stdint.h>
#include "qemu/bitmap.h" #include "qemu/bitmap.h"
#include "qemu/option.h" #include "qemu/option.h"
#include "sysemu/sysemu.h" #include "sysemu/sysemu.h"

View File

@ -26,7 +26,6 @@
#ifndef QEMU_OS_POSIX_H #ifndef QEMU_OS_POSIX_H
#define QEMU_OS_POSIX_H #define QEMU_OS_POSIX_H
#include <sys/time.h>
void os_set_line_buffering(void); void os_set_line_buffering(void);
void os_set_proc_name(const char *s); void os_set_proc_name(const char *s);

View File

@ -15,7 +15,6 @@
#define QTEST_H #define QTEST_H
#include "qemu-common.h" #include "qemu-common.h"
#include "qapi/error.h"
extern bool qtest_allowed; extern bool qtest_allowed;

View File

@ -12,10 +12,7 @@
* *
*/ */
#include <stdbool.h>
#include <stdint.h>
#include "qapi-types.h" #include "qapi-types.h"
#include "qapi/error.h"
#include "qemu/typedefs.h" #include "qemu/typedefs.h"
/* replay clock kinds */ /* replay clock kinds */

View File

@ -15,7 +15,6 @@
#include "qom/object.h" #include "qom/object.h"
#include "qemu-common.h" #include "qemu-common.h"
#include "qapi/error.h"
#define TYPE_RNG_BACKEND "rng-backend" #define TYPE_RNG_BACKEND "rng-backend"
#define RNG_BACKEND(obj) \ #define RNG_BACKEND(obj) \

View File

@ -16,7 +16,6 @@
#define QEMU_SECCOMP_H #define QEMU_SECCOMP_H
#include <seccomp.h> #include <seccomp.h>
#include "qemu/osdep.h"
int seccomp_start(void); int seccomp_start(void);
#endif #endif

View File

@ -15,7 +15,6 @@
#include "qom/object.h" #include "qom/object.h"
#include "qemu-common.h" #include "qemu-common.h"
#include "qapi/error.h"
#include "qapi-types.h" #include "qapi-types.h"
#include "qemu/option.h" #include "qemu/option.h"
#include "sysemu/tpm.h" #include "sysemu/tpm.h"

View File

@ -9,7 +9,6 @@
#ifndef XEN_MAPCACHE_H #ifndef XEN_MAPCACHE_H
#define XEN_MAPCACHE_H #define XEN_MAPCACHE_H
#include <stdlib.h>
typedef hwaddr (*phys_offset_to_gaddr_t)(hwaddr start_addr, typedef hwaddr (*phys_offset_to_gaddr_t)(hwaddr start_addr,
ram_addr_t size, ram_addr_t size,

View File

@ -7,7 +7,6 @@
#include "qemu/notify.h" #include "qemu/notify.h"
#include "qemu/typedefs.h" #include "qemu/typedefs.h"
#include "qapi-types.h" #include "qapi-types.h"
#include "qapi/error.h"
#ifdef CONFIG_OPENGL #ifdef CONFIG_OPENGL
# include <epoxy/gl.h> # include <epoxy/gl.h>

View File

@ -18,7 +18,6 @@
#ifndef QEMU_SPICE_H #ifndef QEMU_SPICE_H
#define QEMU_SPICE_H #define QEMU_SPICE_H
#include "config-host.h"
#ifdef CONFIG_SPICE #ifdef CONFIG_SPICE