Skip to contentSkip to conversation

iommu/vt-d: Fix compile warning

PATCH Applied Jacob Pan 3 participants 4 messages May 28, 2020 – May 29, 2020 IOMMU

lore
Share & tools
lore

Jacob Pan

author
#0 lore raw

PATCH 1/1 iommu/vt-d: Fix compile warning

Make intel_svm_unbind_mm() a static function.

Fixes 064a57d7ddfc ("iommu/vt-d: Replace intel SVM APIs with generic

SVA APIs")

---
 drivers/iommu/intel-svm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iommu/intel-svm.c +1 -1
index 3c190c3b90b9..d386853121a2 100644
@@ -597,7 +597,7 @@ intel_svm_bind_mm(struct device *dev, int flags, struct svm_dev_ops *ops,
 }
 
 /* Caller must hold pasid_mutex */
-int intel_svm_unbind_mm(struct device *dev, int pasid)
+static int intel_svm_unbind_mm(struct device *dev, int pasid)
 {
 	struct intel_svm_dev *sdev;
 	struct intel_iommu *iommu;
Signature · 1 line
2.7.4
Acked-by on v1 1/1
#1 lore raw
Quoted 6 lines · Jacob Pan

Make intel_svm_unbind_mm() a static function.

Fixes 064a57d7ddfc ("iommu/vt-d: Replace intel SVM APIs with generic

SVA APIs")

Best regards,
baolu

Quoted 18 lines
---
  drivers/iommu/intel-svm.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iommu/intel-svm.c +1 -1
index 3c190c3b90b9..d386853121a2 100644
@@ -597,7 +597,7 @@ intel_svm_bind_mm(struct device *dev, int flags, struct svm_dev_ops *ops,
  }
 
  /* Caller must hold pasid_mutex */
-int intel_svm_unbind_mm(struct device *dev, int pasid)
+static int intel_svm_unbind_mm(struct device *dev, int pasid)
  {
  	struct intel_svm_dev *sdev;
  	struct intel_iommu *iommu;
maintainer Applied
#2 lore raw
In reply to Jacob Pan

Applied, thanks.

Quoted 4 lines · Jacob Pan

Make intel_svm_unbind_mm() a static function.

Fixes 064a57d7ddfc ("iommu/vt-d: Replace intel SVM APIs with generic

SVA APIs")

Please make sure the fixes tags (or any other tags) are not line-wrapped in future patch submissions.

Thanks,

Joerg

author
#3 lore raw
Quoted 11 lines · On Fri, 29 May 2020 15:15:45 +0200 Joerg Roedel <[email protected]> wrote:

Applied, thanks.

Quoted 4 lines · Jacob Pan

Make intel_svm_unbind_mm() a static function.

Fixes 064a57d7ddfc ("iommu/vt-d: Replace intel SVM APIs with

generic SVA APIs")

Please make sure the fixes tags (or any other tags) are not line-wrapped in future patch submissions.

Got it, thanks.

Quoted 3 lines

Thanks,

Joerg

[Jacob Pan]