Blob Blame History Raw
From: Stanislav Fomichev <sdf@google.com>
Date: Thu, 6 Aug 2020 08:52:25 -0700
Subject: bpf: Add missing return to resolve_btfids
Patch-mainline: v5.9-rc1
Git-commit: d48556f45608921fa07cb882f9dd15a8a1203427
References: bsc#1177028

int sets_patch(struct object *obj) doesn't have a 'return 0' at the end.

Fixes: fbbb68de80a4 ("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
Acked-by: Gary Lin <glin@suse.com>
---
 tools/bpf/resolve_btfids/main.c |    1 +
 1 file changed, 1 insertion(+)

--- a/tools/bpf/resolve_btfids/main.c
+++ b/tools/bpf/resolve_btfids/main.c
@@ -622,6 +622,7 @@ static int sets_patch(struct object *obj
 
 		next = rb_next(next);
 	}
+	return 0;
 }
 
 static int symbols_patch(struct object *obj)