aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Pan <[email protected]>2020-05-28 11:03:51 -0700
committerJoerg Roedel <[email protected]>2020-05-29 15:13:24 +0200
commit71974cfb6737d45cba66189cdc0f8ba3397e8fe0 (patch)
tree754a7077d43e8066d7052d9489e106211d2af2a9
parentbba9cc2cf82840bd3c9b3f4f7edac2dc8329c241 (diff)
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") Reported-by: kbuild test robot <[email protected]> Signed-off-by: Jacob Pan <[email protected]> Acked-by: Lu Baolu <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Joerg Roedel <[email protected]>
-rw-r--r--drivers/iommu/intel-svm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iommu/intel-svm.c b/drivers/iommu/intel-svm.c
index acc7555b002d..a035ef911fba 100644
--- a/drivers/iommu/intel-svm.c
+++ b/drivers/iommu/intel-svm.c
@@ -601,7 +601,7 @@ success:
}
/* 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;