aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJoerg Roedel <jroedel@suse.de>2024-10-29 11:54:25 +0100
committerJoerg Roedel <jroedel@suse.de>2024-10-29 14:35:47 +0100
commitd14772c0d88c387f881a577aa136e1e9b1291d07 (patch)
tree22c2955b3211199459cd161213d04948a6199ce1
parentiommu: Create __iommu_alloc_identity_domain() (diff)
downloadwireguard-linux-d14772c0d88c387f881a577aa136e1e9b1291d07.tar.xz
wireguard-linux-d14772c0d88c387f881a577aa136e1e9b1291d07.zip
iommu: Fix prototype of iommu_paging_domain_alloc_flags()
The iommu_paging_domain_alloc_flags() prototype for non-iommu kernel configurations lacks the 'static inline' prefixes. Cc: Jason Gunthorpe <jgg@ziepe.ca> Cc: Vasant Hegde <vasant.hegde@amd.com> Fixes: 20858d4ebb42 ("iommu: Introduce iommu_paging_domain_alloc_flags()") Reviewed-by: Jason Gunthorpe <jgg@nvidia.com> Signed-off-by: Joerg Roedel <jroedel@suse.de>
-rw-r--r--include/linux/iommu.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/iommu.h b/include/linux/iommu.h
index aa78d911fdda..522efdc7d815 100644
--- a/include/linux/iommu.h
+++ b/include/linux/iommu.h
@@ -1080,7 +1080,7 @@ static inline bool device_iommu_capable(struct device *dev, enum iommu_cap cap)
return false;
}
-struct iommu_domain *iommu_paging_domain_alloc_flags(struct device *dev,
+static inline struct iommu_domain *iommu_paging_domain_alloc_flags(struct device *dev,
unsigned int flags)
{
return ERR_PTR(-ENODEV);