[PATCH 05/12] scsi: ufs: Minimize #include directives

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

 



Only #include those header files that have to be included.

Note: include/ufs/ufshcd.h needs <scsi/scsi_host.h> because of SG_ALL.

Signed-off-by: Bart Van Assche <bvanassche@xxxxxxx>
---
 include/ufs/ufs.h    | 1 -
 include/ufs/ufshcd.h | 1 +
 include/ufs/ufshci.h | 2 +-
 3 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/ufs/ufs.h b/include/ufs/ufs.h
index c789252b5fad..8d3187c83dcd 100644
--- a/include/ufs/ufs.h
+++ b/include/ufs/ufs.h
@@ -11,7 +11,6 @@
 #ifndef _UFS_H
 #define _UFS_H
 
-#include <linux/mutex.h>
 #include <linux/types.h>
 #include <uapi/scsi/scsi_bsg_ufs.h>
 
diff --git a/include/ufs/ufshcd.h b/include/ufs/ufshcd.h
index fc80de57a4c6..67bd089e70bc 100644
--- a/include/ufs/ufshcd.h
+++ b/include/ufs/ufshcd.h
@@ -20,6 +20,7 @@
 #include <linux/pm_runtime.h>
 #include <linux/dma-direction.h>
 #include <scsi/scsi_device.h>
+#include <scsi/scsi_host.h>
 #include <ufs/unipro.h>
 #include <ufs/ufs.h>
 #include <ufs/ufs_quirks.h>
diff --git a/include/ufs/ufshci.h b/include/ufs/ufshci.h
index 146fbea76d98..4941ffb068ef 100644
--- a/include/ufs/ufshci.h
+++ b/include/ufs/ufshci.h
@@ -11,7 +11,7 @@
 #ifndef _UFSHCI_H
 #define _UFSHCI_H
 
-#include <scsi/scsi_host.h>
+#include <linux/types.h>
 
 enum {
 	TASK_REQ_UPIU_SIZE_DWORDS	= 8,



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux