]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
riscv, bpf: Use STACK_ALIGN macro for size rounding up
authorXiao Wang <xiao.w.wang@intel.com>
Thu, 23 May 2024 03:18:35 +0000 (11:18 +0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 24 May 2024 15:16:56 +0000 (17:16 +0200)
commite944fc8152744a41dc62e720995538e48b053bb9
treef3e3ab4a55d73ebb1665384c0713b70ef29c07b8
parentc12603e76ef666ce5c51a9d6faf155c9e3de7601
riscv, bpf: Use STACK_ALIGN macro for size rounding up

Use the macro STACK_ALIGN that is defined in asm/processor.h for stack size
rounding up, just like bpf_jit_comp32.c does.

Signed-off-by: Xiao Wang <xiao.w.wang@intel.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Reviewed-by: Pu Lehui <pulehui@huawei.com>
Link: https://lore.kernel.org/bpf/20240523031835.3977713-1-xiao.w.wang@intel.com
arch/riscv/net/bpf_jit_comp64.c