Skip to content

Commit c980dc9

Browse files
masahir0yAlexei Starovoitov
authored andcommitted
btf: remove redundant CONFIG_BPF test in scripts/link-vmlinux.sh
CONFIG_DEBUG_INFO_BTF depends on CONFIG_BPF_SYSCALL, which in turn selects CONFIG_BPF. When CONFIG_DEBUG_INFO_BTF=y, CONFIG_BPF=y is always met. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Reviewed-by: Alan Maguire <alan.maguire@oracle.com> Acked-by: Andrii Nakryiko <andrii@kernel.org> Reviewed-by: Nathan Chancellor <nathan@kernel.org> Link: https://lore.kernel.org/r/20240913173759.1316390-1-masahiroy@kernel.org Signed-off-by: Alexei Starovoitov <ast@kernel.org>
1 parent ca7a5ba commit c980dc9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/link-vmlinux.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ strip_debug=
283283
vmlinux_link vmlinux
284284

285285
# fill in BTF IDs
286-
if is_enabled CONFIG_DEBUG_INFO_BTF && is_enabled CONFIG_BPF; then
286+
if is_enabled CONFIG_DEBUG_INFO_BTF; then
287287
info BTFIDS vmlinux
288288
${RESOLVE_BTFIDS} vmlinux
289289
fi

0 commit comments

Comments
 (0)