linux/arch
Souptick Joarder 3d3539018d 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.

[jrdr.linux@gmail.com: fix warnings]
  Link: http://lkml.kernel.org/r/20190109183742.GA24326@jordon-HP-15-Notebook-PC
Link: http://lkml.kernel.org/r/20190108183041.GA12137@jordon-HP-15-Notebook-PC
Signed-off-by: Souptick Joarder <jrdr.linux@gmail.com>
Reviewed-by: William Kucharski <william.kucharski@oracle.com>
Reviewed-by: Mike Rapoport <rppt@linux.ibm.com>
Reviewed-by: Matthew Wilcox <willy@infradead.org>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Dan Williams <dan.j.williams@intel.com>
Cc: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Cc: Rik van Riel <riel@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2019-03-07 18:32:03 -08:00
..
alpha Merge branch 'akpm' (patches from Andrew) 2019-03-06 10:31:36 -08:00
arc configs: get rid of obsolete CONFIG_ENABLE_WARN_DEPRECATED 2019-03-07 18:32:02 -08:00
arm arm, s390, unicore32: remove oneliner wrappers for memblock_alloc() 2019-03-07 18:32:03 -08:00
arm64 sound updates for 5.1 2019-03-06 14:10:46 -08:00
c6x arch: simplify several early memory allocations 2019-03-07 18:32:03 -08:00
csky Merge branch 'timers-2038-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2019-03-05 14:08:26 -08:00
h8300 configs: get rid of obsolete CONFIG_ENABLE_WARN_DEPRECATED 2019-03-07 18:32:02 -08:00
hexagon y2038: additional syscall ABI cleanup 2019-02-27 21:45:27 +01:00
ia64 Merge branch 'akpm' (patches from Andrew) 2019-03-06 10:31:36 -08:00
m68k configs: get rid of obsolete CONFIG_ENABLE_WARN_DEPRECATED 2019-03-07 18:32:02 -08:00
microblaze microblaze: prefer memblock API returning virtual address 2019-03-07 18:32:03 -08:00
mips asm-generic changes for v5.1 2019-03-06 09:18:43 -08:00
nds32 arch: simplify several early memory allocations 2019-03-07 18:32:03 -08:00
nios2 configs: get rid of obsolete CONFIG_ENABLE_WARN_DEPRECATED 2019-03-07 18:32:02 -08:00
openrisc openrisc: simplify pte_alloc_one_kernel() 2019-03-07 18:32:03 -08:00
parisc Char/Misc driver patches for 5.1-rc1 2019-03-06 14:18:59 -08:00
powerpc arch: simplify several early memory allocations 2019-03-07 18:32:03 -08:00
riscv Merge branch 'akpm' (patches from Andrew) 2019-03-06 10:31:36 -08:00
s390 arm, s390, unicore32: remove oneliner wrappers for memblock_alloc() 2019-03-07 18:32:03 -08:00
sh sh: prefer memblock APIs returning virtual address 2019-03-07 18:32:03 -08:00
sparc arch: simplify several early memory allocations 2019-03-07 18:32:03 -08:00
um a.out: remove core dumping support 2019-03-05 10:00:35 -08:00
unicore32 arm, s390, unicore32: remove oneliner wrappers for memblock_alloc() 2019-03-07 18:32:03 -08:00
x86 mm: create the new vm_fault_t type 2019-03-07 18:32:03 -08:00
xtensa asm-generic changes for v5.1 2019-03-06 09:18:43 -08:00
.gitignore
Kconfig Char/Misc driver patches for 5.1-rc1 2019-03-06 14:18:59 -08:00