diff options
author | Thomas Weißschuh <linux@weissschuh.net> | 2024-12-04 20:37:45 +0100 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2024-12-10 17:57:42 +0100 |
commit | 6e8ba494d87d05cba49224d2068dd313190adbd0 (patch) | |
tree | 7644d9c6f137baf04941fa52b059c107d60f9f78 /scripts/link-vmlinux.sh | |
parent | b70b073979ebf7a5271e7ce655ea1c25b4673f04 (diff) |
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 <linux@weissschuh.net>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Link: https://lore.kernel.org/bpf/20241204-resolve_btfids-v3-2-e6a279a74cfd@weissschuh.net
Diffstat (limited to 'scripts/link-vmlinux.sh')
-rwxr-xr-x | scripts/link-vmlinux.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/link-vmlinux.sh b/scripts/link-vmlinux.sh index d853ddb3b28c..56a077d204cf 100755 --- a/scripts/link-vmlinux.sh +++ b/scripts/link-vmlinux.sh @@ -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 |