OSDN Git Service

bpf, arm64: Replace STACK_ALIGN() with round_up() to align stack size
authorTiezhu Yang <yangtiezhu@loongson.cn>
Mon, 10 May 2021 12:51:59 +0000 (20:51 +0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 12 May 2021 20:45:37 +0000 (22:45 +0200)
commit3f2870989f10ddb276063097d8e44e543277694a
treee8b4754f17bd4317d8cbe1d1a77f8693413f35b0
parent0303ce17347a02863c4ddef9777a42ff0315acb6
bpf, arm64: Replace STACK_ALIGN() with round_up() to align stack size

Use the common function round_up() directly to show the align size
explicitly, the function STACK_ALIGN() is needless, remove it. Other
JITs also just rely on round_up().

Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/1620651119-5663-1-git-send-email-yangtiezhu@loongson.cn
arch/arm64/net/bpf_jit_comp.c