]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
iommu: Fix prototype of iommu_paging_domain_alloc_flags()
authorJoerg Roedel <jroedel@suse.de>
Tue, 29 Oct 2024 10:54:25 +0000 (11:54 +0100)
committerJoerg Roedel <jroedel@suse.de>
Tue, 29 Oct 2024 13:35:47 +0000 (14:35 +0100)
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>
include/linux/iommu.h

index aa78d911fddaeb8455646dbdb2a600d0c626bdae..522efdc7d8158c8b74a0d9cc0c82c8e02535525f 100644 (file)
@@ -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);