Commit 77150c3
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.
Reported-by: Yong Gu <[email protected]>
Acked-by: Mykyta Yatsenko <[email protected]>
Signed-off-by: Malin Jonsson <[email protected]>1 parent 4d1f3ab commit 77150c3
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4395 | 4395 | | |
4396 | 4396 | | |
4397 | 4397 | | |
| 4398 | + | |
4398 | 4399 | | |
4399 | 4400 | | |
4400 | 4401 | | |
| |||
4403 | 4404 | | |
4404 | 4405 | | |
4405 | 4406 | | |
| 4407 | + | |
4406 | 4408 | | |
4407 | 4409 | | |
4408 | 4410 | | |
| |||
0 commit comments