linux-next: build failure after merge of the origin tree
Subsystems (2)
Mark Brown
maintainerHi all,
After merging the origin tree, today's linux-next build (perf.log perf) failed like this:
util/btf.c: In function '__btf_type__find_member_by_name':util/btf.c:19:43: error: comparison of integer expressions of different signedness: 'int' and '__u32' {aka 'unsigned int'} [-Werror=sign-compare]
19 | for (i = 0, m = btf_members(t); i < btf_vlen(t); i++, m++) {
| ^
cc1: all warnings being treated as errors
Triggered by commit:
f7a6b9eaff3e6 (bpf: Extend BTF UAPI vlen, kinds to use unused bits)
This was dealt with in -next as part of a conflict resolution, converting i to a u32, but that doesn't seem to have been picked up anywhere. I will apply the fixup below (which I'll also send separately).
From 47cd4a2a08f874af25930c14437633af43a4a69c Mon Sep 17 00:00:00 2001
From: Mark Brown <[email protected]>
Date: Wed, 17 Jun 2026 13:42:10 +0100
Subject: [PATCH] perf: Fix up build failure due to bpf changes
Fix
util/btf.c: In function '__btf_type__find_member_by_name':util/btf.c:19:43: error: comparison of integer expressions of different signedness: 'int' and '__u32' {aka 'unsigned int'} [-Werror=sign-compare]
19 | for (i = 0, m = btf_members(t); i < btf_vlen(t); i++, m++) {
| ^
cc1: all warnings being treated as errors
by making the variable the same type as the function.
--- tools/perf/util/btf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/perf/util/btf.c +1 -1
@@ -14,7 +14,7 @@ const struct btf_member *__btf_type__find_member_by_name(struct btf *btf, {const struct btf_type *t =btf__type_by_id (btf, type_id);const struct btf_member *m; -int i; +u32 i;for (i =0 , m =btf_members (t); i <btf_vlen (t); i++, m++) {const char *current_member_name =btf__name_by_offset (btf, m->name_off);
Signature · 1 line
2.47.3
Mark Brown
maintainerQuoted 11 lines · Mark Brown
Hi all,
After merging the origin tree, today's linux-next build (perf.log perf) failed like this:
util/btf.c: In function '__btf_type__find_member_by_name':util/btf.c:19:43: error: comparison of integer expressions of different signedness: 'int' and '__u32' {aka 'unsigned int'} [-Werror=sign-compare]
19 | for (i = 0, m =btf_members(t); i <btf_vlen(t); i++, m++) {
| ^
cc1: all warnings being treated as errors
Quoted 3 lines
Triggered by commit:
f7a6b9eaff3e6(bpf: Extend BTF UAPI vlen, kinds to use unused bits)
This issue is still present today.
Quoted 12 lines · Mark Brown
Quoted 11 lines · Mark Brown
Hi all,
After merging the origin tree, today's linux-next build (perf.log perf) failed like this:
util/btf.c: In function '__btf_type__find_member_by_name':util/btf.c:19:43: error: comparison of integer expressions of different signedness: 'int' and '__u32' {aka 'unsigned int'} [-Werror=sign-compare]
19 | for (i = 0, m =btf_members(t); i <btf_vlen(t); i++, m++) {
| ^
cc1: all warnings being treated as errors
Quoted 5 lines
Quoted 3 lines
Triggered by commit:
f7a6b9eaff3e6(bpf: Extend BTF UAPI vlen, kinds to use unused bits)This issue is still present today.
thanks for catching this; I sent [1] which should resolve the failure.
Alan
Mark Brown
maintainerQuoted 1 line · Alan Maguire
thanks for catching this; I sent [1] which should resolve the failure.
Thanks, I also sent
https://lore.kernel.org/r/[email protected]
Arnaldo said he'd applied it but it's not in Linus' tree yet.