Skip to content
This repository has been archived by the owner on Apr 13, 2019. It is now read-only.

Commit

Permalink
all: Remove unnecessary glib.h includes
Browse files Browse the repository at this point in the history
Remove glib.h includes, as it is provided by osdep.h.

This commit was created with scripts/clean-includes.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Eric Blake <eblake@redhat.com>
Tested-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
  • Loading branch information
pm215 authored and Michael Tokarev committed Jun 7, 2016
1 parent 36a2c2d commit 030c98a
Show file tree
Hide file tree
Showing 29 changed files with 0 additions and 29 deletions.
1 change: 0 additions & 1 deletion block/dmg.c
Expand Up @@ -32,7 +32,6 @@
#ifdef CONFIG_BZIP2
#include <bzlib.h>
#endif
#include <glib.h>

enum {
/* Limit chunk sizes to prevent unreasonable amounts of memory being used
Expand Down
1 change: 0 additions & 1 deletion block/vhdx.c
Expand Up @@ -27,7 +27,6 @@
#include "migration/migration.h"

#include <uuid/uuid.h>
#include <glib.h>

/* Options for VHDX creation */

Expand Down
1 change: 0 additions & 1 deletion block/vmdk.c
Expand Up @@ -34,7 +34,6 @@
#include "migration/migration.h"
#include "qemu/cutils.h"
#include <zlib.h>
#include <glib.h>

#define VMDK3_MAGIC (('C' << 24) | ('O' << 16) | ('W' << 8) | 'D')
#define VMDK4_MAGIC (('K' << 24) | ('D' << 16) | ('M' << 8) | 'V')
Expand Down
1 change: 0 additions & 1 deletion fsdev/9p-iov-marshal.c
Expand Up @@ -12,7 +12,6 @@
*/

#include "qemu/osdep.h"
#include <glib.h>
#include <glib/gprintf.h>
#include <utime.h>
#include <sys/uio.h>
Expand Down
1 change: 0 additions & 1 deletion fsdev/9p-marshal.c
Expand Up @@ -12,7 +12,6 @@
*/

#include "qemu/osdep.h"
#include <glib.h>
#include <glib/gprintf.h>
#include <dirent.h>
#include <utime.h>
Expand Down
1 change: 0 additions & 1 deletion hw/9pfs/9p.h
Expand Up @@ -4,7 +4,6 @@
#include <dirent.h>
#include <utime.h>
#include <sys/resource.h>
#include <glib.h>
#include "fsdev/file-op-9p.h"
#include "fsdev/9p-iov-marshal.h"
#include "qemu/thread.h"
Expand Down
1 change: 0 additions & 1 deletion hw/i386/acpi-build.c
Expand Up @@ -23,7 +23,6 @@
#include "qemu/osdep.h"
#include "qapi/error.h"
#include "acpi-build.h"
#include <glib.h>
#include "qemu-common.h"
#include "qemu/bitmap.h"
#include "qemu/error-report.h"
Expand Down
1 change: 0 additions & 1 deletion hw/i386/pc_piix.c
Expand Up @@ -23,7 +23,6 @@
*/

#include "qemu/osdep.h"
#include <glib.h>

#include "hw/hw.h"
#include "hw/loader.h"
Expand Down
1 change: 0 additions & 1 deletion include/hw/acpi/aml-build.h
@@ -1,7 +1,6 @@
#ifndef HW_ACPI_GEN_UTILS_H
#define HW_ACPI_GEN_UTILS_H

#include <glib.h>
#include "hw/acpi/acpi-defs.h"
#include "hw/acpi/bios-linker-loader.h"

Expand Down
1 change: 0 additions & 1 deletion include/hw/acpi/bios-linker-loader.h
@@ -1,7 +1,6 @@
#ifndef BIOS_LINKER_LOADER_H
#define BIOS_LINKER_LOADER_H

#include <glib.h>

typedef struct BIOSLinker {
GArray *cmd_blob;
Expand Down
1 change: 0 additions & 1 deletion include/qemu/bitmap.h
Expand Up @@ -12,7 +12,6 @@
#ifndef BITMAP_H
#define BITMAP_H

#include <glib.h>

#include "qemu/bitops.h"

Expand Down
1 change: 0 additions & 1 deletion include/qemu/rcu.h
Expand Up @@ -23,7 +23,6 @@
* IBM's contributions to this file may be relicensed under LGPLv2 or later.
*/

#include <glib.h>

#include "qemu/thread.h"
#include "qemu/queue.h"
Expand Down
1 change: 0 additions & 1 deletion include/qom/object.h
Expand Up @@ -14,7 +14,6 @@
#ifndef QEMU_OBJECT_H
#define QEMU_OBJECT_H

#include <glib.h>
#include "qapi-types.h"
#include "qemu/queue.h"

Expand Down
1 change: 0 additions & 1 deletion include/sysemu/tpm_backend_int.h
Expand Up @@ -22,7 +22,6 @@
#ifndef TPM_TPM_BACKEND_H
#define TPM_TPM_BACKEND_H

#include <glib.h>

typedef struct TPMBackendThread {
GThreadPool *pool;
Expand Down
1 change: 0 additions & 1 deletion memory_mapping.c
Expand Up @@ -13,7 +13,6 @@

#include "qemu/osdep.h"
#include "qapi/error.h"
#include <glib.h>

#include "qemu-common.h"
#include "cpu.h"
Expand Down
1 change: 0 additions & 1 deletion migration/postcopy-ram.c
Expand Up @@ -17,7 +17,6 @@
*/

#include "qemu/osdep.h"
#include <glib.h>

#include "qemu-common.h"
#include "migration/migration.h"
Expand Down
1 change: 0 additions & 1 deletion page_cache.c
Expand Up @@ -13,7 +13,6 @@
*/

#include "qemu/osdep.h"
#include <glib.h>

#include "qemu-common.h"
#include "qemu/host-utils.h"
Expand Down
1 change: 0 additions & 1 deletion qapi/qmp-registry.c
Expand Up @@ -13,7 +13,6 @@
*/

#include "qemu/osdep.h"
#include <glib.h>
#include "qapi/qmp/dispatch.h"

static QTAILQ_HEAD(QmpCommandList, QmpCommand) qmp_commands =
Expand Down
1 change: 0 additions & 1 deletion qemu-bridge-helper.c
Expand Up @@ -15,7 +15,6 @@

#include "qemu/osdep.h"

#include <glib.h>

#include <sys/ioctl.h>
#include <sys/socket.h>
Expand Down
1 change: 0 additions & 1 deletion slirp/dnssearch.c
Expand Up @@ -23,7 +23,6 @@
*/

#include "qemu/osdep.h"
#include <glib.h>
#include "slirp.h"

static const uint8_t RFC3397_OPT_DOMAIN_SEARCH = 119;
Expand Down
1 change: 0 additions & 1 deletion slirp/slirp.h
Expand Up @@ -69,7 +69,6 @@ typedef char *caddr_t;
#include <sys/stropts.h>
#endif

#include <glib.h>

#include "debug.h"

Expand Down
1 change: 0 additions & 1 deletion ui/sdl_zoom.c
Expand Up @@ -13,7 +13,6 @@

#include "qemu/osdep.h"
#include "sdl_zoom.h"
#include <glib.h>

static void sdl_zoom_rgb16(SDL_Surface *src, SDL_Surface *dst, int smooth,
SDL_Rect *dst_rect);
Expand Down
1 change: 0 additions & 1 deletion ui/vnc-palette.c
Expand Up @@ -28,7 +28,6 @@

#include "qemu/osdep.h"
#include "vnc-palette.h"
#include <glib.h>

static VncPaletteEntry *palette_find(const VncPalette *palette,
uint32_t color, unsigned int hash)
Expand Down
1 change: 0 additions & 1 deletion util/coroutine-gthread.c
Expand Up @@ -19,7 +19,6 @@
*/

#include "qemu/osdep.h"
#include <glib.h>
#include "qemu-common.h"
#include "qemu/coroutine_int.h"

Expand Down
1 change: 0 additions & 1 deletion util/hbitmap.c
Expand Up @@ -10,7 +10,6 @@
*/

#include "qemu/osdep.h"
#include <glib.h>
#include "qemu/hbitmap.h"
#include "qemu/host-utils.h"
#include "trace.h"
Expand Down
1 change: 0 additions & 1 deletion util/memfd.c
Expand Up @@ -27,7 +27,6 @@

#include "qemu/osdep.h"

#include <glib.h>
#include <glib/gprintf.h>

#include <sys/mman.h>
Expand Down
1 change: 0 additions & 1 deletion util/oslib-win32.c
Expand Up @@ -31,7 +31,6 @@
*/
#include "qemu/osdep.h"
#include <windows.h>
#include <glib.h>
#include "qapi/error.h"
#include "sysemu/sysemu.h"
#include "qemu/main-loop.h"
Expand Down
1 change: 0 additions & 1 deletion util/uri.c
Expand Up @@ -52,7 +52,6 @@
*/

#include "qemu/osdep.h"
#include <glib.h>

#include "qemu/uri.h"

Expand Down
1 change: 0 additions & 1 deletion vl.c
Expand Up @@ -51,7 +51,6 @@ int main(int argc, char **argv)
#define main qemu_main
#endif /* CONFIG_COCOA */

#include <glib.h>

#include "qemu/error-report.h"
#include "qemu/sockets.h"
Expand Down

0 comments on commit 030c98a

Please sign in to comment.