]> git.proxmox.com Git - mirror_qemu.git/commitdiff
hw/scsi: Clean up includes
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 26 Jan 2016 18:17:16 +0000 (18:17 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 29 Jan 2016 15:07:24 +0000 (15:07 +0000)
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.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 1453832250-766-24-git-send-email-peter.maydell@linaro.org

hw/scsi/esp-pci.c
hw/scsi/esp.c
hw/scsi/lsi53c895a.c
hw/scsi/megasas.c
hw/scsi/scsi-bus.c
hw/scsi/scsi-disk.c
hw/scsi/scsi-generic.c
hw/scsi/vhost-scsi.c
hw/scsi/vmw_pvscsi.c

index 8d2242d0a4d41a6cada9c58732b2f0682fc37f8d..1de77066445d32aeafe0119868920588a9e1a7d0 100644 (file)
@@ -23,6 +23,7 @@
  * THE SOFTWARE.
  */
 
+#include "qemu/osdep.h"
 #include "hw/pci/pci.h"
 #include "hw/nvram/eeprom93xx.h"
 #include "hw/scsi/esp.h"
index 272d13d633b29a0ea909a6089686db3d6f87f108..e55c32c64273452090b7cfed8e0f987686a83a68 100644 (file)
@@ -23,6 +23,7 @@
  * THE SOFTWARE.
  */
 
+#include "qemu/osdep.h"
 #include "hw/sysbus.h"
 #include "hw/scsi/esp.h"
 #include "trace.h"
index c5b0cc5cafb0b930d706ca6b6941eb0cc1e67b8f..df205cdafee4727d1a8e7962019d6d5d261ca551 100644 (file)
@@ -13,7 +13,7 @@
  * as well-behaved operating systems will not try to use them.
  */
 
-#include <assert.h>
+#include "qemu/osdep.h"
 
 #include "hw/hw.h"
 #include "hw/pci/pci.h"
index 60c0e6cd08fde49b328ff0569d20ee493f726d85..a63a581550a328d0326ddee4f7fe1c4ffdecc194 100644 (file)
@@ -18,6 +18,7 @@
  * License along with this library; if not, see <http://www.gnu.org/licenses/>.
  */
 
+#include "qemu/osdep.h"
 #include "hw/hw.h"
 #include "hw/pci/pci.h"
 #include "sysemu/dma.h"
index 164af87408ef940a2ee1d411d7af9803472c56da..6dcdbc0508208868605d411d4a9f00fb6e45c8ec 100644 (file)
@@ -1,3 +1,4 @@
+#include "qemu/osdep.h"
 #include "hw/hw.h"
 #include "qemu/error-report.h"
 #include "hw/scsi/scsi.h"
index 4797d8368358bbd5bd4b853526d6e4a5624c0218..dc79dc0c5813dd03c6c179198432917789ad0d2d 100644 (file)
@@ -28,6 +28,7 @@ do { printf("scsi-disk: " fmt , ## __VA_ARGS__); } while (0)
 #define DPRINTF(fmt, ...) do {} while(0)
 #endif
 
+#include "qemu/osdep.h"
 #include "qemu-common.h"
 #include "qemu/error-report.h"
 #include "hw/scsi/scsi.h"
index a4626f72c1d81110b851e7120e237e5a78af705a..75a4127d3a688c98e5d034ff0403afbcc03e6b4d 100644 (file)
@@ -11,6 +11,7 @@
  *
  */
 
+#include "qemu/osdep.h"
 #include "qemu-common.h"
 #include "qemu/error-report.h"
 #include "hw/scsi/scsi.h"
@@ -31,10 +32,6 @@ do { printf("scsi-generic: " fmt , ## __VA_ARGS__); } while (0)
 #define BADF(fmt, ...) \
 do { fprintf(stderr, "scsi-generic: " fmt , ## __VA_ARGS__); } while (0)
 
-#include <stdio.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <unistd.h>
 #include <scsi/sg.h>
 #include "block/scsi.h"
 
index 7bc82885ace62dde7c9dc914e25027c278b7ec2d..c86622cfeb9492987f13e5a93e0857cd84d5bfef 100644 (file)
@@ -14,8 +14,8 @@
  *
  */
 
+#include "qemu/osdep.h"
 #include <sys/ioctl.h>
-#include "config.h"
 #include "qemu/error-report.h"
 #include "qemu/queue.h"
 #include "monitor/monitor.h"
index 6b4b9899a46a1ab6ef712a30e0f5ff7cf2f58f65..9abc08685185b7a0e2722906eadb02f3ef0c88d7 100644 (file)
@@ -25,6 +25,7 @@
  *
  */
 
+#include "qemu/osdep.h"
 #include "hw/scsi/scsi.h"
 #include <block/scsi.h>
 #include "hw/pci/msi.h"