drm/armada: Adding new typedef vm_fault_t
authorSouptick Joarder <jrdr.linux@gmail.com>
Mon, 30 Jul 2018 10:52:31 +0000 (11:52 +0100)
committerRussell King <rmk+kernel@armlinux.org.uk>
Mon, 30 Jul 2018 10:52:31 +0000 (11:52 +0100)
commit7794ec7774066eb12af67a0a756bddd66f2d50f8
treebf3b8eeee5c2a1f8150f7328cd7eae5620f76c89
parent830aadceae20c08704562f0b83fdd0f0062d06c6
drm/armada: Adding new typedef vm_fault_t

Use new return type vm_fault_t for fault handler in struct
vm_operations_struct. 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_pfn() returns err which driver mapped into
VM_FAULT_* type. The new function vmf_insert_pfn() 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: Russell King <rmk+kernel@armlinux.org.uk>
drivers/gpu/drm/armada/armada_gem.c