]> git.baikalelectronics.ru Git - kernel.git/commit
riscv: traps: add missing prototype
authorConor Dooley <conor.dooley@microchip.com>
Sun, 14 Aug 2022 14:12:38 +0000 (15:12 +0100)
committerPalmer Dabbelt <palmer@rivosinc.com>
Thu, 18 Aug 2022 21:42:58 +0000 (14:42 -0700)
commit500a11524b68e4fab5be103ecf7ab969e15eb413
tree20490ac6b9f863707c1c496f366b0992d1261741
parent79add682473e5e813f53c4862f2df1bb454fcee9
riscv: traps: add missing prototype

Sparse complains:
arch/riscv/kernel/traps.c:213:6: warning: symbol 'shadow_stack' was not declared. Should it be static?

The variable is used in entry.S, so declare shadow_stack there
alongside SHADOW_OVERFLOW_STACK_SIZE.

Fixes: 0ed3552f259f ("riscv: add VMAP_STACK overflow detection")
Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20220814141237.493457-5-mail@conchuod.ie
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/include/asm/thread_info.h
arch/riscv/kernel/traps.c