提交 030c98af 编写于 作者: P Peter Maydell 提交者: Michael Tokarev

all: Remove unnecessary glib.h includes

Remove glib.h includes, as it is provided by osdep.h.

This commit was created with scripts/clean-includes.
Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
Reviewed-by: NEric Blake <eblake@redhat.com>
Tested-by: NEric Blake <eblake@redhat.com>
Signed-off-by: NMichael Tokarev <mjt@tls.msk.ru>
上级 36a2c2d6
...@@ -32,7 +32,6 @@ ...@@ -32,7 +32,6 @@
#ifdef CONFIG_BZIP2 #ifdef CONFIG_BZIP2
#include <bzlib.h> #include <bzlib.h>
#endif #endif
#include <glib.h>
enum { enum {
/* Limit chunk sizes to prevent unreasonable amounts of memory being used /* Limit chunk sizes to prevent unreasonable amounts of memory being used
......
...@@ -27,7 +27,6 @@ ...@@ -27,7 +27,6 @@
#include "migration/migration.h" #include "migration/migration.h"
#include <uuid/uuid.h> #include <uuid/uuid.h>
#include <glib.h>
/* Options for VHDX creation */ /* Options for VHDX creation */
......
...@@ -34,7 +34,6 @@ ...@@ -34,7 +34,6 @@
#include "migration/migration.h" #include "migration/migration.h"
#include "qemu/cutils.h" #include "qemu/cutils.h"
#include <zlib.h> #include <zlib.h>
#include <glib.h>
#define VMDK3_MAGIC (('C' << 24) | ('O' << 16) | ('W' << 8) | 'D') #define VMDK3_MAGIC (('C' << 24) | ('O' << 16) | ('W' << 8) | 'D')
#define VMDK4_MAGIC (('K' << 24) | ('D' << 16) | ('M' << 8) | 'V') #define VMDK4_MAGIC (('K' << 24) | ('D' << 16) | ('M' << 8) | 'V')
......
...@@ -12,7 +12,6 @@ ...@@ -12,7 +12,6 @@
*/ */
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include <glib.h>
#include <glib/gprintf.h> #include <glib/gprintf.h>
#include <utime.h> #include <utime.h>
#include <sys/uio.h> #include <sys/uio.h>
......
...@@ -12,7 +12,6 @@ ...@@ -12,7 +12,6 @@
*/ */
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include <glib.h>
#include <glib/gprintf.h> #include <glib/gprintf.h>
#include <dirent.h> #include <dirent.h>
#include <utime.h> #include <utime.h>
......
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
#include <dirent.h> #include <dirent.h>
#include <utime.h> #include <utime.h>
#include <sys/resource.h> #include <sys/resource.h>
#include <glib.h>
#include "fsdev/file-op-9p.h" #include "fsdev/file-op-9p.h"
#include "fsdev/9p-iov-marshal.h" #include "fsdev/9p-iov-marshal.h"
#include "qemu/thread.h" #include "qemu/thread.h"
......
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include "qapi/error.h" #include "qapi/error.h"
#include "acpi-build.h" #include "acpi-build.h"
#include <glib.h>
#include "qemu-common.h" #include "qemu-common.h"
#include "qemu/bitmap.h" #include "qemu/bitmap.h"
#include "qemu/error-report.h" #include "qemu/error-report.h"
......
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
*/ */
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include <glib.h>
#include "hw/hw.h" #include "hw/hw.h"
#include "hw/loader.h" #include "hw/loader.h"
......
#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 <glib.h>
#include "hw/acpi/acpi-defs.h" #include "hw/acpi/acpi-defs.h"
#include "hw/acpi/bios-linker-loader.h" #include "hw/acpi/bios-linker-loader.h"
......
#ifndef BIOS_LINKER_LOADER_H #ifndef BIOS_LINKER_LOADER_H
#define BIOS_LINKER_LOADER_H #define BIOS_LINKER_LOADER_H
#include <glib.h>
typedef struct BIOSLinker { typedef struct BIOSLinker {
GArray *cmd_blob; GArray *cmd_blob;
......
...@@ -12,7 +12,6 @@ ...@@ -12,7 +12,6 @@
#ifndef BITMAP_H #ifndef BITMAP_H
#define BITMAP_H #define BITMAP_H
#include <glib.h>
#include "qemu/bitops.h" #include "qemu/bitops.h"
......
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
* 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 <glib.h>
#include "qemu/thread.h" #include "qemu/thread.h"
#include "qemu/queue.h" #include "qemu/queue.h"
......
...@@ -14,7 +14,6 @@ ...@@ -14,7 +14,6 @@
#ifndef QEMU_OBJECT_H #ifndef QEMU_OBJECT_H
#define QEMU_OBJECT_H #define QEMU_OBJECT_H
#include <glib.h>
#include "qapi-types.h" #include "qapi-types.h"
#include "qemu/queue.h" #include "qemu/queue.h"
......
...@@ -22,7 +22,6 @@ ...@@ -22,7 +22,6 @@
#ifndef TPM_TPM_BACKEND_H #ifndef TPM_TPM_BACKEND_H
#define TPM_TPM_BACKEND_H #define TPM_TPM_BACKEND_H
#include <glib.h>
typedef struct TPMBackendThread { typedef struct TPMBackendThread {
GThreadPool *pool; GThreadPool *pool;
......
...@@ -13,7 +13,6 @@ ...@@ -13,7 +13,6 @@
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include "qapi/error.h" #include "qapi/error.h"
#include <glib.h>
#include "qemu-common.h" #include "qemu-common.h"
#include "cpu.h" #include "cpu.h"
......
...@@ -17,7 +17,6 @@ ...@@ -17,7 +17,6 @@
*/ */
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include <glib.h>
#include "qemu-common.h" #include "qemu-common.h"
#include "migration/migration.h" #include "migration/migration.h"
......
...@@ -13,7 +13,6 @@ ...@@ -13,7 +13,6 @@
*/ */
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include <glib.h>
#include "qemu-common.h" #include "qemu-common.h"
#include "qemu/host-utils.h" #include "qemu/host-utils.h"
......
...@@ -13,7 +13,6 @@ ...@@ -13,7 +13,6 @@
*/ */
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include <glib.h>
#include "qapi/qmp/dispatch.h" #include "qapi/qmp/dispatch.h"
static QTAILQ_HEAD(QmpCommandList, QmpCommand) qmp_commands = static QTAILQ_HEAD(QmpCommandList, QmpCommand) qmp_commands =
......
...@@ -15,7 +15,6 @@ ...@@ -15,7 +15,6 @@
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include <glib.h>
#include <sys/ioctl.h> #include <sys/ioctl.h>
#include <sys/socket.h> #include <sys/socket.h>
......
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
*/ */
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include <glib.h>
#include "slirp.h" #include "slirp.h"
static const uint8_t RFC3397_OPT_DOMAIN_SEARCH = 119; static const uint8_t RFC3397_OPT_DOMAIN_SEARCH = 119;
......
...@@ -69,7 +69,6 @@ typedef char *caddr_t; ...@@ -69,7 +69,6 @@ typedef char *caddr_t;
#include <sys/stropts.h> #include <sys/stropts.h>
#endif #endif
#include <glib.h>
#include "debug.h" #include "debug.h"
......
...@@ -13,7 +13,6 @@ ...@@ -13,7 +13,6 @@
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include "sdl_zoom.h" #include "sdl_zoom.h"
#include <glib.h>
static void sdl_zoom_rgb16(SDL_Surface *src, SDL_Surface *dst, int smooth, static void sdl_zoom_rgb16(SDL_Surface *src, SDL_Surface *dst, int smooth,
SDL_Rect *dst_rect); SDL_Rect *dst_rect);
......
...@@ -28,7 +28,6 @@ ...@@ -28,7 +28,6 @@
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include "vnc-palette.h" #include "vnc-palette.h"
#include <glib.h>
static VncPaletteEntry *palette_find(const VncPalette *palette, static VncPaletteEntry *palette_find(const VncPalette *palette,
uint32_t color, unsigned int hash) uint32_t color, unsigned int hash)
......
...@@ -19,7 +19,6 @@ ...@@ -19,7 +19,6 @@
*/ */
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include <glib.h>
#include "qemu-common.h" #include "qemu-common.h"
#include "qemu/coroutine_int.h" #include "qemu/coroutine_int.h"
......
...@@ -10,7 +10,6 @@ ...@@ -10,7 +10,6 @@
*/ */
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include <glib.h>
#include "qemu/hbitmap.h" #include "qemu/hbitmap.h"
#include "qemu/host-utils.h" #include "qemu/host-utils.h"
#include "trace.h" #include "trace.h"
......
...@@ -27,7 +27,6 @@ ...@@ -27,7 +27,6 @@
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include <glib.h>
#include <glib/gprintf.h> #include <glib/gprintf.h>
#include <sys/mman.h> #include <sys/mman.h>
......
...@@ -31,7 +31,6 @@ ...@@ -31,7 +31,6 @@
*/ */
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include <windows.h> #include <windows.h>
#include <glib.h>
#include "qapi/error.h" #include "qapi/error.h"
#include "sysemu/sysemu.h" #include "sysemu/sysemu.h"
#include "qemu/main-loop.h" #include "qemu/main-loop.h"
......
...@@ -52,7 +52,6 @@ ...@@ -52,7 +52,6 @@
*/ */
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include <glib.h>
#include "qemu/uri.h" #include "qemu/uri.h"
......
...@@ -51,7 +51,6 @@ int main(int argc, char **argv) ...@@ -51,7 +51,6 @@ int main(int argc, char **argv)
#define main qemu_main #define main qemu_main
#endif /* CONFIG_COCOA */ #endif /* CONFIG_COCOA */
#include <glib.h>
#include "qemu/error-report.h" #include "qemu/error-report.h"
#include "qemu/sockets.h" #include "qemu/sockets.h"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册