]> www.infradead.org Git - nvme.git/commit
libbpf: BTF relocation followup fixing naming, loop logic
authorAlan Maguire <alan.maguire@oracle.com>
Thu, 20 Jun 2024 09:17:28 +0000 (10:17 +0100)
committerAndrii Nakryiko <andrii@kernel.org>
Fri, 21 Jun 2024 21:45:07 +0000 (14:45 -0700)
commitd1cf840854bb603c0718a011bc993f69f2df014e
tree00e35f54f2c4eab841b444bc7352d1aa682d917a
parentcd387ce54834bc7808082c471fd745ce85a0e21f
libbpf: BTF relocation followup fixing naming, loop logic

Use less verbose names in BTF relocation code and fix off-by-one error
and typo in btf_relocate.c.  Simplify loop over matching distilled
types, moving from assigning a _next value in loop body to moving
match check conditions into the guard.

Suggested-by: Andrii Nakryiko <andrii.nakryiko@gmail.com>
Signed-off-by: Alan Maguire <alan.maguire@oracle.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Eduard Zingerman <eddyz87@gmail.com>
Link: https://lore.kernel.org/bpf/20240620091733.1967885-2-alan.maguire@oracle.com
tools/lib/bpf/btf_relocate.c