summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPeter Zijlstra <peterz@infradead.org>2026-07-28 05:25:39 +0000
committerPeter Zijlstra <peterz@infradead.org>2026-07-29 13:17:52 +0200
commitcb9362dddcd167662ad7c6347ce96fd47890a27f (patch)
tree2b7b938989510daa197a0f799ca4e1d6bb7098b4 /include
parentcf0de88094a7b4df18008b6efb1290f4efed731f (diff)
downloadlinux-cb9362dddcd167662ad7c6347ce96fd47890a27f.tar.gz
linux-cb9362dddcd167662ad7c6347ce96fd47890a27f.zip
asm-generic/runtime-const: Add dummy runtime_const_mask_32()
Add a dummy runtime_const_mask_32() for all the architectures that do not support runtime-const. Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Signed-off-by: K Prateek Nayak <kprateek.nayak@amd.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Reviewed-by: Charlie Jenkins <thecharlesjenkins@gmail.com> Tested-by: Charlie Jenkins <thecharlesjenkins@gmail.com> Link: https://patch.msgid.link/20260227161841.GH606826@noisy.programming.kicks-ass.net Link: https://patch.msgid.link/20260728052540.4728-8-kprateek.nayak@amd.com
Diffstat (limited to 'include')
-rw-r--r--include/asm-generic/runtime-const.h1
1 files changed, 1 insertions, 0 deletions
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