Skip to contentSkip to conversation

target: Change return type to vm_fault_t

PATCH Applied Souptick Joarder 2 participants 2 messages Apr 14, 2018 – Apr 19, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 target: Change return type to vm_fault_t

Use new return type vm_fault_t for fault handler
in struct vm_operations_struct.

---
 drivers/target/target_core_user.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/target/target_core_user.c +1 -1
index 4ad89ea..d6af292 100644
@@ -1382,7 +1382,7 @@ static struct page *tcmu_try_get_block_page(struct tcmu_dev *udev, uint32_t dbi)
 	return page;
 }
 
-static int tcmu_vma_fault(struct vm_fault *vmf)
+static vm_fault_t tcmu_vma_fault(struct vm_fault *vmf)
 {
 	struct tcmu_dev *udev = vmf->vma->vm_private_data;
 	struct uio_info *info = &udev->uio_info;

--
1.9.1

#1 lore raw

Souptick,

Quoted 2 lines

Use new return type vm_fault_t for fault handler in struct vm_operations_struct.

Applied to 4.18/scsi-queue. Thank you.

Signature · 1 line
Martin K. Petersen	Oracle Linux Engineering