Skip to content

Commit 7d02313

Browse files
ceolinkartben
authored andcommitted
samples: fuzz: Use __noinline attribute
Use Zephyr definition for noinline attribute. Signed-off-by: Flavio Ceolin <[email protected]>
1 parent 4f33729 commit 7d02313

File tree

1 file changed

+2
-1
lines changed
  • samples/subsys/debug/fuzz/src

1 file changed

+2
-1
lines changed

samples/subsys/debug/fuzz/src/main.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
#include <zephyr/kernel.h>
55
#include <string.h>
66
#include <zephyr/irq.h>
7+
#include <zephyr/toolchain.h>
78
#include <irq_ctrl.h>
89
#if defined(CONFIG_BOARD_NATIVE_SIM)
910
#include <nsi_cpu_if.h>
@@ -38,7 +39,7 @@ bool found[ARRAY_SIZE(key)];
3839

3940
#define GEN_CHECK(cur, nxt) \
4041
void check##nxt(const uint8_t *data, size_t sz); \
41-
void __attribute__((noinline)) check##cur(const uint8_t *data, size_t sz) \
42+
void __noinline check##cur(const uint8_t *data, size_t sz) \
4243
{ \
4344
if (cur < sz && data[cur] == key[cur]) { \
4445
if (!found[cur]) { \

0 commit comments

Comments
 (0)