Skip to content

Commit a26dd54

Browse files
committed
iommu/amd: Fix header file
JIRA: https://issues.redhat.com/browse/RHEL-78701 Upstream Status: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git commit ee4cf92 Author: Vasant Hegde <[email protected]> Date: Thu Feb 27 16:23:18 2025 +0000 iommu/amd: Fix header file Move function declaration inside AMD_IOMMU_H defination. Fixes: fd5dff9 ("iommu/amd: Modify set_dte_entry() to use 256-bit DTE helpers") Fixes: 457da57 ("iommu/amd: Lock DTE before updating the entry with WRITE_ONCE()") Cc: Suravee Suthikulpanit <[email protected]> Signed-off-by: Vasant Hegde <[email protected]> Reviewed-by: Jason Gunthorpe <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Joerg Roedel <[email protected]> Signed-off-by: Eder Zulian <[email protected]>
1 parent 26c9135 commit a26dd54

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

drivers/iommu/amd/amd_iommu.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -176,12 +176,11 @@ void amd_iommu_apply_ivrs_quirks(void);
176176
#else
177177
static inline void amd_iommu_apply_ivrs_quirks(void) { }
178178
#endif
179+
struct dev_table_entry *amd_iommu_get_ivhd_dte_flags(u16 segid, u16 devid);
179180

180181
void amd_iommu_domain_set_pgtable(struct protection_domain *domain,
181182
u64 *root, int mode);
182183
struct dev_table_entry *get_dev_table(struct amd_iommu *iommu);
183-
184-
#endif
185-
186-
struct dev_table_entry *amd_iommu_get_ivhd_dte_flags(u16 segid, u16 devid);
187184
struct iommu_dev_data *search_dev_data(struct amd_iommu *iommu, u16 devid);
185+
186+
#endif /* AMD_IOMMU_H */

0 commit comments

Comments
 (0)