iommu: Fix prototype of iommu_paging_domain_alloc_flags()
Joerg Roedel
maintainerPATCH 1/1 iommu: Fix prototype of iommu_paging_domain_alloc_flags()
From: Joerg Roedel <[email protected]>
The iommu_paging_domain_alloc_flags() prototype for non-iommu kernel configurations lacks the 'static inline' prefixes.
Cc Jason Gunthorpe <[email protected]>
Cc Vasant Hegde <[email protected]>
Fixes 20858d4ebb42 ("iommu: Introduce iommu_paging_domain_alloc_flags()")
Signed-off-by Joerg Roedel <[email protected]>
--- include/linux/iommu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/iommu.h +1 -1
@@ -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 );
Signature · 1 line
2.47.0
Quoted 6 lines · Joerg Roedel
From: Joerg Roedel <[email protected]>
The
iommu_paging_domain_alloc_flags()prototype for non-iommu kernel configurations lacks the 'static inline' prefixes.
Quoted 7 lines
Cc Jason Gunthorpe <[email protected]>Cc Vasant Hegde <[email protected]>Fixes 20858d4ebb42 ("iommu: Introduce iommu_paging_domain_alloc_flags()")Signed-off-by Joerg Roedel <[email protected]>--- include/linux/iommu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by Jason Gunthorpe <[email protected]>
Lacking 0-day again..
Jason
Quoted 10 lines · Joerg Roedel
From: Joerg Roedel <[email protected]>
The
iommu_paging_domain_alloc_flags()prototype for non-iommu kernel configurations lacks the 'static inline' prefixes.Cc Jason Gunthorpe <[email protected]>Cc Vasant Hegde <[email protected]>Fixes 20858d4ebb42 ("iommu: Introduce iommu_paging_domain_alloc_flags()")Signed-off-by Joerg Roedel <[email protected]>
Sorry. I missed to fix this one.
Reviewed-by Vasant Hegde <[email protected]>
-Vasant
Quoted 17 lines
--- include/linux/iommu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)include/linux/iommu.h +1
-1@@ -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 );