powerpc: split validate_sp into two functions
authorNicholas Piggin <npiggin@gmail.com>
Sun, 27 Nov 2022 12:49:39 +0000 (22:49 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 2 Dec 2022 06:54:09 +0000 (17:54 +1100)
commit4cefb0f6c555971b3e6544a9b15470f9d1f12089
tree8d4fd01066bd2c48828ee6053991dce4cdce7440
parentedbd0387f3249cc7e102f86d4852a9a9f3bb1305
powerpc: split validate_sp into two functions

Most callers just want to validate an arbitrary kernel stack pointer,
some need a particular size. Make the size case the exceptional one
with an extra function.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20221127124942.1665522-15-npiggin@gmail.com
arch/powerpc/include/asm/processor.h
arch/powerpc/kernel/process.c
arch/powerpc/kernel/stacktrace.c
arch/powerpc/perf/callchain.c