The libarena code currently specifies a license section in multiple locations. These sections are a) inaccurate, since the license is actually Dual BSD/GPL, not pure GPL, and b) superfluous, since the files already have the license on them and libarena is distributed as a source. Remove the license strings: The code that includes the the libarena sources should be the one with the license section. Signed-off-by: Emil Tsalapatis --- tools/testing/selftests/bpf/libarena/src/asan.bpf.c | 2 -- tools/testing/selftests/bpf/libarena/src/buddy.bpf.c | 2 -- tools/testing/selftests/bpf/libarena/src/common.bpf.c | 2 -- 3 files changed, 6 deletions(-) diff --git a/tools/testing/selftests/bpf/libarena/src/asan.bpf.c b/tools/testing/selftests/bpf/libarena/src/asan.bpf.c index de656b69d13a..8a0f06110606 100644 --- a/tools/testing/selftests/bpf/libarena/src/asan.bpf.c +++ b/tools/testing/selftests/bpf/libarena/src/asan.bpf.c @@ -532,5 +532,3 @@ __weak __noasan int asan_init(struct asan_init_args *args) #pragma clang attribute pop #endif /* BPF_ARENA_ASAN */ - -__weak char _license[] SEC("license") = "GPL"; diff --git a/tools/testing/selftests/bpf/libarena/src/buddy.bpf.c b/tools/testing/selftests/bpf/libarena/src/buddy.bpf.c index 2490ab1396de..552ce87875e3 100644 --- a/tools/testing/selftests/bpf/libarena/src/buddy.bpf.c +++ b/tools/testing/selftests/bpf/libarena/src/buddy.bpf.c @@ -899,5 +899,3 @@ __weak int buddy_free(struct buddy __arena *buddy, void __arena *addr) return ret; } - -__weak char _license[] SEC("license") = "GPL"; diff --git a/tools/testing/selftests/bpf/libarena/src/common.bpf.c b/tools/testing/selftests/bpf/libarena/src/common.bpf.c index d1af60b81838..d859bd538c52 100644 --- a/tools/testing/selftests/bpf/libarena/src/common.bpf.c +++ b/tools/testing/selftests/bpf/libarena/src/common.bpf.c @@ -85,5 +85,3 @@ __weak void arena_free(void __arena *ptr) { buddy_free(&buddy, ptr); } - -char _license[] SEC("license") = "GPL"; -- 2.52.0