gpu: drm: msm: Change return type to vm_fault_t
authorSouptick Joarder <jrdr.linux@gmail.com>
Mon, 21 May 2018 17:29:48 +0000 (22:59 +0530)
committerRob Clark <robdclark@gmail.com>
Fri, 3 Aug 2018 13:53:36 +0000 (09:53 -0400)
commita5f74ec7d3cb6278255f7bf2ffb28baa6ad6e157
tree8bd86519d15610e9c16720b29bcf72f39610a497
parent3e91a8b5c1585a8c4445ffe5bd0f0202c4582ab0
gpu: drm: msm: Change return type to vm_fault_t

Use new return type vm_fault_t for fault handler. For
now, this is just documenting that the function returns
a VM_FAULT value rather than an errno. Once all instances
are converted, vm_fault_t will become a distinct type.

Ref- commit 1c8f422059ae ("mm: change return type to vm_fault_t")

Previously vm_insert_mixed() returns err which driver
mapped into VM_FAULT_* type. The new function
vmf_insert_mixed() will replace this inefficiency by
returning VM_FAULT_* type.

vmf_error() is the newly introduce inline function
in 4.17-rc6.

Signed-off-by: Souptick Joarder <jrdr.linux@gmail.com>
Reviewed-by: Matthew Wilcox <mawilcox@microsoft.com>
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/msm_drv.h
drivers/gpu/drm/msm/msm_gem.c