Commit 8ce93aa
bpf: Conditionally include dynptr copy kfuncs
Since commit a498ee7 ("bpf: Implement dynptr copy kfuncs"), if
CONFIG_BPF_EVENTS is not enabled, but BPF_SYSCALL and DEBUG_INFO_BTF are,
the build will break like so:
BTFIDS vmlinux.unstripped
WARN: resolve_btfids: unresolved symbol bpf_probe_read_user_str_dynptr
WARN: resolve_btfids: unresolved symbol bpf_probe_read_user_dynptr
WARN: resolve_btfids: unresolved symbol bpf_probe_read_kernel_str_dynptr
WARN: resolve_btfids: unresolved symbol bpf_probe_read_kernel_dynptr
WARN: resolve_btfids: unresolved symbol bpf_copy_from_user_task_str_dynptr
WARN: resolve_btfids: unresolved symbol bpf_copy_from_user_task_dynptr
WARN: resolve_btfids: unresolved symbol bpf_copy_from_user_str_dynptr
WARN: resolve_btfids: unresolved symbol bpf_copy_from_user_dynptr
make[2]: *** [scripts/Makefile.vmlinux:72: vmlinux.unstripped] Error 255
make[2]: *** Deleting file 'vmlinux.unstripped'
make[1]: *** [/repo/malin/upstream/linux/Makefile:1242: vmlinux] Error 2
make: *** [Makefile:248: __sub-make] Error 2
Guard these symbols with #ifdef CONFIG_BPF_EVENTS to resolve the problem.
Fixes: a498ee7 ("bpf: Implement dynptr copy kfuncs")
Reported-by: Yong Gu <[email protected]>
Acked-by: Mykyta Yatsenko <[email protected]>
Signed-off-by: Malin Jonsson <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>1 parent 7221b9c commit 8ce93aa
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4345 | 4345 | | |
4346 | 4346 | | |
4347 | 4347 | | |
| 4348 | + | |
4348 | 4349 | | |
4349 | 4350 | | |
4350 | 4351 | | |
| |||
4353 | 4354 | | |
4354 | 4355 | | |
4355 | 4356 | | |
| 4357 | + | |
4356 | 4358 | | |
4357 | 4359 | | |
4358 | 4360 | | |
| |||
0 commit comments