tests: mem_protect/stackprot: Use __noinline attribute

Use Zephyr definition for noinline attribute.

Signed-off-by: Flavio Ceolin <flavio.ceolin@gmail.com>
This commit is contained in:
Flavio Ceolin 2024-11-27 09:55:36 -08:00 committed by Benjamin Cabé
commit 4f33729ee0

View file

@ -7,6 +7,7 @@
#include <zephyr/kernel.h>
#include <zephyr/toolchain.h>
#include <zephyr/ztest.h>
@ -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];