From: Joerg Roedel Date: Tue, 29 Oct 2024 10:54:25 +0000 (+0100) Subject: iommu: Fix prototype of iommu_paging_domain_alloc_flags() X-Git-Tag: v6.13-rc1~105^2~1^7~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d14772c0d88c387f881a577aa136e1e9b1291d07;p=thirdparty%2Fkernel%2Flinux.git 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 Cc: Vasant Hegde Fixes: 20858d4ebb42 ("iommu: Introduce iommu_paging_domain_alloc_flags()") Reviewed-by: Jason Gunthorpe Signed-off-by: Joerg Roedel --- diff --git a/include/linux/iommu.h b/include/linux/iommu.h index aa78d911fddae..522efdc7d8158 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);