Remove unnecessary glib.h includes
Subsystems (2)
cover Remove unnecessary glib.h includes
This patchset removes '#include <glib.h>' lines, because the header is already included via osdep.h.
Patch 1 adds the check to clean-includes, and patches 2-4 apply it (the breakup into 'tests', 'qga' and 'everything else' is semi-arbitrary and just to keep patch sizes down.)
thanks
-- PMM
Peter Maydell (4):
clean-includes: Add glib.h to list of unneeded includes
tests: Remove unnecessary glib.h includes
qga: Remove unnecessary glib.h includes
all: Remove unnecessary glib.h includes
block/dmg.c | 1 - block/vhdx.c | 1 - block/vmdk.c | 1 - fsdev/9p-iov-marshal.c | 1 - fsdev/9p-marshal.c | 1 - hw/9pfs/9p.h | 1 - hw/i386/acpi-build.c | 1 - hw/i386/pc_piix.c | 1 - include/hw/acpi/aml-build.h | 1 - include/hw/acpi/bios-linker-loader.h | 1 - include/qemu/bitmap.h | 1 - include/qemu/rcu.h | 1 - include/qom/object.h | 1 - include/sysemu/tpm_backend_int.h | 1 - memory_mapping.c | 1 - migration/postcopy-ram.c | 1 - page_cache.c | 1 - qapi/qmp-registry.c | 1 - qemu-bridge-helper.c | 1 - qga/channel-posix.c | 1 - qga/channel-win32.c | 1 - qga/channel.h | 1 - qga/commands-posix.c | 1 - qga/commands-win32.c | 1 - qga/commands.c | 1 - qga/guest-agent-command-state.c | 1 - qga/main.c | 1 - qga/service-win32.c | 1 - scripts/clean-includes | 3 ++- slirp/dnssearch.c | 1 - slirp/slirp.h | 1 - tests/ac97-test.c | 1 - tests/ahci-test.c | 1 - tests/bios-tables-test.c | 1 - tests/boot-order-test.c | 1 - tests/check-qdict.c | 1 - tests/check-qfloat.c | 1 - tests/check-qint.c | 1 - tests/check-qjson.c | 1 - tests/check-qlist.c | 1 - tests/check-qnull.c | 1 - tests/check-qom-interface.c | 1 - tests/check-qom-proplist.c | 1 - tests/check-qstring.c | 1 - tests/device-introspect-test.c | 1 - tests/display-vga-test.c | 1 - tests/drive_del-test.c | 1 - tests/ds1338-test.c | 1 - tests/e1000-test.c | 1 - tests/eepro100-test.c | 1 - tests/endianness-test.c | 1 - tests/es1370-test.c | 1 - tests/fdc-test.c | 1 - tests/fw_cfg-test.c | 1 - tests/hd-geo-test.c | 1 - tests/i440fx-test.c | 1 - tests/i82801b11-test.c | 1 - tests/ide-test.c | 1 - tests/intel-hda-test.c | 1 - tests/ioh3420-test.c | 1 - tests/ipmi-bt-test.c | 1 - tests/ipmi-kcs-test.c | 1 - tests/ipoctal232-test.c | 1 - tests/ivshmem-test.c | 1 - tests/libqos/ahci.c | 1 - tests/libqos/fw_cfg.c | 1 - tests/libqos/i2c-imx.c | 1 - tests/libqos/i2c-omap.c | 1 - tests/libqos/libqos.c | 1 - tests/libqos/malloc-generic.c | 1 - tests/libqos/malloc-pc.c | 1 - tests/libqos/malloc.c | 1 - tests/libqos/pci-pc.c | 1 - tests/libqos/pci.c | 1 - tests/libqos/usb.c | 1 - tests/libqos/virtio-mmio.c | 1 - tests/libqos/virtio-pci.c | 1 - tests/libqos/virtio.c | 1 - tests/libqtest.c | 1 - tests/m48t59-test.c | 1 - tests/ne2000-test.c | 1 - tests/nvme-test.c | 1 - tests/pc-cpu-test.c | 1 - tests/pcnet-test.c | 1 - tests/pvpanic-test.c | 1 - tests/pxe-test.c | 1 - tests/q35-test.c | 1 - tests/qom-test.c | 1 - tests/rcutorture.c | 1 - tests/rtc-test.c | 1 - tests/rtl8139-test.c | 1 - tests/spapr-phb-test.c | 1 - tests/tco-test.c | 1 - tests/test-aio.c | 1 - tests/test-base64.c | 1 - tests/test-bitops.c | 1 - tests/test-blockjob-txn.c | 1 - tests/test-coroutine.c | 1 - tests/test-crypto-cipher.c | 1 - tests/test-crypto-hash.c | 1 - tests/test-crypto-secret.c | 1 - tests/test-cutils.c | 1 - tests/test-filter-mirror.c | 1 - tests/test-filter-redirector.c | 1 - tests/test-hbitmap.c | 1 - tests/test-int128.c | 1 - tests/test-io-task.c | 1 - tests/test-iov.c | 1 - tests/test-logging.c | 1 - tests/test-mul64.c | 1 - tests/test-netfilter.c | 1 - tests/test-opts-visitor.c | 1 - tests/test-qdev-global-props.c | 1 - tests/test-qemu-opts.c | 1 - tests/test-qga.c | 1 - tests/test-qmp-commands.c | 1 - tests/test-qmp-event.c | 1 - tests/test-qmp-input-strict.c | 1 - tests/test-qmp-input-visitor.c | 1 - tests/test-qmp-output-visitor.c | 1 - tests/test-rcu-list.c | 1 - tests/test-rfifolock.c | 1 - tests/test-string-input-visitor.c | 1 - tests/test-string-output-visitor.c | 1 - tests/test-thread-pool.c | 1 - tests/test-throttle.c | 1 - tests/test-timed-average.c | 1 - tests/test-visitor-serialization.c | 1 - tests/test-vmstate.c | 1 - tests/test-write-threshold.c | 1 - tests/test-x86-cpuid.c | 1 - tests/tmp105-test.c | 1 - tests/tpci200-test.c | 1 - tests/usb-hcd-ehci-test.c | 1 - tests/usb-hcd-ohci-test.c | 1 - tests/usb-hcd-uhci-test.c | 1 - tests/usb-hcd-xhci-test.c | 1 - tests/vhost-user-test.c | 1 - tests/virtio-9p-test.c | 1 - tests/virtio-balloon-test.c | 1 - tests/virtio-blk-test.c | 1 - tests/virtio-console-test.c | 1 - tests/virtio-net-test.c | 1 - tests/virtio-rng-test.c | 1 - tests/virtio-scsi-test.c | 1 - tests/virtio-serial-test.c | 1 - tests/vmxnet3-test.c | 1 - tests/wdt_ib700-test.c | 1 - ui/sdl_zoom.c | 1 - ui/vnc-palette.c | 1 - util/coroutine-gthread.c | 1 - util/hbitmap.c | 1 - util/memfd.c | 1 - util/oslib-win32.c | 1 - util/uri.c | 1 - vl.c | 1 - 156 files changed, 2 insertions(+), 156 deletions(-)
Signature · 1 line
1.9.1
PATCH 1/4 clean-includes: Add glib.h to list of unneeded includes
osdep.h pulls in glib.h via glib-compat.h, so add it to the list of includes that we remove. (This then means we must avoid running clean-includes on glib-compat.h or it will delete the glib.h include.)
--- scripts/clean-includes | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
scripts/clean-includes +2 -1
@@ -104,6 +104,7 @@ for f in "$@"; do ;; *include/qemu/osdep.h | \ *include/qemu/compiler.h | \ + *include/glib-compat.h | \ *include/standard-headers/ ) # Removing include lines from osdep.h itself would be counterproductive. echo "SKIPPING $f (special case header)"
@@ -143,7 +144,7 @@ for f in "$@"; do <setjmp.h> <stdarg.h> <stddef.h> <stdbool.h> <stdint.h> <sys/types.h> <stdlib.h> <stdio.h> <string.h> <strings.h> <inttypes.h> <limits.h> <unistd.h> <time.h> <ctype.h> <errno.h> <fcntl.h> - <sys/stat.h> <sys/time.h> <assert.h> <signal.h> + <sys/stat.h> <sys/time.h> <assert.h> <signal.h> <glib.h> "sysemu/os-posix.h, sysemu/os-win32.h "glib-compat.h" "qemu/typedefs.h" ))' "$f"
Signature · 1 line
1.9.1
PATCH 2/4 tests: Remove unnecessary glib.h includes
In reply to Peter MaydellRemove glib.h includes, as it is provided by osdep.h.
This commit was created with scripts/clean-includes.
--- tests/ac97-test.c | 1 - tests/ahci-test.c | 1 - tests/bios-tables-test.c | 1 - tests/boot-order-test.c | 1 - tests/check-qdict.c | 1 - tests/check-qfloat.c | 1 - tests/check-qint.c | 1 - tests/check-qjson.c | 1 - tests/check-qlist.c | 1 - tests/check-qnull.c | 1 - tests/check-qom-interface.c | 1 - tests/check-qom-proplist.c | 1 - tests/check-qstring.c | 1 - tests/device-introspect-test.c | 1 - tests/display-vga-test.c | 1 - tests/drive_del-test.c | 1 - tests/ds1338-test.c | 1 - tests/e1000-test.c | 1 - tests/eepro100-test.c | 1 - tests/endianness-test.c | 1 - tests/es1370-test.c | 1 - tests/fdc-test.c | 1 - tests/fw_cfg-test.c | 1 - tests/hd-geo-test.c | 1 - tests/i440fx-test.c | 1 - tests/i82801b11-test.c | 1 - tests/ide-test.c | 1 - tests/intel-hda-test.c | 1 - tests/ioh3420-test.c | 1 - tests/ipmi-bt-test.c | 1 - tests/ipmi-kcs-test.c | 1 - tests/ipoctal232-test.c | 1 - tests/ivshmem-test.c | 1 - tests/libqos/ahci.c | 1 - tests/libqos/fw_cfg.c | 1 - tests/libqos/i2c-imx.c | 1 - tests/libqos/i2c-omap.c | 1 - tests/libqos/libqos.c | 1 - tests/libqos/malloc-generic.c | 1 - tests/libqos/malloc-pc.c | 1 - tests/libqos/malloc.c | 1 - tests/libqos/pci-pc.c | 1 - tests/libqos/pci.c | 1 - tests/libqos/usb.c | 1 - tests/libqos/virtio-mmio.c | 1 - tests/libqos/virtio-pci.c | 1 - tests/libqos/virtio.c | 1 - tests/libqtest.c | 1 - tests/m48t59-test.c | 1 - tests/ne2000-test.c | 1 - tests/nvme-test.c | 1 - tests/pc-cpu-test.c | 1 - tests/pcnet-test.c | 1 - tests/pvpanic-test.c | 1 - tests/pxe-test.c | 1 - tests/q35-test.c | 1 - tests/qom-test.c | 1 - tests/rcutorture.c | 1 - tests/rtc-test.c | 1 - tests/rtl8139-test.c | 1 - tests/spapr-phb-test.c | 1 - tests/tco-test.c | 1 - tests/test-aio.c | 1 - tests/test-base64.c | 1 - tests/test-bitops.c | 1 - tests/test-blockjob-txn.c | 1 - tests/test-coroutine.c | 1 - tests/test-crypto-cipher.c | 1 - tests/test-crypto-hash.c | 1 - tests/test-crypto-secret.c | 1 - tests/test-cutils.c | 1 - tests/test-filter-mirror.c | 1 - tests/test-filter-redirector.c | 1 - tests/test-hbitmap.c | 1 - tests/test-int128.c | 1 - tests/test-io-task.c | 1 - tests/test-iov.c | 1 - tests/test-logging.c | 1 - tests/test-mul64.c | 1 - tests/test-netfilter.c | 1 - tests/test-opts-visitor.c | 1 - tests/test-qdev-global-props.c | 1 - tests/test-qemu-opts.c | 1 - tests/test-qga.c | 1 - tests/test-qmp-commands.c | 1 - tests/test-qmp-event.c | 1 - tests/test-qmp-input-strict.c | 1 - tests/test-qmp-input-visitor.c | 1 - tests/test-qmp-output-visitor.c | 1 - tests/test-rcu-list.c | 1 - tests/test-rfifolock.c | 1 - tests/test-string-input-visitor.c | 1 - tests/test-string-output-visitor.c | 1 - tests/test-thread-pool.c | 1 - tests/test-throttle.c | 1 - tests/test-timed-average.c | 1 - tests/test-visitor-serialization.c | 1 - tests/test-vmstate.c | 1 - tests/test-write-threshold.c | 1 - tests/test-x86-cpuid.c | 1 - tests/tmp105-test.c | 1 - tests/tpci200-test.c | 1 - tests/usb-hcd-ehci-test.c | 1 - tests/usb-hcd-ohci-test.c | 1 - tests/usb-hcd-uhci-test.c | 1 - tests/usb-hcd-xhci-test.c | 1 - tests/vhost-user-test.c | 1 - tests/virtio-9p-test.c | 1 - tests/virtio-balloon-test.c | 1 - tests/virtio-blk-test.c | 1 - tests/virtio-console-test.c | 1 - tests/virtio-net-test.c | 1 - tests/virtio-rng-test.c | 1 - tests/virtio-scsi-test.c | 1 - tests/virtio-serial-test.c | 1 - tests/vmxnet3-test.c | 1 - tests/wdt_ib700-test.c | 1 - 117 files changed, 117 deletions(-)
tests/ac97-test.c +0 -1
@@ -8,7 +8,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include "libqtest.h" /* Tests only initialization so far. TODO: Replace with functional tests */
tests/ahci-test.c +0 -1
@@ -24,7 +24,6 @@#include "qemu/osdep.h" #include <getopt.h> -#include <glib.h> #include "libqtest.h" #include "libqos/libqos-pc.h"
tests/bios-tables-test.c +0 -1
@@ -11,7 +11,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include <glib/gstdio.h> #include "qemu-common.h" #include "libqtest.h"
tests/boot-order-test.c +0 -1
@@ -11,7 +11,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include "libqos/fw_cfg.h" #include "libqtest.h"
tests/check-qdict.c +0 -1
@@ -10,7 +10,6 @@* See the COPYING.LIB file in the top-level directory. */ #include "qemu/osdep.h" -#include <glib.h> #include "qapi/qmp/qint.h" #include "qapi/qmp/qdict.h"
tests/check-qfloat.c +0 -1
@@ -11,7 +11,6 @@* */ #include "qemu/osdep.h" -#include <glib.h> #include "qapi/qmp/qfloat.h" #include "qemu-common.h"
tests/check-qint.c +0 -1
@@ -10,7 +10,6 @@* See the COPYING.LIB file in the top-level directory. */ #include "qemu/osdep.h" -#include <glib.h> #include "qapi/qmp/qint.h" #include "qemu-common.h"
tests/check-qjson.c +0 -1
@@ -11,7 +11,6 @@* */ #include "qemu/osdep.h" -#include <glib.h> #include "qapi/qmp/qstring.h" #include "qapi/qmp/qint.h"
tests/check-qlist.c +0 -1
@@ -10,7 +10,6 @@* See the COPYING.LIB file in the top-level directory. */ #include "qemu/osdep.h" -#include <glib.h> #include "qapi/qmp/qint.h" #include "qapi/qmp/qlist.h"
tests/check-qnull.c +0 -1
@@ -7,7 +7,6 @@* See the COPYING.LIB file in the top-level directory. */ #include "qemu/osdep.h" -#include <glib.h> #include "qapi/qmp/qobject.h" #include "qemu-common.h"
tests/check-qom-interface.c +0 -1
@@ -10,7 +10,6 @@* See the COPYING.LIB file in the top-level directory. */ #include "qemu/osdep.h" -#include <glib.h> #include "qom/object.h" #include "qemu/module.h"
tests/check-qom-proplist.c +0 -1
@@ -19,7 +19,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include "qapi/error.h" #include "qom/object.h"
tests/check-qstring.c +0 -1
@@ -10,7 +10,6 @@* See the COPYING.LIB file in the top-level directory. */ #include "qemu/osdep.h" -#include <glib.h> #include "qapi/qmp/qstring.h" #include "qemu-common.h"
tests/device-introspect-test.c +0 -1
@@ -18,7 +18,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include "qemu-common.h" #include "qapi/qmp/qstring.h" #include "libqtest.h"
tests/display-vga-test.c +0 -1
@@ -8,7 +8,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include "libqtest.h" static void pci_cirrus (void )
tests/drive_del-test.c +0 -1
@@ -11,7 +11,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include "libqtest.h" static void drive_add (void )
tests/ds1338-test.c +0 -1
@@ -21,7 +21,6 @@#include "libqtest.h" #include "libqos/i2c.h" -#include <glib.h> #define IMX25_I2C_0_BASE 0x43F80000
tests/e1000-test.c +0 -1
@@ -8,7 +8,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include "libqtest.h" /* Tests only initialization so far. TODO: Replace with functional tests */
tests/eepro100-test.c +0 -1
@@ -8,7 +8,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include "libqtest.h" static void test_device (gconstpointer data)
tests/endianness-test.c +0 -1
@@ -12,7 +12,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include "libqtest.h" #include "qemu/bswap.h"
tests/es1370-test.c +0 -1
@@ -8,7 +8,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include "libqtest.h" /* Tests only initialization so far. TODO: Replace with functional tests */
tests/fdc-test.c +0 -1
@@ -24,7 +24,6 @@#include "qemu/osdep.h" -#include <glib.h> #include "libqtest.h" #include "qemu-common.h"
tests/fw_cfg-test.c +0 -1
@@ -11,7 +11,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include "libqtest.h" #include "hw/nvram/fw_cfg_keys.h"
tests/hd-geo-test.c +0 -1
@@ -16,7 +16,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include "qemu-common.h" #include "libqtest.h"
tests/i440fx-test.c +0 -1
@@ -13,7 +13,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include <sys/mman.h> #include "libqtest.h"
tests/i82801b11-test.c +0 -1
@@ -8,7 +8,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include "libqtest.h" /* Tests only initialization so far. TODO: Replace with functional tests */
tests/ide-test.c +0 -1
@@ -24,7 +24,6 @@#include "qemu/osdep.h" -#include <glib.h> #include "libqtest.h" #include "libqos/libqos.h"
tests/intel-hda-test.c +0 -1
@@ -8,7 +8,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include "libqtest.h" #define HDA_ID "hda0"
tests/ioh3420-test.c +0 -1
@@ -8,7 +8,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include "libqtest.h" /* Tests only initialization so far. TODO: Replace with functional tests */
tests/ipmi-bt-test.c +0 -1
@@ -29,7 +29,6 @@#include <netinet/ip.h> #include <netinet/tcp.h> -#include <glib.h> #include "libqtest.h" #include "qemu-common.h"
tests/ipmi-kcs-test.c +0 -1
@@ -24,7 +24,6 @@#include "qemu/osdep.h" -#include <glib.h> #include "libqtest.h"
tests/ipoctal232-test.c +0 -1
@@ -8,7 +8,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include "libqtest.h" /* Tests only initialization so far. TODO: Replace with functional tests */
tests/ivshmem-test.c +0 -1
@@ -9,7 +9,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include <glib/gstdio.h> #include <sys/mman.h> #include "contrib/ivshmem-server/ivshmem-server.h"
tests/libqos/ahci.c +0 -1
@@ -23,7 +23,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include "libqtest.h" #include "libqos/ahci.h"
tests/libqos/fw_cfg.c +0 -1
@@ -13,7 +13,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include "libqos/fw_cfg.h" #include "libqtest.h" #include "qemu/bswap.h"
tests/libqos/i2c-imx.c +0 -1
@@ -20,7 +20,6 @@#include "qemu/osdep.h" #include "libqos/i2c.h" -#include <glib.h> #include "libqtest.h"
tests/libqos/i2c-omap.c +0 -1
@@ -9,7 +9,6 @@#include "qemu/osdep.h" #include "libqos/i2c.h" -#include <glib.h> #include "qemu/bswap.h" #include "libqtest.h"
tests/libqos/libqos.c +0 -1
@@ -1,5 +1,4 @@#include "qemu/osdep.h" -#include <glib.h> #include <sys/wait.h> #include "libqtest.h"
tests/libqos/malloc-generic.c +0 -1
@@ -8,7 +8,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include "libqos/malloc-generic.h" #include "libqos/malloc.h"
tests/libqos/malloc-pc.c +0 -1
@@ -17,7 +17,6 @@#include "hw/nvram/fw_cfg_keys.h" #include "qemu-common.h" -#include <glib.h> #define PAGE_SIZE (4096)
tests/libqos/malloc.c +0 -1
@@ -14,7 +14,6 @@#include "libqos/malloc.h" #include "qemu-common.h" #include "qemu/host-utils.h" -#include <glib.h> typedef QTAILQ_HEAD(MemList, MemBlock) MemList;
tests/libqos/pci-pc.c +0 -1
@@ -19,7 +19,6 @@#include "qemu-common.h" #include "qemu/host-utils.h" -#include <glib.h> #define ACPI_PCIHP_ADDR 0xae00#define PCI_EJ_BASE 0x0008
tests/libqos/pci.c +0 -1
@@ -14,7 +14,6 @@#include "libqos/pci.h" #include "hw/pci/pci_regs.h" -#include <glib.h> void qpci_device_foreach(QPCIBus *bus, int vendor_id, int device_id, void (*func)(QPCIDevice *dev, int devfn, void *data),
tests/libqos/usb.c +0 -1
@@ -12,7 +12,6 @@* See the COPYING file in the top-level directory. */ #include "qemu/osdep.h" -#include <glib.h> #include "libqtest.h" #include "hw/usb/uhci-regs.h" #include "libqos/usb.h"
tests/libqos/virtio-mmio.c +0 -1
@@ -8,7 +8,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include "libqtest.h" #include "libqos/virtio.h" #include "libqos/virtio-mmio.h"
tests/libqos/virtio-pci.c +0 -1
@@ -8,7 +8,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include "libqtest.h" #include "libqos/virtio.h" #include "libqos/virtio-pci.h"
tests/libqos/virtio.c +0 -1
@@ -8,7 +8,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include "libqtest.h" #include "libqos/virtio.h"
tests/libqtest.c +0 -1
@@ -17,7 +17,6 @@#include "qemu/osdep.h" #include "libqtest.h" -#include <glib.h> #include <sys/socket.h> #include <sys/wait.h> #include <sys/un.h>
tests/m48t59-test.c +0 -1
@@ -13,7 +13,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include "libqtest.h"
tests/ne2000-test.c +0 -1
@@ -8,7 +8,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include "libqtest.h" /* Tests only initialization so far. TODO: Replace with functional tests */
tests/nvme-test.c +0 -1
@@ -8,7 +8,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include "libqtest.h" /* Tests only initialization so far. TODO: Replace with functional tests */
tests/pc-cpu-test.c +0 -1
@@ -8,7 +8,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include "qemu-common.h" #include "libqtest.h"
tests/pcnet-test.c +0 -1
@@ -8,7 +8,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include "libqtest.h" /* Tests only initialization so far. TODO: Replace with functional tests */
tests/pvpanic-test.c +0 -1
@@ -8,7 +8,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include "libqtest.h" static void test_panic (void )
tests/pxe-test.c +0 -1
@@ -12,7 +12,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include <glib/gstdio.h> #include "qemu-common.h" #include "libqtest.h"
tests/q35-test.c +0 -1
@@ -10,7 +10,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include "libqtest.h" #include "libqos/pci.h" #include "libqos/pci-pc.h"
tests/qom-test.c +0 -1
@@ -8,7 +8,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include "qemu-common.h" #include "qemu/cutils.h"
tests/rcutorture.c +0 -1
@@ -61,7 +61,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include "qemu/atomic.h" #include "qemu/rcu.h" #include "qemu/thread.h"
tests/rtc-test.c +0 -1
@@ -12,7 +12,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include "libqtest.h" #include "hw/timer/mc146818rtc_regs.h"
tests/rtl8139-test.c +0 -1
@@ -8,7 +8,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include "libqtest.h" #include "libqos/pci-pc.h" #include "qemu/timer.h"
tests/spapr-phb-test.c +0 -1
@@ -8,7 +8,6 @@* See the COPYING file in the top-level directory. */ #include "qemu/osdep.h" -#include <glib.h> #include "libqtest.h"
tests/tco-test.c +0 -1
@@ -7,7 +7,6 @@* See the COPYING file in the top-level directory. */ #include "qemu/osdep.h" -#include <glib.h> #include "libqtest.h" #include "libqos/pci.h"
tests/test-aio.c +0 -1
@@ -11,7 +11,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include "block/aio.h" #include "qapi/error.h" #include "qemu/timer.h"
tests/test-base64.c +0 -1
@@ -19,7 +19,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include "qapi/error.h" #include "qemu/base64.h"
tests/test-bitops.c +0 -1
@@ -7,7 +7,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include "qemu/bitops.h" typedef struct {
tests/test-blockjob-txn.c +0 -1
@@ -11,7 +11,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include "qapi/error.h" #include "qemu/main-loop.h" #include "block/blockjob.h"
tests/test-coroutine.c +0 -1
@@ -12,7 +12,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include "qemu/coroutine.h" #include "qemu/coroutine_int.h"
tests/test-crypto-cipher.c +0 -1
@@ -19,7 +19,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include "crypto/init.h" #include "crypto/cipher.h"
tests/test-crypto-hash.c +0 -1
@@ -19,7 +19,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include "crypto/init.h" #include "crypto/hash.h"
tests/test-crypto-secret.c +0 -1
@@ -19,7 +19,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include "crypto/init.h" #include "crypto/secret.h"
tests/test-cutils.c +0 -1
@@ -26,7 +26,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include "qemu/cutils.h"
tests/test-filter-mirror.c +0 -1
@@ -9,7 +9,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include "libqtest.h" #include "qemu/iov.h" #include "qemu/sockets.h"
tests/test-filter-redirector.c +0 -1
@@ -51,7 +51,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include "libqtest.h" #include "qemu/iov.h" #include "qemu/sockets.h"
tests/test-hbitmap.c +0 -1
@@ -10,7 +10,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include "qemu/hbitmap.h" #define LOG_BITS_PER_LONG (BITS_PER_LONG == 32 ? 5 : 6)
tests/test-int128.c +0 -1
@@ -7,7 +7,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include "qemu/int128.h" /* clang doesn't support __noclone__ but it does have a mechanism for
tests/test-io-task.c +0 -1
@@ -19,7 +19,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include "io/task.h" #include "qapi/error.h"
tests/test-iov.c +0 -1
@@ -1,5 +1,4 @@#include "qemu/osdep.h" -#include <glib.h> #include "qemu-common.h" #include "qemu/iov.h" #include "qemu/sockets.h"
tests/test-logging.c +0 -1
@@ -25,7 +25,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include "qemu-common.h" #include "include/qemu/log.h"
tests/test-mul64.c +0 -1
@@ -7,7 +7,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include "qemu/host-utils.h"
tests/test-netfilter.c +0 -1
@@ -9,7 +9,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include "libqtest.h" /* add a netfilter to a netdev and then remove it */
tests/test-opts-visitor.c +0 -1
@@ -11,7 +11,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include "qemu/config-file.h" /* qemu_add_opts() */ #include "qemu/option.h" /* qemu_opts_parse() */
tests/test-qdev-global-props.c +0 -1
@@ -23,7 +23,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include "hw/qdev.h" #include "qom/object.h"
tests/test-qemu-opts.c +0 -1
@@ -12,7 +12,6 @@#include "qapi/qmp/qstring.h" #include "qemu/config-file.h" -#include <glib.h> static QemuOptsList opts_list_01 = { .name ="opts_list_01" ,
tests/test-qga.c +0 -1
@@ -1,6 +1,5 @@#include "qemu/osdep.h" #include <locale.h> -#include <glib.h> #include <glib/gstdio.h> #include <sys/socket.h> #include <sys/un.h>
tests/test-qmp-commands.c +0 -1
@@ -1,5 +1,4 @@#include "qemu/osdep.h" -#include <glib.h> #include "qemu-common.h" #include "qapi/qmp/types.h" #include "test-qmp-commands.h"
tests/test-qmp-event.c +0 -1
@@ -12,7 +12,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include "qemu-common.h" #include "test-qapi-types.h"
tests/test-qmp-input-strict.c +0 -1
@@ -12,7 +12,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include "qemu-common.h" #include "qapi/error.h"
tests/test-qmp-input-visitor.c +0 -1
@@ -11,7 +11,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include "qemu-common.h" #include "qapi/error.h"
tests/test-qmp-output-visitor.c +0 -1
@@ -11,7 +11,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include "qemu-common.h" #include "qapi/error.h"
tests/test-rcu-list.c +0 -1
@@ -21,7 +21,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include "qemu/atomic.h" #include "qemu/rcu.h" #include "qemu/thread.h"
tests/test-rfifolock.c +0 -1
@@ -11,7 +11,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include "qemu-common.h" #include "qemu/rfifolock.h"
tests/test-string-input-visitor.c +0 -1
@@ -11,7 +11,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include "qemu-common.h" #include "qapi/error.h"
tests/test-string-output-visitor.c +0 -1
@@ -11,7 +11,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include "qemu-common.h" #include "qapi/error.h"
tests/test-thread-pool.c +0 -1
@@ -1,5 +1,4 @@#include "qemu/osdep.h" -#include <glib.h> #include "qemu-common.h" #include "block/aio.h" #include "block/thread-pool.h"
tests/test-throttle.c +0 -1
@@ -13,7 +13,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include <math.h> #include "block/aio.h" #include "qapi/error.h"
tests/test-timed-average.c +0 -1
@@ -11,7 +11,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include "qemu/timed-average.h"
tests/test-visitor-serialization.c +0 -1
@@ -12,7 +12,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include <float.h> #include "qemu-common.h"
tests/test-vmstate.c +0 -1
@@ -23,7 +23,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include "qemu-common.h" #include "migration/migration.h"
tests/test-write-threshold.c +0 -1
@@ -7,7 +7,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include "block/block_int.h" #include "block/write-threshold.h"
tests/test-x86-cpuid.c +0 -1
@@ -23,7 +23,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include "hw/i386/topology.h"
tests/tmp105-test.c +0 -1
@@ -8,7 +8,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include "libqtest.h" #include "libqos/i2c.h"
tests/tpci200-test.c +0 -1
@@ -8,7 +8,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include "libqtest.h" /* Tests only initialization so far. TODO: Replace with functional tests */
tests/usb-hcd-ehci-test.c +0 -1
@@ -8,7 +8,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include "libqtest.h" #include "libqos/pci-pc.h" #include "hw/usb/uhci-regs.h"
tests/usb-hcd-ohci-test.c +0 -1
@@ -8,7 +8,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include "libqtest.h" #include "libqos/usb.h"
tests/usb-hcd-uhci-test.c +0 -1
@@ -8,7 +8,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include "libqtest.h" #include "libqos/usb.h" #include "hw/usb/uhci-regs.h"
tests/usb-hcd-xhci-test.c +0 -1
@@ -8,7 +8,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include "libqtest.h" #include "libqos/usb.h"
tests/vhost-user-test.c +0 -1
@@ -9,7 +9,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include "libqtest.h" #include "qemu/option.h"
tests/virtio-9p-test.c +0 -1
@@ -8,7 +8,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include "libqtest.h" #include "qemu-common.h"
tests/virtio-balloon-test.c +0 -1
@@ -8,7 +8,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include "libqtest.h" /* Tests only initialization so far. TODO: Replace with functional tests */
tests/virtio-blk-test.c +0 -1
@@ -9,7 +9,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include "libqtest.h" #include "libqos/virtio.h" #include "libqos/virtio-pci.h"
tests/virtio-console-test.c +0 -1
@@ -8,7 +8,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include "libqtest.h" /* Tests only initialization so far. TODO: Replace with functional tests */
tests/virtio-net-test.c +0 -1
@@ -8,7 +8,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include "libqtest.h" #include "qemu-common.h" #include "qemu/sockets.h"
tests/virtio-rng-test.c +0 -1
@@ -8,7 +8,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include "libqtest.h" #include "libqos/pci.h"
tests/virtio-scsi-test.c +0 -1
@@ -9,7 +9,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include "libqtest.h" #include "block/scsi.h" #include "libqos/virtio.h"
tests/virtio-serial-test.c +0 -1
@@ -8,7 +8,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include "libqtest.h" /* Tests only initialization so far. TODO: Replace with functional tests */
tests/vmxnet3-test.c +0 -1
@@ -8,7 +8,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include "libqtest.h" /* Tests only initialization so far. TODO: Replace with functional tests */
tests/wdt_ib700-test.c +0 -1
@@ -8,7 +8,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include "libqtest.h" #include "qemu/timer.h"
Signature · 1 line
1.9.1
Re: [Qemu-devel] [PATCH 2/4] tests: Remove unnecessary glib.h includes
Quoted 9 lines · Peter Maydell
Remove
glib.hincludes, as it is provided byosdep.h.This commit was created with
scripts/clean-includes.Signed-off-by Peter Maydell <[email protected]>---
+++
b/tests/ds1338-test.c
tests/ds1338-test.c line 25
Quoted 6 lines
tests/ds1338-test.c +0
-1@@ -21,7 +21,6 @@#include "libqtest.h" #include "libqos/i2c.h" -#include <glib.h> #define IMX25_I2C_0_BASE 0x43F80000
I'm guessing we don't care about the double blank lines left for cleanups like this (I know I don't, just pointing it out in case someone else does).
Signature · 2 lines
Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
PATCH 3/4 qga: Remove unnecessary glib.h includes
In reply to Peter MaydellRemove glib.h includes, as it is provided by osdep.h.
This commit was created with scripts/clean-includes.
--- qga/channel-posix.c | 1 - qga/channel-win32.c | 1 - qga/channel.h | 1 - qga/commands-posix.c | 1 - qga/commands-win32.c | 1 - qga/commands.c | 1 - qga/guest-agent-command-state.c | 1 - qga/main.c | 1 - qga/service-win32.c | 1 - 9 files changed, 9 deletions(-)
qga/channel-posix.c +0 -1
@@ -1,5 +1,4 @@#include "qemu/osdep.h" -#include <glib.h> #include <termios.h> #include "qapi/error.h" #include "qemu/sockets.h"
qga/channel-win32.c +0 -1
@@ -1,5 +1,4 @@#include "qemu/osdep.h" -#include <glib.h> #include <windows.h> #include <io.h> #include "qga/guest-agent-core.h"
qga/channel.h +0 -1
@@ -12,7 +12,6 @@#ifndef QGA_CHANNEL_H #define QGA_CHANNEL_H -#include <glib.h> typedef struct GAChannel GAChannel ;
qga/commands-posix.c +0 -1
@@ -12,7 +12,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include <sys/ioctl.h> #include <sys/wait.h> #include <dirent.h>
qga/commands-win32.c +0 -1
@@ -12,7 +12,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include <wtypes.h> #include <powrprof.h> #include <winsock2.h>
qga/commands.c +0 -1
@@ -11,7 +11,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include "qga/guest-agent-core.h" #include "qga-qmp-commands.h" #include "qapi/qmp/qerror.h"
qga/guest-agent-command-state.c +0 -1
@@ -10,7 +10,6 @@* See the COPYING file in the top-level directory. */ #include "qemu/osdep.h" -#include <glib.h> #include "qga/guest-agent-core.h" struct GACommandState {
qga/main.c +0 -1
@@ -11,7 +11,6 @@* See the COPYING file in the top-level directory. */ #include "qemu/osdep.h" -#include <glib.h> #include <getopt.h> #include <glib/gstdio.h> #ifndef _WIN32
qga/service-win32.c +0 -1
@@ -11,7 +11,6 @@* See the COPYING file in the top-level directory. */ #include "qemu/osdep.h" -#include <glib.h> #include <windows.h> #include "qga/service-win32.h"
Signature · 1 line
1.9.1
PATCH 4/4 all: Remove unnecessary glib.h includes
In reply to Peter MaydellRemove glib.h includes, as it is provided by osdep.h.
This commit was created with scripts/clean-includes.
--- block/dmg.c | 1 - block/vhdx.c | 1 - block/vmdk.c | 1 - fsdev/9p-iov-marshal.c | 1 - fsdev/9p-marshal.c | 1 - hw/9pfs/9p.h | 1 - hw/i386/acpi-build.c | 1 - hw/i386/pc_piix.c | 1 - include/hw/acpi/aml-build.h | 1 - include/hw/acpi/bios-linker-loader.h | 1 - include/qemu/bitmap.h | 1 - include/qemu/rcu.h | 1 - include/qom/object.h | 1 - include/sysemu/tpm_backend_int.h | 1 - memory_mapping.c | 1 - migration/postcopy-ram.c | 1 - page_cache.c | 1 - qapi/qmp-registry.c | 1 - qemu-bridge-helper.c | 1 - slirp/dnssearch.c | 1 - slirp/slirp.h | 1 - ui/sdl_zoom.c | 1 - ui/vnc-palette.c | 1 - util/coroutine-gthread.c | 1 - util/hbitmap.c | 1 - util/memfd.c | 1 - util/oslib-win32.c | 1 - util/uri.c | 1 - vl.c | 1 - 29 files changed, 29 deletions(-)
block/dmg.c +0 -1
@@ -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
block/vhdx.c +0 -1
@@ -27,7 +27,6 @@#include "migration/migration.h" #include <uuid/uuid.h> -#include <glib.h> /* Options for VHDX creation */
block/vmdk.c +0 -1
@@ -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')
fsdev/9p-iov-marshal.c +0 -1
@@ -12,7 +12,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include <glib/gprintf.h> #include <utime.h> #include <sys/uio.h>
fsdev/9p-marshal.c +0 -1
@@ -12,7 +12,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include <glib/gprintf.h> #include <dirent.h> #include <utime.h>
hw/9pfs/9p.h +0 -1
@@ -4,7 +4,6 @@#include <dirent.h> #include <utime.h> #include <sys/resource.h> -#include <glib.h> #include "standard-headers/linux/virtio_9p.h" #include "hw/virtio/virtio.h" #include "fsdev/file-op-9p.h"
hw/i386/acpi-build.c +0 -1
@@ -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"
hw/i386/pc_piix.c +0 -1
@@ -23,7 +23,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include "hw/hw.h" #include "hw/loader.h"
include/hw/acpi/aml-build.h +0 -1
@@ -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" /* Reserve RAM space for tables: add another order of magnitude. */
include/hw/acpi/bios-linker-loader.h +0 -1
@@ -1,7 +1,6 @@#ifndef BIOS_LINKER_LOADER_H #define BIOS_LINKER_LOADER_H -#include <glib.h> GArray *bios_linker_loader_init (void );
include/qemu/bitmap.h +0 -1
@@ -12,7 +12,6 @@#ifndef BITMAP_H #define BITMAP_H -#include <glib.h> #include "qemu/bitops.h"
include/qemu/rcu.h +0 -1
@@ -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"
include/qom/object.h +0 -1
@@ -14,7 +14,6 @@#ifndef QEMU_OBJECT_H #define QEMU_OBJECT_H -#include <glib.h> #include "qapi-types.h" #include "qemu/queue.h"
include/sysemu/tpm_backend_int.h +0 -1
@@ -22,7 +22,6 @@ #ifndef TPM_TPM_BACKEND_H #define TPM_TPM_BACKEND_H -#include <glib.h> typedef struct TPMBackendThread { GThreadPool *pool;
memory_mapping.c +0 -1
@@ -13,7 +13,6 @@#include "qemu/osdep.h" #include "qapi/error.h" -#include <glib.h> #include "qemu-common.h" #include "cpu.h"
migration/postcopy-ram.c +0 -1
@@ -17,7 +17,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include "qemu-common.h" #include "migration/migration.h"
page_cache.c +0 -1
@@ -13,7 +13,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include "qemu-common.h" #include "qemu/host-utils.h"
qapi/qmp-registry.c +0 -1
@@ -13,7 +13,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include "qapi/qmp/dispatch.h" static QTAILQ_HEAD(QmpCommandList, QmpCommand) qmp_commands =
qemu-bridge-helper.c +0 -1
@@ -15,7 +15,6 @@#include "qemu/osdep.h" -#include <glib.h> #include <sys/ioctl.h> #include <sys/socket.h>
slirp/dnssearch.c +0 -1
@@ -23,7 +23,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include "slirp.h" static const uint8_t RFC3397_OPT_DOMAIN_SEARCH =119 ;
slirp/slirp.h +0 -1
@@ -69,7 +69,6 @@ typedef char *caddr_t;#include <sys/stropts.h> #endif -#include <glib.h> #include "debug.h"
ui/sdl_zoom.c +0 -1
@@ -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);
ui/vnc-palette.c +0 -1
@@ -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)
util/coroutine-gthread.c +0 -1
@@ -19,7 +19,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include "qemu-common.h" #include "qemu/coroutine_int.h"
util/hbitmap.c +0 -1
@@ -10,7 +10,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include "qemu/hbitmap.h" #include "qemu/host-utils.h" #include "trace.h"
util/memfd.c +0 -1
@@ -27,7 +27,6 @@#include "qemu/osdep.h" -#include <glib.h> #include <glib/gprintf.h> #include <sys/mman.h>
util/oslib-win32.c +0 -1
@@ -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"
util/uri.c +0 -1
@@ -52,7 +52,6 @@*/ #include "qemu/osdep.h" -#include <glib.h> #include "qemu/uri.h"
vl.c +0 -1
@@ -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"
Signature · 1 line
1.9.1
Quoted 11 lines · Peter Maydell
This patchset removes '#include <
glib.h>' lines, because the header is already included viaosdep.h.Patch 1 adds the check to clean-includes, and patches 2-4 apply it (the breakup into 'tests', 'qga' and 'everything else' is semi-arbitrary and just to keep patch sizes down.)
thanks
-- PMM
Quoted 5 lines
Peter Maydell (4):
clean-includes: Addglib.hto list of unneeded includes
tests: Remove unnecessaryglib.hincludes
qga: Remove unnecessaryglib.hincludes
all: Remove unnecessaryglib.hincludes
Series:
Signature · 2 lines
Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
Michael Tokarev
AppliedQuoted 11 lines · Peter Maydell
This patchset removes '#include <
glib.h>' lines, because the header is already included viaosdep.h.Patch 1 adds the check to clean-includes, and patches 2-4 apply it (the breakup into 'tests', 'qga' and 'everything else' is semi-arbitrary and just to keep patch sizes down.)
thanks
-- PMM
Quoted 5 lines
Peter Maydell (4):
clean-includes: Addglib.hto list of unneeded includes
tests: Remove unnecessaryglib.hincludes
qga: Remove unnecessaryglib.hincludes
all: Remove unnecessaryglib.hincludes
Applied series to -trivial, thanks!
/mjt