-
Conor Dooley authored
commit eb9be831 upstream. The patchwork automation reported a sparse complaint that spin_shadow_stack was not declared and should be static: ../arch/riscv/kernel/traps.c:335:15: warning: symbol 'spin_shadow_stack' was not declared. Should it be static? However, this is used in entry.S and therefore shouldn't be static. The same applies to the shadow_stack that this pseudo spinlock is trying to protect, so do like its charge and add a declaration to thread_info.h Signed-off-by:
Conor Dooley <[email protected]> Fixes: 7e186433 ("riscv: fix race when vmap stack overflow") Reviewed-by:
Guo Ren <[email protected]> Link: https://lore.kernel.org/r/[email protected] Cc: [email protected] Signed-off-by:
Palmer Dabbelt <[email protected]> Signed-off-by:
Greg Kroah-Hartman <[email protected]>
a1f8e698
Loading