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) ^~~~~~~~~~~~~~~~~~~~~~~~
Showing the changes to include/linux (1 of 1 file). Show all
Unified · Split
| @@ -122,7 +122,7 @@ static inline int intel_svm_unbind_mm(struct device *dev, int pasid) · 121 unmodified lines | ||
| 122 | 122 | BUG(); |
| 123 | 123 | } |
| 124 | 124 | |
| 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) | |
| 126 | 126 | { |
| 127 | 127 | return -EINVAL; |
| 128 | 128 | } |