summaryrefslogtreecommitdiff
path: root/include/linux/bpf_verifier.h
diff options
context:
space:
mode:
authorYonghong Song <yhs@fb.com>2021-02-26 23:49:24 +0300
committerAlexei Starovoitov <ast@kernel.org>2021-02-27 00:23:52 +0300
commit282a0f46d6cda7cf843cd77c9b53b4d1d9e31302 (patch)
tree3c7f7f1ac22b03ed5bc01fda150434cbcc1c3d00 /include/linux/bpf_verifier.h
parent1435137573f9c75455903e8cd01f84d6e092ea16 (diff)
downloadlinux-282a0f46d6cda7cf843cd77c9b53b4d1d9e31302.tar.xz
bpf: Change return value of verifier function add_subprog()
Currently, verifier function add_subprog() returns 0 for success and negative value for failure. Change the return value to be the subprog number for success. This functionality will be used in the next patch to save a call to find_subprog(). Signed-off-by: Yonghong Song <yhs@fb.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Acked-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/20210226204924.3884848-1-yhs@fb.com
Diffstat (limited to 'include/linux/bpf_verifier.h')
0 files changed, 0 insertions, 0 deletions