summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikhail Kshevetskiy <[email protected]>2026-07-03 14:56:09 +0300
committerTom Rini <[email protected]>2026-07-08 13:29:18 -0600
commit08badbd7d82c2f1e69051f110cd8966e4bfd573d (patch)
treefc9e196aea7621ed52280b7f750691b0165ccc54
parent6bbf6cfc915672005f118c5b8419d7a971fd3515 (diff)
board: renesas: gen5-cm33: #undef field_{get, prep}() before definition
Prepare for the advent of globally available common field_get() and field_prep() macros by undefining the symbols before defining local variants. This prevents redefinition warnings from the C preprocessor when introducing the common macros later. Signed-off-by: Mikhail Kshevetskiy <[email protected]>
-rw-r--r--board/renesas/common/gen5-cm33.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/board/renesas/common/gen5-cm33.c b/board/renesas/common/gen5-cm33.c
index f06df824019..00280c142d3 100644
--- a/board/renesas/common/gen5-cm33.c
+++ b/board/renesas/common/gen5-cm33.c
@@ -21,7 +21,9 @@
DECLARE_GLOBAL_DATA_PTR;
+#undef field_get
#define field_get(_mask, _reg) (((_reg) & (_mask)) >> (ffs(_mask) - 1))
+#undef field_prep
#define field_prep(_mask, _val) (((_val) << (ffs(_mask) - 1)) & (_mask))
#define PKC_PROT_LOCK 0xa5a5a500