From 4f33729ee07d7cab9c075023ead8718db2dd53c9 Mon Sep 17 00:00:00 2001 From: Flavio Ceolin Date: Wed, 27 Nov 2024 09:55:36 -0800 Subject: [PATCH] tests: mem_protect/stackprot: Use __noinline attribute Use Zephyr definition for noinline attribute. Signed-off-by: Flavio Ceolin --- tests/kernel/mem_protect/stackprot/src/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/kernel/mem_protect/stackprot/src/main.c b/tests/kernel/mem_protect/stackprot/src/main.c index f30cb9055fc..4676c6d75c1 100644 --- a/tests/kernel/mem_protect/stackprot/src/main.c +++ b/tests/kernel/mem_protect/stackprot/src/main.c @@ -7,6 +7,7 @@ #include +#include #include @@ -61,7 +62,7 @@ void print_loop(const char *name) * */ -void __attribute__((noinline)) check_input(const char *name, const char *input) +void __noinline check_input(const char *name, const char *input) { /* Stack will overflow when input is more than 16 characters */ char buf[16];