mips: signal: move sigcontext declarations to header
authorArnd Bergmann <arnd@arndb.de>
Mon, 4 Dec 2023 11:56:55 +0000 (12:56 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 11 Dec 2023 01:21:39 +0000 (17:21 -0800)
commit2894a8c4bcdc41d72d9d6c080901101e48fd6195
tree3b668e281970f6d40ed137e9c3c05d2a51e79298
parent2657bc63d34ec0ca40244e7d1cfa78c742d905f2
mips: signal: move sigcontext declarations to header

Function declarations should be in a shared header to ensure the
prototypes match the definition:

arch/mips/kernel/signal.c:439:5: error: no previous prototype for 'setup_sigcontext' [-Werror=missing-prototypes]
arch/mips/kernel/signal.c:516:5: error: no previous prototype for 'restore_sigcontext' [-Werror=missing-prototypes]

Link: https://lkml.kernel.org/r/20231204115710.2247097-6-arnd@kernel.org
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Stephen Rothwell <sfr@rothwell.id.au>
Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
arch/mips/kernel/signal-common.h
arch/mips/kernel/signal_n32.c