Blame 1011-scsi-move-block-scsi.h-to-include-scsi-constants.h.patch

Paolo Bonzini 0fb2b2
From e2b560d9f9966d7256488d0a359200c65c2c07f8 Mon Sep 17 00:00:00 2001
Paolo Bonzini 0fb2b2
From: Paolo Bonzini <pbonzini@redhat.com>
Paolo Bonzini 0fb2b2
Date: Tue, 22 Aug 2017 09:23:55 +0200
Paolo Bonzini 0fb2b2
Subject: [PATCH 11/15] scsi: move block/scsi.h to include/scsi/constants.h
Paolo Bonzini 0fb2b2
MIME-Version: 1.0
Paolo Bonzini 0fb2b2
Content-Type: text/plain; charset=UTF-8
Paolo Bonzini 0fb2b2
Content-Transfer-Encoding: 8bit
Paolo Bonzini 0fb2b2
Paolo Bonzini 0fb2b2
Complete the transition by renaming this header, which was
Paolo Bonzini 0fb2b2
shared by block/iscsi.c and the SCSI emulation code.
Paolo Bonzini 0fb2b2
Paolo Bonzini 0fb2b2
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Paolo Bonzini 0fb2b2
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Paolo Bonzini 0fb2b2
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Paolo Bonzini 0fb2b2
---
Paolo Bonzini 0fb2b2
 block/iscsi.c                              | 2 +-
Paolo Bonzini 0fb2b2
 hw/block/virtio-blk.c                      | 2 +-
Paolo Bonzini 0fb2b2
 hw/scsi/megasas.c                          | 2 +-
Paolo Bonzini 0fb2b2
 hw/scsi/mptendian.c                        | 2 +-
Paolo Bonzini 0fb2b2
 hw/scsi/mptsas.c                           | 2 +-
Paolo Bonzini 0fb2b2
 hw/scsi/scsi-bus.c                         | 2 +-
Paolo Bonzini 0fb2b2
 hw/scsi/scsi-disk.c                        | 2 +-
Paolo Bonzini 0fb2b2
 hw/scsi/scsi-generic.c                     | 2 +-
Paolo Bonzini 0fb2b2
 hw/scsi/spapr_vscsi.c                      | 2 +-
Paolo Bonzini 0fb2b2
 hw/scsi/virtio-scsi-dataplane.c            | 2 +-
Paolo Bonzini 0fb2b2
 hw/scsi/virtio-scsi.c                      | 2 +-
Paolo Bonzini 0fb2b2
 hw/scsi/vmw_pvscsi.c                       | 2 +-
Paolo Bonzini 0fb2b2
 hw/usb/dev-uas.c                           | 2 +-
Paolo Bonzini 0fb2b2
 include/hw/ide/internal.h                  | 2 +-
Paolo Bonzini 0fb2b2
 include/{block/scsi.h => scsi/constants.h} | 0
Paolo Bonzini 0fb2b2
 scsi/utils.c                               | 2 +-
Paolo Bonzini 0fb2b2
 tests/virtio-scsi-test.c                   | 2 +-
Paolo Bonzini 0fb2b2
 17 files changed, 16 insertions(+), 16 deletions(-)
Paolo Bonzini 0fb2b2
 rename include/{block/scsi.h => scsi/constants.h} (100%)
Paolo Bonzini 0fb2b2
Paolo Bonzini 0fb2b2
diff --git a/block/iscsi.c b/block/iscsi.c
Paolo Bonzini 0fb2b2
index 40adc3c493..c4586be720 100644
Paolo Bonzini 0fb2b2
--- a/block/iscsi.c
Paolo Bonzini 0fb2b2
+++ b/block/iscsi.c
Paolo Bonzini 0fb2b2
@@ -34,7 +34,7 @@
Paolo Bonzini 0fb2b2
 #include "qemu/bitops.h"
Paolo Bonzini 0fb2b2
 #include "qemu/bitmap.h"
Paolo Bonzini 0fb2b2
 #include "block/block_int.h"
Paolo Bonzini 0fb2b2
-#include "block/scsi.h"
Paolo Bonzini 0fb2b2
+#include "scsi/constants.h"
Paolo Bonzini 0fb2b2
 #include "qemu/iov.h"
Paolo Bonzini 0fb2b2
 #include "qemu/uuid.h"
Paolo Bonzini 0fb2b2
 #include "qmp-commands.h"
Paolo Bonzini 0fb2b2
diff --git a/hw/block/virtio-blk.c b/hw/block/virtio-blk.c
Paolo Bonzini 0fb2b2
index a16ac75090..05d1440786 100644
Paolo Bonzini 0fb2b2
--- a/hw/block/virtio-blk.c
Paolo Bonzini 0fb2b2
+++ b/hw/block/virtio-blk.c
Paolo Bonzini 0fb2b2
@@ -22,7 +22,7 @@
Paolo Bonzini 0fb2b2
 #include "sysemu/blockdev.h"
Paolo Bonzini 0fb2b2
 #include "hw/virtio/virtio-blk.h"
Paolo Bonzini 0fb2b2
 #include "dataplane/virtio-blk.h"
Paolo Bonzini 0fb2b2
-#include "block/scsi.h"
Paolo Bonzini 0fb2b2
+#include "scsi/constants.h"
Paolo Bonzini 0fb2b2
 #ifdef __linux__
Paolo Bonzini 0fb2b2
 # include <scsi/sg.h>
Paolo Bonzini 0fb2b2
 #endif
Paolo Bonzini 0fb2b2
diff --git a/hw/scsi/megasas.c b/hw/scsi/megasas.c
Paolo Bonzini 0fb2b2
index 734fdaef90..0db68aacee 100644
Paolo Bonzini 0fb2b2
--- a/hw/scsi/megasas.c
Paolo Bonzini 0fb2b2
+++ b/hw/scsi/megasas.c
Paolo Bonzini 0fb2b2
@@ -27,7 +27,7 @@
Paolo Bonzini 0fb2b2
 #include "hw/pci/msix.h"
Paolo Bonzini 0fb2b2
 #include "qemu/iov.h"
Paolo Bonzini 0fb2b2
 #include "hw/scsi/scsi.h"
Paolo Bonzini 0fb2b2
-#include "block/scsi.h"
Paolo Bonzini 0fb2b2
+#include "scsi/constants.h"
Paolo Bonzini 0fb2b2
 #include "trace.h"
Paolo Bonzini 0fb2b2
 #include "qapi/error.h"
Paolo Bonzini 0fb2b2
 #include "mfi.h"
Paolo Bonzini 0fb2b2
diff --git a/hw/scsi/mptendian.c b/hw/scsi/mptendian.c
Paolo Bonzini 0fb2b2
index b7fe2a2a36..3415229b5e 100644
Paolo Bonzini 0fb2b2
--- a/hw/scsi/mptendian.c
Paolo Bonzini 0fb2b2
+++ b/hw/scsi/mptendian.c
Paolo Bonzini 0fb2b2
@@ -28,7 +28,7 @@
Paolo Bonzini 0fb2b2
 #include "hw/pci/msi.h"
Paolo Bonzini 0fb2b2
 #include "qemu/iov.h"
Paolo Bonzini 0fb2b2
 #include "hw/scsi/scsi.h"
Paolo Bonzini 0fb2b2
-#include "block/scsi.h"
Paolo Bonzini 0fb2b2
+#include "scsi/constants.h"
Paolo Bonzini 0fb2b2
 #include "trace.h"
Paolo Bonzini 0fb2b2
 
Paolo Bonzini 0fb2b2
 #include "mptsas.h"
Paolo Bonzini 0fb2b2
diff --git a/hw/scsi/mptsas.c b/hw/scsi/mptsas.c
Paolo Bonzini 0fb2b2
index 765ab53c34..8bae8f543e 100644
Paolo Bonzini 0fb2b2
--- a/hw/scsi/mptsas.c
Paolo Bonzini 0fb2b2
+++ b/hw/scsi/mptsas.c
Paolo Bonzini 0fb2b2
@@ -30,7 +30,7 @@
Paolo Bonzini 0fb2b2
 #include "hw/pci/msi.h"
Paolo Bonzini 0fb2b2
 #include "qemu/iov.h"
Paolo Bonzini 0fb2b2
 #include "hw/scsi/scsi.h"
Paolo Bonzini 0fb2b2
-#include "block/scsi.h"
Paolo Bonzini 0fb2b2
+#include "scsi/constants.h"
Paolo Bonzini 0fb2b2
 #include "trace.h"
Paolo Bonzini 0fb2b2
 #include "qapi/error.h"
Paolo Bonzini 0fb2b2
 #include "mptsas.h"
Paolo Bonzini 0fb2b2
diff --git a/hw/scsi/scsi-bus.c b/hw/scsi/scsi-bus.c
Paolo Bonzini 0fb2b2
index 652ab046ab..977f7bce1f 100644
Paolo Bonzini 0fb2b2
--- a/hw/scsi/scsi-bus.c
Paolo Bonzini 0fb2b2
+++ b/hw/scsi/scsi-bus.c
Paolo Bonzini 0fb2b2
@@ -3,7 +3,7 @@
Paolo Bonzini 0fb2b2
 #include "qapi/error.h"
Paolo Bonzini 0fb2b2
 #include "qemu/error-report.h"
Paolo Bonzini 0fb2b2
 #include "hw/scsi/scsi.h"
Paolo Bonzini 0fb2b2
-#include "block/scsi.h"
Paolo Bonzini 0fb2b2
+#include "scsi/constants.h"
Paolo Bonzini 0fb2b2
 #include "hw/qdev.h"
Paolo Bonzini 0fb2b2
 #include "sysemu/block-backend.h"
Paolo Bonzini 0fb2b2
 #include "sysemu/blockdev.h"
Paolo Bonzini 0fb2b2
diff --git a/hw/scsi/scsi-disk.c b/hw/scsi/scsi-disk.c
Paolo Bonzini 0fb2b2
index 0a1f4ef0c7..5faf6682c5 100644
Paolo Bonzini 0fb2b2
--- a/hw/scsi/scsi-disk.c
Paolo Bonzini 0fb2b2
+++ b/hw/scsi/scsi-disk.c
Paolo Bonzini 0fb2b2
@@ -32,7 +32,7 @@ do { printf("scsi-disk: " fmt , ## __VA_ARGS__); } while (0)
Paolo Bonzini 0fb2b2
 #include "qapi/error.h"
Paolo Bonzini 0fb2b2
 #include "qemu/error-report.h"
Paolo Bonzini 0fb2b2
 #include "hw/scsi/scsi.h"
Paolo Bonzini 0fb2b2
-#include "block/scsi.h"
Paolo Bonzini 0fb2b2
+#include "scsi/constants.h"
Paolo Bonzini 0fb2b2
 #include "sysemu/sysemu.h"
Paolo Bonzini 0fb2b2
 #include "sysemu/block-backend.h"
Paolo Bonzini 0fb2b2
 #include "sysemu/blockdev.h"
Paolo Bonzini 0fb2b2
diff --git a/hw/scsi/scsi-generic.c b/hw/scsi/scsi-generic.c
Paolo Bonzini 0fb2b2
index 04c687ee76..bd0d9ff355 100644
Paolo Bonzini 0fb2b2
--- a/hw/scsi/scsi-generic.c
Paolo Bonzini 0fb2b2
+++ b/hw/scsi/scsi-generic.c
Paolo Bonzini 0fb2b2
@@ -34,7 +34,7 @@ do { printf("scsi-generic: " fmt , ## __VA_ARGS__); } while (0)
Paolo Bonzini 0fb2b2
 do { fprintf(stderr, "scsi-generic: " fmt , ## __VA_ARGS__); } while (0)
Paolo Bonzini 0fb2b2
 
Paolo Bonzini 0fb2b2
 #include <scsi/sg.h>
Paolo Bonzini 0fb2b2
-#include "block/scsi.h"
Paolo Bonzini 0fb2b2
+#include "scsi/constants.h"
Paolo Bonzini 0fb2b2
 
Paolo Bonzini 0fb2b2
 #ifndef MAX_UINT
Paolo Bonzini 0fb2b2
 #define MAX_UINT ((unsigned int)-1)
Paolo Bonzini 0fb2b2
diff --git a/hw/scsi/spapr_vscsi.c b/hw/scsi/spapr_vscsi.c
Paolo Bonzini 0fb2b2
index 55ee48c4da..360db53ac8 100644
Paolo Bonzini 0fb2b2
--- a/hw/scsi/spapr_vscsi.c
Paolo Bonzini 0fb2b2
+++ b/hw/scsi/spapr_vscsi.c
Paolo Bonzini 0fb2b2
@@ -36,7 +36,7 @@
Paolo Bonzini 0fb2b2
 #include "cpu.h"
Paolo Bonzini 0fb2b2
 #include "hw/hw.h"
Paolo Bonzini 0fb2b2
 #include "hw/scsi/scsi.h"
Paolo Bonzini 0fb2b2
-#include "block/scsi.h"
Paolo Bonzini 0fb2b2
+#include "scsi/constants.h"
Paolo Bonzini 0fb2b2
 #include "srp.h"
Paolo Bonzini 0fb2b2
 #include "hw/qdev.h"
Paolo Bonzini 0fb2b2
 #include "hw/ppc/spapr.h"
Paolo Bonzini 0fb2b2
diff --git a/hw/scsi/virtio-scsi-dataplane.c b/hw/scsi/virtio-scsi-dataplane.c
Paolo Bonzini 0fb2b2
index 944ea4eb53..add4b3f4a4 100644
Paolo Bonzini 0fb2b2
--- a/hw/scsi/virtio-scsi-dataplane.c
Paolo Bonzini 0fb2b2
+++ b/hw/scsi/virtio-scsi-dataplane.c
Paolo Bonzini 0fb2b2
@@ -17,7 +17,7 @@
Paolo Bonzini 0fb2b2
 #include "qemu/error-report.h"
Paolo Bonzini 0fb2b2
 #include "sysemu/block-backend.h"
Paolo Bonzini 0fb2b2
 #include "hw/scsi/scsi.h"
Paolo Bonzini 0fb2b2
-#include "block/scsi.h"
Paolo Bonzini 0fb2b2
+#include "scsi/constants.h"
Paolo Bonzini 0fb2b2
 #include "hw/virtio/virtio-bus.h"
Paolo Bonzini 0fb2b2
 #include "hw/virtio/virtio-access.h"
Paolo Bonzini 0fb2b2
 
Paolo Bonzini 0fb2b2
diff --git a/hw/scsi/virtio-scsi.c b/hw/scsi/virtio-scsi.c
Paolo Bonzini 0fb2b2
index eb639442d1..823a1e9a42 100644
Paolo Bonzini 0fb2b2
--- a/hw/scsi/virtio-scsi.c
Paolo Bonzini 0fb2b2
+++ b/hw/scsi/virtio-scsi.c
Paolo Bonzini 0fb2b2
@@ -21,7 +21,7 @@
Paolo Bonzini 0fb2b2
 #include "qemu/iov.h"
Paolo Bonzini 0fb2b2
 #include "sysemu/block-backend.h"
Paolo Bonzini 0fb2b2
 #include "hw/scsi/scsi.h"
Paolo Bonzini 0fb2b2
-#include "block/scsi.h"
Paolo Bonzini 0fb2b2
+#include "scsi/constants.h"
Paolo Bonzini 0fb2b2
 #include "hw/virtio/virtio-bus.h"
Paolo Bonzini 0fb2b2
 #include "hw/virtio/virtio-access.h"
Paolo Bonzini 0fb2b2
 
Paolo Bonzini 0fb2b2
diff --git a/hw/scsi/vmw_pvscsi.c b/hw/scsi/vmw_pvscsi.c
Paolo Bonzini 0fb2b2
index 77d8b6f9e2..6d3f0bf11d 100644
Paolo Bonzini 0fb2b2
--- a/hw/scsi/vmw_pvscsi.c
Paolo Bonzini 0fb2b2
+++ b/hw/scsi/vmw_pvscsi.c
Paolo Bonzini 0fb2b2
@@ -28,7 +28,7 @@
Paolo Bonzini 0fb2b2
 #include "qemu/osdep.h"
Paolo Bonzini 0fb2b2
 #include "qapi/error.h"
Paolo Bonzini 0fb2b2
 #include "hw/scsi/scsi.h"
Paolo Bonzini 0fb2b2
-#include "block/scsi.h"
Paolo Bonzini 0fb2b2
+#include "scsi/constants.h"
Paolo Bonzini 0fb2b2
 #include "hw/pci/msi.h"
Paolo Bonzini 0fb2b2
 #include "vmw_pvscsi.h"
Paolo Bonzini 0fb2b2
 #include "trace.h"
Paolo Bonzini 0fb2b2
diff --git a/hw/usb/dev-uas.c b/hw/usb/dev-uas.c
Paolo Bonzini 0fb2b2
index fffc424396..c218b53f09 100644
Paolo Bonzini 0fb2b2
--- a/hw/usb/dev-uas.c
Paolo Bonzini 0fb2b2
+++ b/hw/usb/dev-uas.c
Paolo Bonzini 0fb2b2
@@ -19,7 +19,7 @@
Paolo Bonzini 0fb2b2
 #include "hw/usb.h"
Paolo Bonzini 0fb2b2
 #include "hw/usb/desc.h"
Paolo Bonzini 0fb2b2
 #include "hw/scsi/scsi.h"
Paolo Bonzini 0fb2b2
-#include "block/scsi.h"
Paolo Bonzini 0fb2b2
+#include "scsi/constants.h"
Paolo Bonzini 0fb2b2
 
Paolo Bonzini 0fb2b2
 /* --------------------------------------------------------------------- */
Paolo Bonzini 0fb2b2
 
Paolo Bonzini 0fb2b2
diff --git a/include/hw/ide/internal.h b/include/hw/ide/internal.h
Paolo Bonzini 0fb2b2
index 482a9512be..63a99e0366 100644
Paolo Bonzini 0fb2b2
--- a/include/hw/ide/internal.h
Paolo Bonzini 0fb2b2
+++ b/include/hw/ide/internal.h
Paolo Bonzini 0fb2b2
@@ -11,7 +11,7 @@
Paolo Bonzini 0fb2b2
 #include "sysemu/dma.h"
Paolo Bonzini 0fb2b2
 #include "sysemu/sysemu.h"
Paolo Bonzini 0fb2b2
 #include "hw/block/block.h"
Paolo Bonzini 0fb2b2
-#include "block/scsi.h"
Paolo Bonzini 0fb2b2
+#include "scsi/constants.h"
Paolo Bonzini 0fb2b2
 
Paolo Bonzini 0fb2b2
 /* debug IDE devices */
Paolo Bonzini 0fb2b2
 //#define DEBUG_IDE
Paolo Bonzini 0fb2b2
diff --git a/include/block/scsi.h b/include/scsi/constants.h
Paolo Bonzini 0fb2b2
similarity index 100%
Paolo Bonzini 0fb2b2
rename from include/block/scsi.h
Paolo Bonzini 0fb2b2
rename to include/scsi/constants.h
Paolo Bonzini 0fb2b2
diff --git a/scsi/utils.c b/scsi/utils.c
Paolo Bonzini 0fb2b2
index 6ee9f4095b..fab60bdf20 100644
Paolo Bonzini 0fb2b2
--- a/scsi/utils.c
Paolo Bonzini 0fb2b2
+++ b/scsi/utils.c
Paolo Bonzini 0fb2b2
@@ -14,7 +14,7 @@
Paolo Bonzini 0fb2b2
  */
Paolo Bonzini 0fb2b2
 
Paolo Bonzini 0fb2b2
 #include "qemu/osdep.h"
Paolo Bonzini 0fb2b2
-#include "block/scsi.h"
Paolo Bonzini 0fb2b2
+#include "scsi/constants.h"
Paolo Bonzini 0fb2b2
 #include "scsi/utils.h"
Paolo Bonzini 0fb2b2
 #include "qemu/bswap.h"
Paolo Bonzini 0fb2b2
 
Paolo Bonzini 0fb2b2
diff --git a/tests/virtio-scsi-test.c b/tests/virtio-scsi-test.c
Paolo Bonzini 0fb2b2
index 87a3b6e81a..082d323541 100644
Paolo Bonzini 0fb2b2
--- a/tests/virtio-scsi-test.c
Paolo Bonzini 0fb2b2
+++ b/tests/virtio-scsi-test.c
Paolo Bonzini 0fb2b2
@@ -10,7 +10,7 @@
Paolo Bonzini 0fb2b2
 
Paolo Bonzini 0fb2b2
 #include "qemu/osdep.h"
Paolo Bonzini 0fb2b2
 #include "libqtest.h"
Paolo Bonzini 0fb2b2
-#include "block/scsi.h"
Paolo Bonzini 0fb2b2
+#include "scsi/constants.h"
Paolo Bonzini 0fb2b2
 #include "libqos/libqos-pc.h"
Paolo Bonzini 0fb2b2
 #include "libqos/libqos-spapr.h"
Paolo Bonzini 0fb2b2
 #include "libqos/virtio.h"
Paolo Bonzini 0fb2b2
-- 
Paolo Bonzini 0fb2b2
2.13.5
Paolo Bonzini 0fb2b2