xen/arm: traps: Fix MISRA C 2012 Rule 8.4 violation
authorXenia Ragiadakou <burzalodowa@gmail.com>
Wed, 6 Jul 2022 12:11:56 +0000 (15:11 +0300)
committerJulien Grall <jgrall@amazon.com>
Thu, 14 Jul 2022 11:07:36 +0000 (12:07 +0100)
commit355caa9ef29fd4bcdf48bc263e6ca3b24392490b
tree14b60d936ef6b9f24f6df8a8f25fcf82a00ba3fc
parent6655eb81092a94e065fdcd0b47a1b1d69dc4e54c
xen/arm: traps: Fix MISRA C 2012 Rule 8.4 violation

Add the function prototype of show_stack() in <asm/processor.h> header file
so that it is visible before its definition in traps.c.

Although show_stack() is referenced only in traps.c, it is declared with
external linkage because, during development, it is often called also by
other files for debugging purposes. Declaring it static would increase
development effort. Add appropriate comment

Signed-off-by: Xenia Ragiadakou <burzalodowa@gmail.com>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/include/asm/processor.h