Re: [PATCH perf] perf: Fix btf_vlen() signedness errors
From: Arnaldo Melo
Date: Mon Jun 22 2026 - 07:09:57 EST
On June 22, 2026 7:53:40 AM GMT-03:00, Mark Brown <broonie@xxxxxxxxxx> wrote:
>On Mon, Jun 22, 2026 at 11:34:18AM +0100, Alan Maguire wrote:
>> Commit f7a6b9eaff3e6 ("bpf: Extend BTF UAPI vlen, kinds to use unused bits")
>>
>> extended the return value for btf_vlen() to __u32, triggering
>> errors for cases where an int was used to store return value.
>> Fix these cases for perf as was done for other libbpf consumers.
>
>I already sent:
>
> https://lore.kernel.org/r/20260617130038.34534-1-broonie@xxxxxxxxxx
>
>which I have been using as a fixup since I originally reported the issue
>since Linus' tree is broken, Arnaldo said he'd applied it to the
>perf-tools-next branch but it has not yet appeared in Linus' tree (and
>it looks like he forgot to push it so his copy isn't getting picked up
>in the merge either, the last update was on the 15th).
Its here:
<https://git.kernel.org/pub/scm/linux/kernel/git/perf/perf-tools-next.git/commit/?h=perf-tools-next&id=776bd9ac834556ab6ff6b7ef74b71ac53d37855e>
I think Alan's latest patch has one more hunk, I'll get that one in and then send the pull request to Linus today,
- Arnaldo