diff options
| author | Tiezhu Yang <yangtiezhu@loongson.cn> | 2026-04-22 15:45:34 +0800 |
|---|---|---|
| committer | Huacai Chen <chenhuacai@loongson.cn> | 2026-04-22 15:45:34 +0800 |
| commit | 534768410598539712e0097e060331c85f2d0c9d (patch) | |
| tree | 434f20775d20fb23bcd58795c0904f1e24b80ad1 /include/linux/timerqueue.h | |
| parent | 1dd3e8a8eeb4059fb34b07578362380cf35b7ed5 (diff) | |
LoongArch: BPF: Add the default case in emit_atomic() and rename it
Like the other archs such as x86 and riscv, add the default case
in emit_atomic() to print an error message for the invalid opcode
and return -EINVAL, then make its return type as int.
While at it, given that all of the instructions in emit_atomic()
are only read-modify-write instructions, rename emit_atomic() to
emit_atomic_rmw() to make it clear, because there will be a new
function emit_atomic_ld_st() for load-acquire and store-release
instructions in the later patch.
Acked-by: Hengqi Chen <hengqi.chen@gmail.com>
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions
