--- v5
+++ v7
@@ -12,10 +12,10 @@
1 file changed, 13 insertions(+), 13 deletions(-)
diff --git a/drivers/vfio/vfio_iommu_spapr_tce.c b/drivers/vfio/vfio_iommu_spapr_tce.c
-index 91e7599..0e37400 100644
+index f835e63..8bbee22 100644
--- a/drivers/vfio/vfio_iommu_spapr_tce.c
+++ b/drivers/vfio/vfio_iommu_spapr_tce.c
-@@ -99,7 +99,7 @@ static int tce_iommu_enable(struct tce_container *container)
+@@ -91,7 +91,7 @@ static int tce_iommu_enable(struct tce_container *container)
* enforcing the limit based on the max that the guest can map.
*/
down_write(¤t->mm->mmap_sem);
@@ -24,7 +24,7 @@
locked = current->mm->locked_vm + npages;
lock_limit = rlimit(RLIMIT_MEMLOCK) >> PAGE_SHIFT;
if (locked > lock_limit && !capable(CAP_IPC_LOCK)) {
-@@ -128,7 +128,7 @@ static void tce_iommu_disable(struct tce_container *container)
+@@ -120,7 +120,7 @@ static void tce_iommu_disable(struct tce_container *container)
down_write(¤t->mm->mmap_sem);
current->mm->locked_vm -= (container->tbl->it_size <<
@@ -33,7 +33,7 @@
up_write(¤t->mm->mmap_sem);
}
-@@ -230,7 +230,7 @@ static long tce_iommu_build(struct tce_container *container,
+@@ -222,7 +222,7 @@ static long tce_iommu_build(struct tce_container *container,
tce, ret);
break;
}
@@ -42,7 +42,7 @@
}
if (ret)
-@@ -275,8 +275,8 @@ static long tce_iommu_ioctl(void *iommu_data,
+@@ -267,8 +267,8 @@ static long tce_iommu_ioctl(void *iommu_data,
if (info.argsz < minsz)
return -EINVAL;
@@ -53,7 +53,7 @@
info.flags = 0;
if (copy_to_user((void __user *)arg, &info, minsz))
-@@ -306,8 +306,8 @@ static long tce_iommu_ioctl(void *iommu_data,
+@@ -298,8 +298,8 @@ static long tce_iommu_ioctl(void *iommu_data,
VFIO_DMA_MAP_FLAG_WRITE))
return -EINVAL;
@@ -64,7 +64,7 @@
return -EINVAL;
/* iova is checked by the IOMMU API */
-@@ -322,8 +322,8 @@ static long tce_iommu_ioctl(void *iommu_data,
+@@ -314,8 +314,8 @@ static long tce_iommu_ioctl(void *iommu_data,
return ret;
ret = tce_iommu_build(container, tbl,
@@ -75,7 +75,7 @@
iommu_flush_tce(tbl);
-@@ -349,17 +349,17 @@ static long tce_iommu_ioctl(void *iommu_data,
+@@ -341,17 +341,17 @@ static long tce_iommu_ioctl(void *iommu_data,
if (param.flags)
return -EINVAL;