Skip to content

Commit 375b415

Browse files
committed
includ: zephyr: arch: add missing stddef.h/stdbool.h in cache.h
Add missing inclusion of stddef.h and stdbool.h to respectively define size_t and bool types used in some cache.h function declarations. This change prevents build errors like: .../zephyr/include/zephyr/arch/cache.h:105:41: error: unknown type name 'size_t' 105 | int arch_dcache_flush_range(void *addr, size_t size); | ^~~~~~ Signed-off-by: Etienne Carriere <[email protected]>
1 parent e57676a commit 375b415

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

include/zephyr/arch/cache.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@
2424
#include <zephyr/arch/xtensa/cache.h>
2525
#endif
2626

27+
#include <stddef.h>
28+
#include <stdbool.h>
29+
2730
#if defined(CONFIG_DCACHE) || defined(__DOXYGEN__)
2831

2932
/**

0 commit comments

Comments
 (0)