Skip to contentSkip to conversation

iommu: Fix prototype of iommu_paging_domain_alloc_flags()

PATCH In review Joerg Roedel 3 participants 3 messages Oct 29, 2024 IOMMU

lore
Share & tools
lore

Joerg Roedel

author maintainer
#0 lore raw

PATCH 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()")
---
 include/linux/iommu.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/iommu.h +1 -1
index aa78d911fdda..522efdc7d815 100644
@@ -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
Reviewed-by on v1 1/1
#1 lore raw
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()")
---
 include/linux/iommu.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Lacking 0-day again..

Jason

Reviewed-by on v1 1/1
#2 lore raw
In reply to Joerg Roedel
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()")

Sorry. I missed to fix this one.

-Vasant

Quoted 17 lines
---
 include/linux/iommu.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/iommu.h +1 -1
index aa78d911fdda..522efdc7d815 100644
@@ -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);