From: Vasant Hegde <vasant.hegde@amd.com>
To: <iommu@lists.linux.dev>, <joro@8bytes.org>
Cc: <will@kernel.org>, <robin.murphy@arm.com>,
<suravee.suthikulpanit@amd.com>,
Vasant Hegde <vasant.hegde@amd.com>
Subject: [PATCH 5/7] iommu/amd: Fix header file
Date: Tue, 25 Feb 2025 10:53:43 +0000 [thread overview]
Message-ID: <20250225105345.52143-6-vasant.hegde@amd.com> (raw)
In-Reply-To: <20250225105345.52143-1-vasant.hegde@amd.com>
Move function declaration inside AMD_IOMMU_H defination.
Fixes: fd5dff9de4be ("iommu/amd: Modify set_dte_entry() to use 256-bit DTE helpers")
Fixes: 457da5764668 ("iommu/amd: Lock DTE before updating the entry with WRITE_ONCE()")
Cc: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Signed-off-by: Vasant Hegde <vasant.hegde@amd.com>
---
drivers/iommu/amd/amd_iommu.h | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/drivers/iommu/amd/amd_iommu.h b/drivers/iommu/amd/amd_iommu.h
index 68debf5ee2d7..e3bf27da1339 100644
--- a/drivers/iommu/amd/amd_iommu.h
+++ b/drivers/iommu/amd/amd_iommu.h
@@ -176,12 +176,11 @@ void amd_iommu_apply_ivrs_quirks(void);
#else
static inline void amd_iommu_apply_ivrs_quirks(void) { }
#endif
+struct dev_table_entry *amd_iommu_get_ivhd_dte_flags(u16 segid, u16 devid);
void amd_iommu_domain_set_pgtable(struct protection_domain *domain,
u64 *root, int mode);
struct dev_table_entry *get_dev_table(struct amd_iommu *iommu);
-
-#endif
-
-struct dev_table_entry *amd_iommu_get_ivhd_dte_flags(u16 segid, u16 devid);
struct iommu_dev_data *search_dev_data(struct amd_iommu *iommu, u16 devid);
+
+#endif /* AMD_IOMMU_H */
--
2.31.1
next prev parent reply other threads:[~2025-02-25 10:55 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-25 10:53 [PATCH 0/7] iommu/amd: Trivial fixes Vasant Hegde
2025-02-25 10:53 ` [PATCH 1/7] iommu/amd: Log IOMMU control register in event log path Vasant Hegde
2025-02-25 14:26 ` Jason Gunthorpe
2025-02-25 10:53 ` [PATCH 2/7] iommu/amd: Remove unused variable Vasant Hegde
2025-02-25 14:26 ` Jason Gunthorpe
2025-02-25 10:53 ` [PATCH 3/7] iommu/amd/pgtbl_v2: Improve error handling Vasant Hegde
2025-02-25 14:27 ` Jason Gunthorpe
2025-02-25 10:53 ` [PATCH 4/7] iommu/amd: Remove outdated comment Vasant Hegde
2025-02-25 14:27 ` Jason Gunthorpe
2025-02-25 10:53 ` Vasant Hegde [this message]
2025-02-25 14:28 ` [PATCH 5/7] iommu/amd: Fix header file Jason Gunthorpe
2025-02-25 10:53 ` [PATCH 6/7] iommu/amd: Remove unused forward declaration Vasant Hegde
2025-02-25 14:28 ` Jason Gunthorpe
2025-02-25 10:53 ` [PATCH 7/7] iommu/amd: Make protection_domain as static Vasant Hegde
2025-02-25 14:29 ` Jason Gunthorpe
2025-02-25 14:40 ` Vasant Hegde
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=20250225105345.52143-6-vasant.hegde@amd.com \
--to=vasant.hegde@amd.com \
--cc=iommu@lists.linux.dev \
--cc=joro@8bytes.org \
--cc=robin.murphy@arm.com \
--cc=suravee.suthikulpanit@amd.com \
--cc=will@kernel.org \
/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