powerpc: remove arguments from fault handler functions
authorNicholas Piggin <npiggin@gmail.com>
Sat, 30 Jan 2021 13:08:16 +0000 (23:08 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 8 Feb 2021 13:02:08 +0000 (00:02 +1100)
commita01a3f2ddbcda83e8572787c0ec1dcbeba86915a
tree497891fcc997665e9e4d57cc6cf8fdf19c5bf72a
parenta4922f5442e7e6ce85da304e224d940edec2f1fb
powerpc: remove arguments from fault handler functions

Make mm fault handlers all just take the pt_regs * argument and load
DAR/DSISR from that. Make those that return a value return long.

This is done to make the function signatures match other handlers, which
will help with a future patch to add wrappers. Explicit arguments could
be added for performance but that would require more wrapper macro
variants.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210130130852.2952424-7-npiggin@gmail.com
12 files changed:
arch/powerpc/include/asm/asm-prototypes.h
arch/powerpc/include/asm/book3s/64/mmu-hash.h
arch/powerpc/include/asm/bug.h
arch/powerpc/kernel/exceptions-64e.S
arch/powerpc/kernel/exceptions-64s.S
arch/powerpc/kernel/head_40x.S
arch/powerpc/kernel/head_8xx.S
arch/powerpc/kernel/head_book3s_32.S
arch/powerpc/kernel/head_booke.h
arch/powerpc/mm/book3s64/hash_utils.c
arch/powerpc/mm/book3s64/slb.c
arch/powerpc/mm/fault.c