projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b70b073
)
kbuild/btf: Propagate CONFIG_WERROR to resolve_btfids
author
Thomas Weißschuh
<linux@weissschuh.net>
Wed, 4 Dec 2024 19:37:45 +0000
(20:37 +0100)
committer
Daniel Borkmann
<daniel@iogearbox.net>
Tue, 10 Dec 2024 16:57:42 +0000
(17:57 +0100)
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
scripts/link-vmlinux.sh
patch
|
blob
|
blame
|
history
diff --git
a/scripts/link-vmlinux.sh
b/scripts/link-vmlinux.sh
index d853ddb3b28c1238ec9079ebbbe77df26980a0a1..56a077d204cfa1b67609cf0ea4a8ebe5f5884f03 100755
(executable)
--- 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