From: Michael Jeanson Date: Mon, 18 Mar 2019 20:20:32 +0000 (-0400) Subject: Fix: mm: create the new vm_fault_t type (v5.1) X-Git-Tag: v2.9.13~21 X-Git-Url: http://git.liburcu.org/?a=commitdiff_plain;h=1f4f5445b84cea1b78f48061507d0d4f112d7855;hp=1f4f5445b84cea1b78f48061507d0d4f112d7855;p=lttng-modules.git Fix: mm: create the new vm_fault_t type (v5.1) See upstream commit: commit 3d3539018d2cbd12e5af4a132636ee7fd8d43ef0 Author: Souptick Joarder Date: Thu Mar 7 16:31:14 2019 -0800 mm: create the new vm_fault_t type Page fault handlers are supposed to return VM_FAULT codes, but some drivers/file systems mistakenly return error numbers. Now that all drivers/file systems have been converted to use the vm_fault_t return type, change the type definition to no longer be compatible with 'int'. By making it an unsigned int, the function prototype becomes incompatible with a function which returns int. Sparse will detect any attempts to return a value which is not a VM_FAULT code. VM_FAULT_SET_HINDEX and VM_FAULT_GET_HINDEX values are changed to avoid conflict with other VM_FAULT codes. Signed-off-by: Mathieu Desnoyers ---