[RFC PATCH v2 6/7] asm-generic/runtime-const: Add dummy runtime_const_mask_32()
K Prateek Nayak
kprateek.nayak at amd.com
Sun Mar 15 22:24:00 PDT 2026
From: Peter Zijlstra <peterz at infradead.org>
Add a dummy runtime_const_mask_32() for all the architectures that do
not support runtime-const.
Link: https://patch.msgid.link/20260227161841.GH606826@noisy.programming.kicks-ass.net
Not-yet-signed-off-by: Peter Zijlstra <peterz at infradead.org>
Signed-off-by: K Prateek Nayak <kprateek.nayak at amd.com>
---
include/asm-generic/runtime-const.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/asm-generic/runtime-const.h b/include/asm-generic/runtime-const.h
index 670499459514..03e6e3e02401 100644
--- a/include/asm-generic/runtime-const.h
+++ b/include/asm-generic/runtime-const.h
@@ -10,6 +10,7 @@
*/
#define runtime_const_ptr(sym) (sym)
#define runtime_const_shift_right_32(val, sym) ((u32)(val)>>(sym))
+#define runtime_const_mask_32(val, sym) ((u32)(val)&(sym))
#define runtime_const_init(type,sym) do { } while (0)
#endif
--
2.43.0
More information about the linux-riscv
mailing list