]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
scsi: ufs: core: Make the header files self-contained
authorBart Van Assche <bvanassche@acm.org>
Wed, 1 Apr 2026 20:25:01 +0000 (13:25 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 3 Apr 2026 01:26:44 +0000 (21:26 -0400)
Add the include directives and forward declarations that are missing
from the UFS core header files. This prevents compilation failures if
include directives are reordered.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Link: https://patch.msgid.link/20260401202506.1445324-4-bvanassche@acm.org
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/ufs/core/ufs-debugfs.h
drivers/ufs/core/ufs-fault-injection.h

index 97548a3f90eb8f5d72f53d4e63aa56c543560682..e5bba96718625e20be47ec1c7d6d1ce4bb667bf4 100644 (file)
@@ -5,6 +5,9 @@
 #ifndef __UFS_DEBUGFS_H__
 #define __UFS_DEBUGFS_H__
 
+#include <linux/init.h>
+#include <linux/types.h>
+
 struct ufs_hba;
 
 #ifdef CONFIG_DEBUG_FS
index 996a35769781896d0915add48e5650626d1297ca..d0c870e19f0eb84b7dcbb1d4f80a6c7789cc184e 100644 (file)
@@ -6,6 +6,8 @@
 #include <linux/kconfig.h>
 #include <linux/types.h>
 
+struct ufs_hba;
+
 #ifdef CONFIG_SCSI_UFS_FAULT_INJECTION
 void ufs_fault_inject_hba_init(struct ufs_hba *hba);
 bool ufs_trigger_eh(struct ufs_hba *hba);