Skip to content

Commit 6e8ba49

Browse files
t-8chborkmann
authored andcommitted
kbuild/btf: Propagate CONFIG_WERROR to resolve_btfids
Use CONFIG_WERROR to also fail on warnings emitted by resolve_btfids. Allow the CI bots to prevent the introduction of new warnings. Signed-off-by: Thomas Weißschuh <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Acked-by: Jiri Olsa <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
1 parent b70b073 commit 6e8ba49

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

scripts/link-vmlinux.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,11 @@ vmlinux_link vmlinux
283283
# fill in BTF IDs
284284
if is_enabled CONFIG_DEBUG_INFO_BTF; then
285285
info BTFIDS vmlinux
286-
${RESOLVE_BTFIDS} vmlinux
286+
RESOLVE_BTFIDS_ARGS=""
287+
if is_enabled CONFIG_WERROR; then
288+
RESOLVE_BTFIDS_ARGS=" --fatal_warnings "
289+
fi
290+
${RESOLVE_BTFIDS} ${RESOLVE_BTFIDS_ARGS} vmlinux
287291
fi
288292

289293
mksysmap vmlinux System.map

0 commit comments

Comments
 (0)