diff mbox series

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

Message ID 20230724202024.3379114-6-bvanassche@acm.org
State Superseded
Headers show
Series Multiple cleanup patches for the UFS driver | expand

Commit Message

Bart Van Assche July 24, 2023, 8:16 p.m. UTC
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@acm.org>
---
 include/ufs/ufs.h    | 1 -
 include/ufs/ufshcd.h | 1 +
 include/ufs/ufshci.h | 2 +-
 3 files changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

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,