hw: Do not include "sysemu/blockdev.h" if it is not necessary
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Mon, 28 May 2018 23:27:12 +0000 (20:27 -0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 1 Jun 2018 12:15:10 +0000 (14:15 +0200)
Remove those unneeded includes to speed up the compilation
process a little bit.

Code change produced with:

    $ git grep '#include "sysemu/blockdev.h"' | \
      cut -d: -f-1 | \
      xargs egrep -L "(BlockInterfaceType|DriveInfo|drive_get|blk_legacy_dinfo|blockdev_mark_auto_del)" | \
      xargs sed -i.bak '/#include "sysemu\/blockdev.h"/d'

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20180528232719.4721-15-f4bug@amsat.org>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/block/m25p80.c
hw/block/onenand.c
hw/i386/xen/xen-mapcache.c
hw/s390x/virtio-ccw.c
hw/scsi/scsi-generic.c
hw/sd/sdhci.c
hw/usb/dev-storage.c
monitor.c

index b49c8e9caa0449f937d9dd796c563b3c141a1b83..a5ccffb4aaef11678b9dbcdde2ba6ba58f4b6fe5 100644 (file)
@@ -24,7 +24,6 @@
 #include "qemu/osdep.h"
 #include "hw/hw.h"
 #include "sysemu/block-backend.h"
-#include "sysemu/blockdev.h"
 #include "hw/ssi/ssi.h"
 #include "qemu/bitops.h"
 #include "qemu/log.h"
index ab0c7ea1b3ac6560adf3f47632a2c35f854b9d34..0cb8d7fa135fe9a6e53cc6b83737e4daaabf5aea 100644 (file)
@@ -25,7 +25,6 @@
 #include "hw/block/flash.h"
 #include "hw/irq.h"
 #include "sysemu/block-backend.h"
-#include "sysemu/blockdev.h"
 #include "exec/memory.h"
 #include "hw/sysbus.h"
 #include "qemu/error-report.h"
index efa35dc6e0e2bcfde4c41ca6a154d59186c62733..541b7693b3ddf71b5fc75d1c64ed9a88853c03ec 100644 (file)
@@ -14,7 +14,6 @@
 #include <sys/resource.h>
 
 #include "hw/xen/xen_backend.h"
-#include "sysemu/blockdev.h"
 #include "qemu/bitmap.h"
 
 #include <xen/hvm/params.h>
index b68798ac525fe6a63bdf0dcb97621d6883d8870f..0a9bec484b53750f289650b2b2c6c1d0f0783cbb 100644 (file)
@@ -13,7 +13,6 @@
 #include "qemu/osdep.h"
 #include "qapi/error.h"
 #include "hw/hw.h"
-#include "sysemu/blockdev.h"
 #include "sysemu/sysemu.h"
 #include "sysemu/kvm.h"
 #include "net/net.h"
index 381f04e33967200ca46a3b4342f6a175be121f32..03bce8ff395ea51882daf1358380805fb59bc887 100644 (file)
@@ -17,7 +17,6 @@
 #include "qemu/error-report.h"
 #include "hw/scsi/scsi.h"
 #include "sysemu/block-backend.h"
-#include "sysemu/blockdev.h"
 
 #ifdef __linux__
 
index b65403947b8f90d2572e756c370414d438da8cc8..3017e5a95a35c70c71ea5bfa9b2ec402e2339ac4 100644 (file)
@@ -26,7 +26,6 @@
 #include "qemu/error-report.h"
 #include "qapi/error.h"
 #include "hw/hw.h"
-#include "sysemu/blockdev.h"
 #include "sysemu/dma.h"
 #include "qemu/timer.h"
 #include "qemu/bitops.h"
index b56c75a73a0d46590ca2bb0e368932272fa2e36b..d02acda9457183644438af43d5f0dcc9fad651dc 100644 (file)
@@ -20,7 +20,6 @@
 #include "monitor/monitor.h"
 #include "sysemu/sysemu.h"
 #include "sysemu/block-backend.h"
-#include "sysemu/blockdev.h"
 #include "qapi/visitor.h"
 #include "qemu/cutils.h"
 
index 46814af5332c504b6a6d69aa6f5c8a3121a3cf17..d75cb20815cd7a59d7a770cfb86223d4b0bda40e 100644 (file)
--- a/monitor.c
+++ b/monitor.c
@@ -44,7 +44,6 @@
 #include "qemu/readline.h"
 #include "ui/console.h"
 #include "ui/input.h"
-#include "sysemu/blockdev.h"
 #include "sysemu/block-backend.h"
 #include "audio/audio.h"
 #include "disas/disas.h"