mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-28 12:53:14 +01:00
Add a dummy runtime_const_mask_32() for all the architectures that do not support runtime-const. Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Signed-off-by: K Prateek Nayak <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Reviewed-by: Charlie Jenkins <[email protected]> Tested-by: Charlie Jenkins <[email protected]> Link: https://patch.msgid.link/[email protected] Link: https://patch.msgid.link/[email protected]
17 lines
473 B
C
17 lines
473 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _ASM_RUNTIME_CONST_H
|
|
#define _ASM_RUNTIME_CONST_H
|
|
|
|
/*
|
|
* This is the fallback for when the architecture doesn't
|
|
* support the runtime const operations.
|
|
*
|
|
* We just use the actual symbols as-is.
|
|
*/
|
|
#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
|