]> git.ipfire.org Git - thirdparty/linux.git/commit
selftests/bpf: Rename libarena malloc/free methods
authorEmil Tsalapatis <emil@etsalapatis.com>
Tue, 28 Apr 2026 13:42:52 +0000 (06:42 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 28 Apr 2026 14:40:21 +0000 (07:40 -0700)
commit9f5b3ffc3f1dac7204e32eeeff84bc5cc55c393e
treefa7dc170163aeed7d9db8cfaec1386ad5352025d
parentcfeddb4244268c246d67cbe50269a9475cb112fc
selftests/bpf: Rename libarena malloc/free methods

The s390 architecture uses the token "free" for an enum, conflicting
with the malloc/free definitions. Rename the calls to arena_malloc and
arena_free instead to prevent collisions.

Reported-by: Ihor Solodrai <ihor.solodrai@linux.dev>
Signed-off-by: Emil Tsalapatis <etsal@meta.com>
Fixes: 86426a28c52d ("selftests/bpf: Add buddy allocator for libarena")
Acked-by: Ihor Solodrai <ihor.solodrai@linux.dev>
Link: https://lore.kernel.org/r/20260428134252.2783519-1-etsal@meta.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/libarena/Makefile
tools/testing/selftests/bpf/libarena/include/libarena/common.h
tools/testing/selftests/bpf/libarena/src/common.bpf.c