Skip to content

Commit

Permalink
kbuild: propagate CONFIG_WERROR to resolve_btfids
Browse files Browse the repository at this point in the history
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]>
Acked-by: Jiri Olsa <[email protected]>
  • Loading branch information
t-8ch authored and Kernel Patches Daemon committed Dec 3, 2024
1 parent 8959ea1 commit f6ca550
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/link-vmlinux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,11 @@ vmlinux_link vmlinux
# fill in BTF IDs
if is_enabled CONFIG_DEBUG_INFO_BTF; then
info BTFIDS vmlinux
${RESOLVE_BTFIDS} vmlinux
RESOLVE_BTFIDS_ARGS=""
if is_enabled CONFIG_WERROR; then
RESOLVE_BTFIDS_ARGS=" --fatal-warnings "
fi
${RESOLVE_BTFIDS} ${RESOLVE_BTFIDS_ARGS} vmlinux
fi

mksysmap vmlinux System.map
Expand Down

0 comments on commit f6ca550

Please sign in to comment.