summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorBart Van Assche <bvanassche@acm.org>2026-04-01 13:25:01 -0700
committerMartin K. Petersen <martin.petersen@oracle.com>2026-04-02 21:26:44 -0400
commit6daa8dd037459a1d1b105bd1008fa2a32f8708e5 (patch)
tree27a43b8337e1446144ea240391cf71c2a76f826a /drivers
parentefa1f6a9d7ce9246cb98c85335bba6a797e17584 (diff)
scsi: ufs: core: Make the header files self-contained
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/ufs/core/ufs-debugfs.h3
-rw-r--r--drivers/ufs/core/ufs-fault-injection.h2
2 files changed, 5 insertions, 0 deletions
diff --git a/drivers/ufs/core/ufs-debugfs.h b/drivers/ufs/core/ufs-debugfs.h
index 97548a3f90eb..e5bba9671862 100644
--- a/drivers/ufs/core/ufs-debugfs.h
+++ b/drivers/ufs/core/ufs-debugfs.h
@@ -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
diff --git a/drivers/ufs/core/ufs-fault-injection.h b/drivers/ufs/core/ufs-fault-injection.h
index 996a35769781..d0c870e19f0e 100644
--- a/drivers/ufs/core/ufs-fault-injection.h
+++ b/drivers/ufs/core/ufs-fault-injection.h
@@ -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);