Skip to content

Commit 2c5fb2d

Browse files
ycsindkalowsk
authored andcommitted
arch: riscv: reg: include required header
Include `zephyr/sys/util.h` for the `STRINGIFY()` macro. Signed-off-by: Yong Cong Sin <[email protected]> (cherry picked from commit 45ebd39)
1 parent 3b14973 commit 2c5fb2d

File tree

1 file changed

+2
-0
lines changed
  • include/zephyr/arch/riscv

1 file changed

+2
-0
lines changed

include/zephyr/arch/riscv/reg.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
#ifndef ZEPHYR_INCLUDE_ZEPHYR_ARCH_RISCV_REG_H_
88
#define ZEPHYR_INCLUDE_ZEPHYR_ARCH_RISCV_REG_H_
99

10+
#include <zephyr/sys/util.h>
11+
1012
#define reg_read(reg) \
1113
({ \
1214
register unsigned long __rv; \

0 commit comments

Comments
 (0)