]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
s390/bpf: Describe the frame using a struct instead of constants
authorIlya Leoshkevich <iii@linux.ibm.com>
Tue, 24 Jun 2025 12:04:28 +0000 (14:04 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 1 Jul 2025 19:36:51 +0000 (12:36 -0700)
commite26d523edf2a62b142d2dd2dd9b87f61ed92f33a
tree81ba2acdd6c868ea40adc43c2887205ad86b62b6
parentb2268d550d20ff860bddfe3a91b1aec00414689a
s390/bpf: Describe the frame using a struct instead of constants

Currently the caller-allocated portion of the stack frame is described
using constants, hardcoded values, and an ASCII drawing, making it
harder than necessary to ensure that everything is in sync.

Declare a struct and use offsetof() and offsetofend() macros to refer
to various values stored within the frame.

Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Link: https://lore.kernel.org/r/20250624121501.50536-3-iii@linux.ibm.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
arch/s390/net/bpf_jit.h [deleted file]
arch/s390/net/bpf_jit_comp.c