Skip to content

Commit 4f33729

Browse files
ceolinkartben
authored andcommitted
tests: mem_protect/stackprot: Use __noinline attribute
Use Zephyr definition for noinline attribute. Signed-off-by: Flavio Ceolin <[email protected]>
1 parent df0dd29 commit 4f33729

File tree

1 file changed

+2
-1
lines changed
  • tests/kernel/mem_protect/stackprot/src

1 file changed

+2
-1
lines changed

tests/kernel/mem_protect/stackprot/src/main.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88

99
#include <zephyr/kernel.h>
10+
#include <zephyr/toolchain.h>
1011
#include <zephyr/ztest.h>
1112

1213

@@ -61,7 +62,7 @@ void print_loop(const char *name)
6162
*
6263
*/
6364

64-
void __attribute__((noinline)) check_input(const char *name, const char *input)
65+
void __noinline check_input(const char *name, const char *input)
6566
{
6667
/* Stack will overflow when input is more than 16 characters */
6768
char buf[16];

0 commit comments

Comments
 (0)