Skip to content

Commit e7598fa

Browse files
committed
iommu/vt-d: Fix compile warning from intel-svm.h
The intel_svm_is_pasid_valid() needs to be marked inline, otherwise it causes the compile warning below: CC [M] drivers/dma/idxd/cdev.o In file included from drivers/dma/idxd/cdev.c:9:0: ./include/linux/intel-svm.h:125:12: warning: ‘intel_svm_is_pasid_valid’ defined but not used [-Wunused-function] static int intel_svm_is_pasid_valid(struct device *dev, int pasid) ^~~~~~~~~~~~~~~~~~~~~~~~ Reported-by: Borislav Petkov <[email protected]> Fixes: 15060ab ('iommu/vt-d: Helper function to query if a pasid has any active users') Signed-off-by: Joerg Roedel <[email protected]>
1 parent bb6d3fb commit e7598fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/linux/intel-svm.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ static inline int intel_svm_unbind_mm(struct device *dev, int pasid)
122122
BUG();
123123
}
124124

125-
static int intel_svm_is_pasid_valid(struct device *dev, int pasid)
125+
static inline int intel_svm_is_pasid_valid(struct device *dev, int pasid)
126126
{
127127
return -EINVAL;
128128
}

0 commit comments

Comments
 (0)