]> git.baikalelectronics.ru Git - kernel.git/commit
gpu: drm: ttm: Adding new return type vm_fault_t
authorSouptick Joarder <jrdr.linux@gmail.com>
Fri, 1 Jun 2018 19:27:24 +0000 (00:57 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 19 Jun 2018 18:17:38 +0000 (13:17 -0500)
commit9048ab8559c9c4c14227e660dfe4e2a9895ee2c5
treebfb7ebc85edd2bc6fde6023395ccccb31e4d6888
parent81f4f182b1efe24163bad5c115a69e9ed8ba3574
gpu: drm: ttm: Adding new return type 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 cbb1cb712168 ("mm: change return type to vm_fault_t")

Previously vm_insert_{mixed,pfn} returns err which driver
mapped into VM_FAULT_* type. The new function
vmf_insert_{mixed,pfn} will replace this inefficiency by
returning VM_FAULT_* type.

Signed-off-by: Souptick Joarder <jrdr.linux@gmail.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/ttm/ttm_bo_vm.c