mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 10:34:58 -06:00
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:
parent
974dc73d77
commit
90ce6e2644
97 changed files with 0 additions and 156 deletions
|
@ -15,7 +15,6 @@
|
|||
#ifndef __QEMU_ATOMIC_H
|
||||
#define __QEMU_ATOMIC_H 1
|
||||
|
||||
#include "qemu/compiler.h"
|
||||
|
||||
|
||||
/* Compiler barrier */
|
||||
|
|
|
@ -13,10 +13,7 @@
|
|||
#define BITMAP_H
|
||||
|
||||
#include <glib.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "qemu/osdep.h"
|
||||
#include "qemu/bitops.h"
|
||||
|
||||
/*
|
||||
|
|
|
@ -12,8 +12,6 @@
|
|||
#ifndef BITOPS_H
|
||||
#define BITOPS_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include <assert.h>
|
||||
|
||||
#include "host-utils.h"
|
||||
#include "atomic.h"
|
||||
|
|
|
@ -1,15 +1,10 @@
|
|||
#ifndef BSWAP_H
|
||||
#define BSWAP_H
|
||||
|
||||
#include "config-host.h"
|
||||
#include <inttypes.h>
|
||||
#include <limits.h>
|
||||
#include <string.h>
|
||||
#include "fpu/softfloat.h"
|
||||
|
||||
#ifdef CONFIG_MACHINE_BSWAP_H
|
||||
# include <sys/endian.h>
|
||||
# include <sys/types.h>
|
||||
# include <machine/bswap.h>
|
||||
#elif defined(__FreeBSD__)
|
||||
# include <sys/endian.h>
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
#ifndef QEMU_COMPATFD_H
|
||||
#define QEMU_COMPATFD_H
|
||||
|
||||
#include <signal.h>
|
||||
|
||||
struct qemu_signalfd_siginfo {
|
||||
uint32_t ssi_signo; /* Signal number */
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
#ifndef COMPILER_H
|
||||
#define COMPILER_H
|
||||
|
||||
#include "config-host.h"
|
||||
|
||||
/*----------------------------------------------------------------------------
|
||||
| The macro QEMU_GNUC_PREREQ tests for minimum version of the GNU C compiler.
|
||||
|
|
|
@ -1,9 +1,7 @@
|
|||
#ifndef QEMU_CONFIG_H
|
||||
#define QEMU_CONFIG_H
|
||||
|
||||
#include <stdio.h>
|
||||
#include "qemu/option.h"
|
||||
#include "qapi/error.h"
|
||||
#include "qapi/qmp/qdict.h"
|
||||
|
||||
QemuOptsList *qemu_find_opts(const char *group);
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
#ifndef QEMU_COROUTINE_H
|
||||
#define QEMU_COROUTINE_H
|
||||
|
||||
#include <stdbool.h>
|
||||
#include "qemu/typedefs.h"
|
||||
#include "qemu/queue.h"
|
||||
#include "qemu/timer.h"
|
||||
|
|
|
@ -13,9 +13,6 @@
|
|||
#ifndef QEMU_ERROR_H
|
||||
#define QEMU_ERROR_H
|
||||
|
||||
#include <stdarg.h>
|
||||
#include <stdbool.h>
|
||||
#include "qemu/compiler.h"
|
||||
|
||||
typedef struct Location {
|
||||
/* all members are private to qemu-error.c */
|
||||
|
|
|
@ -8,8 +8,6 @@
|
|||
#ifndef QEMU_FPRINTF_FN_H
|
||||
#define QEMU_FPRINTF_FN_H 1
|
||||
|
||||
#include "qemu/compiler.h"
|
||||
#include <stdio.h>
|
||||
|
||||
typedef int (*fprintf_function)(FILE *f, const char *fmt, ...)
|
||||
GCC_FMT_ATTR(2, 3);
|
||||
|
|
|
@ -12,9 +12,6 @@
|
|||
#ifndef HBITMAP_H
|
||||
#define HBITMAP_H 1
|
||||
|
||||
#include <limits.h>
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
#include "bitops.h"
|
||||
#include "host-utils.h"
|
||||
|
||||
|
|
|
@ -25,10 +25,7 @@
|
|||
#ifndef HOST_UTILS_H
|
||||
#define HOST_UTILS_H 1
|
||||
|
||||
#include "qemu/compiler.h" /* QEMU_GNUC_PREREQ */
|
||||
#include "qemu/bswap.h"
|
||||
#include <limits.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#ifdef CONFIG_INT128
|
||||
static inline void mulu64(uint64_t *plow, uint64_t *phigh,
|
||||
|
|
|
@ -1,9 +1,6 @@
|
|||
#ifndef INT128_H
|
||||
#define INT128_H
|
||||
|
||||
#include <assert.h>
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
typedef struct Int128 Int128;
|
||||
|
||||
|
|
|
@ -1,10 +1,6 @@
|
|||
#ifndef 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 */
|
||||
extern FILE *qemu_logfile;
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
#ifndef QEMU_MEMFD_H
|
||||
#define QEMU_MEMFD_H
|
||||
|
||||
#include "config-host.h"
|
||||
#include <stdbool.h>
|
||||
|
||||
#ifndef F_LINUX_SPECIFIC_BASE
|
||||
#define F_LINUX_SPECIFIC_BASE 1024
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
#ifndef QEMU_MODULE_H
|
||||
#define QEMU_MODULE_H
|
||||
|
||||
#include "qemu/osdep.h"
|
||||
|
||||
#define DSO_STAMP_FUN glue(qemu_stamp, CONFIG_STAMP)
|
||||
#define DSO_STAMP_FUN_STR stringify(DSO_STAMP_FUN)
|
||||
|
|
|
@ -26,9 +26,7 @@
|
|||
#ifndef QEMU_OPTIONS_H
|
||||
#define QEMU_OPTIONS_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include "qemu/queue.h"
|
||||
#include "qapi/error.h"
|
||||
#include "qapi/qmp/qdict.h"
|
||||
#include "qemu/typedefs.h"
|
||||
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
#ifndef QEMU_RANGE_H
|
||||
#define QEMU_RANGE_H
|
||||
|
||||
#include <inttypes.h>
|
||||
#include <qemu/typedefs.h>
|
||||
#include "qemu/queue.h"
|
||||
|
||||
|
|
|
@ -23,15 +23,8 @@
|
|||
* 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 "qemu/compiler.h"
|
||||
#include "qemu/thread.h"
|
||||
#include "qemu/queue.h"
|
||||
#include "qemu/atomic.h"
|
||||
|
|
|
@ -13,7 +13,6 @@ int inet_aton(const char *cp, struct in_addr *ia);
|
|||
|
||||
#else
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
#include <netinet/in.h>
|
||||
#include <netinet/tcp.h>
|
||||
|
@ -26,7 +25,6 @@ int inet_aton(const char *cp, struct in_addr *ia);
|
|||
|
||||
#endif /* !_WIN32 */
|
||||
|
||||
#include "qapi/error.h"
|
||||
#include "qapi-types.h"
|
||||
|
||||
/* misc helpers */
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
#ifndef __QEMU_THREAD_H
|
||||
#define __QEMU_THREAD_H 1
|
||||
|
||||
#include <inttypes.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
typedef struct QemuMutex QemuMutex;
|
||||
typedef struct QemuCond QemuCond;
|
||||
|
|
|
@ -25,7 +25,6 @@
|
|||
#ifndef THROTTLE_H
|
||||
#define THROTTLE_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include "qemu-common.h"
|
||||
#include "qemu/timer.h"
|
||||
|
||||
|
|
|
@ -25,7 +25,6 @@
|
|||
#ifndef TIMED_AVERAGE_H
|
||||
#define TIMED_AVERAGE_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#include "qemu/timer.h"
|
||||
|
||||
|
|
|
@ -18,7 +18,6 @@
|
|||
* in /usr/include/sys, and don't have ENOATTR.
|
||||
*/
|
||||
|
||||
#include "config-host.h"
|
||||
|
||||
#ifdef CONFIG_LIBATTR
|
||||
# include <attr/xattr.h>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue