[PATCH v2] gpu: drm: etnaviv: Change return type to vm_fault_t

Souptick Joarder jrdr.linux at gmail.com
Mon Jun 4 09:36:51 UTC 2018


On Mon, Jun 4, 2018 at 3:01 PM, Lucas Stach <l.stach at pengutronix.de> wrote:
> Am Dienstag, den 29.05.2018, 19:17 +0530 schrieb Souptick Joarder:
>> 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 at gmail.com>
>> Reviewed-by: Matthew Wilcox <mawilcox at microsoft.com>
>
> Thanks, applied.
>
> This won't be part of 4.18, as it's obviously too late for this
> release, but will work it's way upstream with the next batch of etnaviv
> updates.
>
> Regards,
> Lucas
>

Thanks Lucas :)


More information about the etnaviv mailing list