summaryrefslogtreecommitdiff
path: root/scripts/const_structs.checkpatch
diff options
context:
space:
mode:
authorKumar Kartikeya Dwivedi <memxor@gmail.com>2025-03-11 08:42:44 -0700
committerAlexei Starovoitov <ast@kernel.org>2025-03-15 11:48:59 -0700
commit1f375aef6cc0ae03ea714bff58ba7be1ca95997c (patch)
tree5bb1d1839e9873ec55d17db82d55021f1a529b42 /scripts/const_structs.checkpatch
parent38c6104e0bc7c8af20ab4897cb0504e3339e4fe4 (diff)
downloadkernel-1f375aef6cc0ae03ea714bff58ba7be1ca95997c.tar.gz
selftests/bpf: Fix arena_spin_lock compilation on PowerPC
Venkat reported a compilation error for BPF selftests on PowerPC [0]. The crux of the error is the following message: In file included from progs/arena_spin_lock.c:7: /root/bpf-next/tools/testing/selftests/bpf/bpf_arena_spin_lock.h:122:8: error: member reference base type '__attribute__((address_space(1))) u32' (aka '__attribute__((address_space(1))) unsigned int') is not a structure or union 122 | old = atomic_read(&lock->val); This is because PowerPC overrides the qspinlock type changing the lock->val member's type from atomic_t to u32. To remedy this, import the asm-generic version in the arena spin lock header, name it __qspinlock (since it's aliased to arena_spinlock_t, the actual name hardly matters), and adjust the selftest to not depend on the type in vmlinux.h. [0]: https://lore.kernel.org/bpf/7bc80a3b-d708-4735-aa3b-6a8c21720f9d@linux.ibm.com Fixes: 88d706ba7cc5 ("selftests/bpf: Introduce arena spin lock") Reported-by: Venkat Rao Bagalkote <venkat88@linux.ibm.com> Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Tested-by: Venkat Rao Bagalkote <venkat88@linux.ibm.com> Link: https://lore.kernel.org/bpf/20250311154244.3775505-1-memxor@gmail.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'scripts/const_structs.checkpatch')
0 files changed, 0 insertions, 0 deletions
>Mark Brown 2022-07-25arm64: Delay initialisation of cpuinfo_arm64::reg_{zcr,smcr}Marc Zyngier 2022-07-25Merge branch 'for-next/cpufeature' into for-next/coreWill Deacon 2022-07-25Merge branch 'for-next/sysregs' into for-next/coreWill Deacon 2022-07-20arm64/hwcap: Support FEAT_EBF16Mark Brown 2022-07-05arm64/sysreg: Standardise naming for CTR_EL0 fieldsMark Brown 2022-07-05arm64/cpuinfo: Remove references to reserved cache typeMark Brown 2022-06-23arm64/sme: Expose SMIDR through sysfsMark Brown 2022-05-04Merge branch kvm-arm64/wfxt into kvmarm-master/nextMarc Zyngier 2022-04-22arm64/sme: Identify supported SME vector lengths at bootMark Brown 2022-04-22arm64/sme: Basic enumeration supportMark Brown 2022-04-20arm64: Add HWCAP advertising FEAT_WFXTMarc Zyngier 2022-02-25arm64/mte: Add hwcap for asymmetric modeMark Brown 2021-12-13arm64: cpufeature: add HWCAP for FEAT_RPRESJoey Gouly 2021-12-13arm64: add ID_AA64ISAR2_EL1 sys registerJoey Gouly 2021-12-13arm64: cpufeature: add HWCAP for FEAT_AFPJoey Gouly 2021-10-19arm64: Add HWCAP for self-synchronising virtual counterMarc Zyngier