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:
parent
df0dd2915d
commit
4f33729ee0
1 changed files with 2 additions and 1 deletions
|
@ -7,6 +7,7 @@
|
||||||
|
|
||||||
|
|
||||||
#include <zephyr/kernel.h>
|
#include <zephyr/kernel.h>
|
||||||
|
#include <zephyr/toolchain.h>
|
||||||
#include <zephyr/ztest.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 */
|
/* Stack will overflow when input is more than 16 characters */
|
||||||
char buf[16];
|
char buf[16];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue