]> git.baikalelectronics.ru Git - kernel.git/commit
kbuild: handle old pahole more gracefully when generating BTF
authorAndrii Nakryiko <andriin@fb.com>
Mon, 15 Apr 2019 21:58:39 +0000 (14:58 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 16 Apr 2019 07:47:50 +0000 (09:47 +0200)
commit7ada1ea23ab18915f9b3e1e7848acf6d40c717ba
tree7feb292fb83e6691bd4eac74a285a20370e2121e
parentd547cb1e522a837b381f45c7fae05124db660459
kbuild: handle old pahole more gracefully when generating BTF

When CONFIG_DEBUG_INFO_BTF is enabled but available version of pahole is too
old to support BTF generation, build script is supposed to emit warning and
proceed with the build. Due to using exit instead of return from BASH function,
existing handling code prematurely exits exit code 0, not completing some of
the build steps. This patch fixes issue by correctly returning just from
gen_btf() function only.

Fixes: 7976b4a16d31 ("kbuild: add ability to generate BTF type info for vmlinux")
Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Daniel Borkmann <daniel@iogearbox.net>
Cc: Alexei Starovoitov <ast@fb.com>
Cc: Yonghong Song <yhs@fb.com>
Cc: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Acked-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
scripts/link-vmlinux.sh