]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
drm/etnaviv: change return type to vm_fault_t
authorSouptick Joarder <jrdr.linux@gmail.com>
Tue, 29 May 2018 13:47:27 +0000 (19:17 +0530)
committerLucas Stach <l.stach@pengutronix.de>
Mon, 6 Aug 2018 13:24:18 +0000 (15:24 +0200)
commitcfad05a24dcb2bf09ba6438e0843c6a0ed90381c
treeb21454557122ace82b66a31284b644359194ee2b
parenta0780bb1df60f00e4573db7bd53e7039e9eee1cb
drm/etnaviv: 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_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.

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: Lucas Stach <l.stach@pengutronix.de>
drivers/gpu/drm/etnaviv/etnaviv_drv.h
drivers/gpu/drm/etnaviv/etnaviv_gem.c