linux/tools/testing/selftests/bpf/libarena/selftests
Yonghong Song ee1bcf8271
selftests/bpf: Rename libarena struct bitmap to struct arena_bitmap
When building bpf selftest with latest bpf-next, I got the following failure:

  In file included from /home/yhs/work/bpf-next/tools/testing/selftests/bpf/libarena/selftests/test_parallel_bitmap.bpf.c:8:
  /home/yhs/work/bpf-next/tools/testing/selftests/bpf/libarena/include/libarena/bitmap.h:11:8: error: redefinition of
        'bitmap'
     11 | struct bitmap {
        |        ^
  /home/yhs/work/bpf-next/tools/testing/selftests/bpf/tools/include/vmlinux.h:51320:8: note: previous definition is here
   51320 | struct bitmap {
         |        ^

The vmlinux.h struct bitmap comes from drivers/md/md-bitmap.c:
  struct bitmap {
	struct bitmap_counts { ... }
	...
  }

To fix the issue, I renamed libarena struct bitmap to arena_bitmap to avoid the conflict.

Signed-off-by: Yonghong Song <yonghong.song@linux.dev>
Reviewed-by: Emil Tsalapatis <emil@etsalapatis.com>
Link: https://lore.kernel.org/bpf/20260707220136.910374-1-yonghong.song@linux.dev
Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
2026-07-08 05:15:34 +02:00
..
test_asan_buddy.bpf.c selftests/bpf: libarena: Fix can-loop zero variable definition 2026-07-07 18:08:47 +02:00
test_asan_common.h selftests/bpf: libarena: Replace leftover st_ prefix with test_ 2026-07-07 18:08:43 +02:00
test_bitmap.bpf.c selftests/bpf: Rename libarena struct bitmap to struct arena_bitmap 2026-07-08 05:15:34 +02:00
test_buddy.bpf.c selftests/bpf: libarena: Fix can-loop zero variable definition 2026-07-07 18:08:47 +02:00
test_parallel_bitmap.bpf.c selftests/bpf: Rename libarena struct bitmap to struct arena_bitmap 2026-07-08 05:15:34 +02:00
test_parallel_spmc.bpf.c selftests/bpf: libarena: Fix can-loop zero variable definition 2026-07-07 18:08:47 +02:00
test_progs_compat.h selftests/bpf: Reuse stderr parsing for libarena ASAN tests 2026-04-26 18:12:22 -07:00
test_rbtree.bpf.c selftests/bpf: libarena: Add rbtree data structure 2026-06-05 20:32:21 -07:00
test_spmc.bpf.c selftests/bpf: libarena: Add spmc queue data structure 2026-06-05 20:32:21 -07:00