[PATCH 5/6] storage: scsi: Remove private constants from header

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



They are used only in the SCSI backend driver so there's no need to
pollute the headers.
---
 src/storage/storage_backend_scsi.c | 4 ++++
 src/storage/storage_backend_scsi.h | 4 ----
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/storage/storage_backend_scsi.c b/src/storage/storage_backend_scsi.c
index ecad1782c..0cc11486b 100644
--- a/src/storage/storage_backend_scsi.c
+++ b/src/storage/storage_backend_scsi.c
@@ -40,6 +40,10 @@

 VIR_LOG_INIT("storage.storage_backend_scsi");

+#define LINUX_SYSFS_SCSI_HOST_PREFIX "/sys/class/scsi_host"
+#define LINUX_SYSFS_SCSI_HOST_POSTFIX "device"
+#define LINUX_SYSFS_SCSI_HOST_SCAN_STRING "- - -"
+
 typedef struct _virStoragePoolFCRefreshInfo virStoragePoolFCRefreshInfo;
 typedef virStoragePoolFCRefreshInfo *virStoragePoolFCRefreshInfoPtr;
 struct _virStoragePoolFCRefreshInfo {
diff --git a/src/storage/storage_backend_scsi.h b/src/storage/storage_backend_scsi.h
index 691b8cbf1..1ba53a57c 100644
--- a/src/storage/storage_backend_scsi.h
+++ b/src/storage/storage_backend_scsi.h
@@ -26,10 +26,6 @@

 # include "storage_backend.h"

-# define LINUX_SYSFS_SCSI_HOST_PREFIX "/sys/class/scsi_host"
-# define LINUX_SYSFS_SCSI_HOST_POSTFIX "device"
-# define LINUX_SYSFS_SCSI_HOST_SCAN_STRING "- - -"
-
 extern virStorageBackend virStorageBackendSCSI;

 #endif /* __VIR_STORAGE_BACKEND_SCSI_H__ */
-- 
2.11.0

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]
  Powered by Linux