arch: add do_page_fault prototypes
authorArnd Bergmann <arnd@arndb.de>
Mon, 6 Nov 2023 11:20:13 +0000 (12:20 +0100)
committerArnd Bergmann <arnd@arndb.de>
Thu, 23 Nov 2023 10:32:32 +0000 (11:32 +0100)
commit23f8c1823bd4041064ab557283dbb37657549c5b
treebb51b2a565f9cfe6b89c9d6c64b2132716517af7
parent1d6571a8794ba276a078a8ca9d84ccc157f8b6c3
arch: add do_page_fault prototypes

do_page_fault() is missing a declaration on a couple of architectures:

arch/alpha/mm/fault.c:85:1: error: no previous prototype for 'do_page_fault' [-Werror=missing-prototypes]
arch/csky/mm/fault.c:187:17: error: no previous prototype for 'do_page_fault' [-Werror=missing-prototypes]
arch/mips/mm/fault.c:323:17: error: no previous prototype for 'do_page_fault' [-Werror=missing-prototypes]
arch/nios2/mm/fault.c:43:17: error: no previous prototype for 'do_page_fault' [-Werror=missing-prototypes]
arch/sh/mm/fault.c:389:27: error: no previous prototype for 'do_page_fault' [-Werror=missing-prototypes]

Since the calling conventions are architecture specific here,
add separate prototypes for each one.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/alpha/include/asm/mmu_context.h
arch/csky/include/asm/traps.h
arch/mips/include/asm/traps.h
arch/nios2/include/asm/traps.h
arch/sh/include/asm/traps_32.h