Skip to content

Commit

Permalink
arch: riscv: reg: include required header
Browse files Browse the repository at this point in the history
Include `zephyr/sys/util.h` for the `STRINGIFY()` macro.

Signed-off-by: Yong Cong Sin <[email protected]>
(cherry picked from commit 45ebd39)
  • Loading branch information
ycsin authored and dkalowsk committed Dec 1, 2024
1 parent 3b14973 commit 2c5fb2d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/zephyr/arch/riscv/reg.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
#ifndef ZEPHYR_INCLUDE_ZEPHYR_ARCH_RISCV_REG_H_
#define ZEPHYR_INCLUDE_ZEPHYR_ARCH_RISCV_REG_H_

#include <zephyr/sys/util.h>

#define reg_read(reg) \
({ \
register unsigned long __rv; \
Expand Down

0 comments on commit 2c5fb2d

Please sign in to comment.