]> git.baikalelectronics.ru Git - kernel.git/commitdiff
bpf: Add missing return to resolve_btfids
authorStanislav Fomichev <sdf@google.com>
Thu, 6 Aug 2020 15:52:25 +0000 (08:52 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 6 Aug 2020 23:51:11 +0000 (16:51 -0700)
int sets_patch(struct object *obj) doesn't have a 'return 0' at the end.

Fixes: 8b83ae430117 ("bpf: Add resolve_btfids tool to resolve BTF IDs in ELF object")
Signed-off-by: Stanislav Fomichev <sdf@google.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20200806155225.637202-1-sdf@google.com
tools/bpf/resolve_btfids/main.c

index 52d883325a2368a82731e7b01bc2ecf034cfd436..4d9ecb97586224d645626a32365647549ef36f2a 100644 (file)
@@ -566,6 +566,7 @@ static int sets_patch(struct object *obj)
 
                next = rb_next(next);
        }
+       return 0;
 }
 
 static int symbols_patch(struct object *obj)