]> git.baikalelectronics.ru Git - kernel.git/commit
char: mspec: change return type to vm_fault_t
authorSouptick Joarder <jrdr.linux@gmail.com>
Mon, 16 Apr 2018 14:26:09 +0000 (19:56 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 23 Apr 2018 11:51:53 +0000 (13:51 +0200)
commite28f650d2a117cfeee426c9fd2ff4191164d7920
treed6e4a002d3e3b8e03bd2ee50a3b1e63cdf0bc989
parent3d423011db4bf6939ac9bc8ab1016729f6ac7b31
char: mspec: change return type to vm_fault_t

Use new return type vm_fault_t for the 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.

This driver failed to handle any error returned by
vm_insert_pfn. Use the new vmf_insert_pfn function
to return the correct value.

Signed-off-by: Souptick Joarder <jrdr.linux@gmail.com>
Reviewed-by: Matthew Wilcox <mawilcox@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/char/mspec.c