xref: /linux/include/asm-generic/runtime-const.h (revision dfa35434d7f20142fedd7120277b1044a0a2bb64)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_RUNTIME_CONST_H
3 #define _ASM_RUNTIME_CONST_H
4 
5 /*
6  * This is the fallback for when the architecture doesn't
7  * support the runtime const operations.
8  *
9  * We just use the actual symbols as-is.
10  */
11 #define runtime_const_ptr(sym) (sym)
12 #define runtime_const_shift_right_32(val, sym) ((u32)(val)>>(sym))
13 #define runtime_const_mask_32(val, sym) ((u32)(val)&(sym))
14 #define runtime_const_init(type,sym) do { } while (0)
15 
16 #endif
17