From: Bart Van Assche <bvanassche@acm.org>
To: "Martin K . Petersen" <martin.petersen@oracle.com>
Cc: linux-scsi@vger.kernel.org, Bart Van Assche <bvanassche@acm.org>,
"James E.J. Bottomley" <James.Bottomley@HansenPartnership.com>
Subject: [PATCH 3/3] ufs: core: Make the header files self-contained
Date: Wed, 1 Apr 2026 13:25:01 -0700 [thread overview]
Message-ID: <20260401202506.1445324-4-bvanassche@acm.org> (raw)
In-Reply-To: <20260401202506.1445324-1-bvanassche@acm.org>
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>
---
drivers/ufs/core/ufs-debugfs.h | 3 +++
drivers/ufs/core/ufs-fault-injection.h | 2 ++
2 files changed, 5 insertions(+)
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);
next prev parent reply other threads:[~2026-04-01 20:25 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-01 20:24 [PATCH 0/3] Three small UFS driver patches Bart Van Assche
2026-04-01 20:24 ` [PATCH 1/3] ufs: core: Add a comment block above ufshcd_mcq_compl_all_cqes_lock() Bart Van Assche
2026-04-02 7:29 ` Peter Wang (王信友)
2026-04-01 20:25 ` [PATCH 2/3] ufs: core: Remove an include directive from ufshcd-crypto.h Bart Van Assche
2026-04-01 20:25 ` Bart Van Assche [this message]
2026-04-03 1:27 ` [PATCH 0/3] Three small UFS driver patches Martin K. Petersen
2026-04-09 2:42 ` Martin K. Petersen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260401202506.1445324-4-bvanassche@acm.org \
--to=bvanassche@acm.org \
--cc=James.Bottomley@HansenPartnership.com \
--cc=linux-scsi@vger.kernel.org \
--cc=martin.petersen@oracle.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox