gpu: drm: udl: Adding new typedef vm_fault_t
authorSouptick Joarder <jrdr.linux@gmail.com>
Wed, 25 Apr 2018 04:59:22 +0000 (10:29 +0530)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 23 May 2018 08:48:46 +0000 (10:48 +0200)
commit3c5f134ac9d0e405a15af652c3ce8cbaa9bf1bc7
treed46c37f8c4b6dfc49caefc5740174e7c240857c1
parentca510ead96d78c5379db5d36ffbdf5382f36db6d
gpu: drm: udl: Adding new typedef vm_fault_t

Use new return type vm_fault_t for fault and huge_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.

Commit 1c8f422059ae ("mm: change return type to vm_fault_t")

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

Signed-off-by: Souptick Joarder <jrdr.linux@gmail.com>
Reviewed-by: Matthew Wilcox <mawilcox@microsoft.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20180425045922.GA21590@jordon-HP-15-Notebook-PC
drivers/gpu/drm/udl/udl_drv.h
drivers/gpu/drm/udl/udl_gem.c