Skip to content
Commit 25cdda10 authored by Lars-Ove Karlsson's avatar Lars-Ove Karlsson Committed by Alberto Escolar
Browse files

kernel: Unified type of stack protection canary __stack_chk_guard.



Extern declaration of __stack_chk_guard added volatile to
the type while the declaration was non-volatile. This cause
type check errors with compilers that declares the
__stack_chk_guard variable in an internal pre-include
header file (IAR).

While I think the volatile keyword is unnecessary, I decided
on keep it and add it to the declaration in
kernel/compiler_stack_protect.c

Tested with IAR ICCARM and the Zephyr SDK GCC.

Signed-off-by: default avatarLars-Ove Karlsson <lars-ove.karlsson@iar.com>
parent 8799ab1e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment