diff options
| author | Andrii Nakryiko <[email protected]> | 2021-11-05 19:10:55 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2021-11-06 23:16:52 +0000 |
| commit | b8b5cb55f5d3f03cc1479a3768d68173a10359ad (patch) | |
| tree | 5e0516864195047339ee3183836dfaa4f0f2fce1 /tools/lib/bpf/libbpf_common.h | |
| parent | libbpf: Deprecate bpf_program__load() API (diff) | |
| download | kernel-b8b5cb55f5d3f03cc1479a3768d68173a10359ad.tar.gz kernel-b8b5cb55f5d3f03cc1479a3768d68173a10359ad.zip | |
libbpf: Fix non-C89 loop variable declaration in gen_loader.c
Fix the `int i` declaration inside the for statement. This is non-C89
compliant. See [0] for user report breaking BCC build.
[0] https://github.com/libbpf/libbpf/issues/403
Fixes: 18f4fccbf314 ("libbpf: Update gen_loader to emit BTF_KIND_FUNC relocations")
Signed-off-by: Andrii Nakryiko <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Acked-by: Kumar Kartikeya Dwivedi <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/lib/bpf/libbpf_common.h')
0 files changed, 0 insertions, 0 deletions
