====== Cleaning ====== ../../../scripts/Makefile.include:4: *** O=build_tools/ does not exist. Stop. make[1]: *** nsfs: No such file or directory. Stop. ====== Baseline building the tree ====== In file included from iommufd_utils.h:11, from iommufd.c:12: In function ‘_test_cmd_get_hw_info’, inlined from ‘iommufd_ioas_get_hw_info’ at iommufd.c:779:3, inlined from ‘wrapper_iommufd_ioas_get_hw_info’ at iommufd.c:752:1: iommufd_utils.h:804:37: warning: array subscript ‘struct iommu_test_hw_info[0]’ is partly outside array bounds of ‘struct iommu_test_hw_info_buffer_smaller[1]’ [-Warray-bounds=] 804 | assert(!info->flags); | ~~~~^~~~~~~ iommufd.c: In function ‘wrapper_iommufd_ioas_get_hw_info’: iommufd.c:761:11: note: object ‘buffer_smaller’ of size 4 761 | } buffer_smaller; | ^~~~~~~~~~~~~~ mount_setattr_test.c:176:19: error: redefinition of ‘sys_open_tree’ 176 | static inline int sys_open_tree(int dfd, const char *filename, unsigned int flags) | ^~~~~~~~~~~~~ In file included from mount_setattr_test.c:23: ../filesystems/overlayfs/wrappers.h:59:19: note: previous definition of ‘sys_open_tree’ with type ‘int(int, const char *, unsigned int)’ 59 | static inline int sys_open_tree(int dfd, const char *filename, unsigned int flags) | ^~~~~~~~~~~~~ make[1]: *** [../lib.mk:222: /home/nipa/bpf-next/wt-0/build_tools/kselftest/mount_setattr/mount_setattr_test] Error 1 make[1]: *** nsfs: No such file or directory. Stop. pid_max.c: In function ‘pid_max_cb’: pid_max.c:42:15: error: implicit declaration of function ‘mount’ [-Wimplicit-function-declaration] 42 | ret = mount("", "/", NULL, MS_PRIVATE | MS_REC, 0); | ^~~~~ pid_max.c:42:36: error: ‘MS_PRIVATE’ undeclared (first use in this function); did you mean ‘MAP_PRIVATE’? 42 | ret = mount("", "/", NULL, MS_PRIVATE | MS_REC, 0); | ^~~~~~~~~~ | MAP_PRIVATE pid_max.c:42:36: note: each undeclared identifier is reported only once for each function it appears in pid_max.c:42:49: error: ‘MS_REC’ undeclared (first use in this function) 42 | ret = mount("", "/", NULL, MS_PRIVATE | MS_REC, 0); | ^~~~~~ pid_max.c:48:9: error: implicit declaration of function ‘umount2’; did you mean ‘SYS_umount2’? [-Wimplicit-function-declaration] 48 | umount2("/proc", MNT_DETACH); | ^~~~~~~ | SYS_umount2 pid_max.c:48:26: error: ‘MNT_DETACH’ undeclared (first use in this function) 48 | umount2("/proc", MNT_DETACH); | ^~~~~~~~~~ pid_max.c: In function ‘pid_max_nested_inner’: pid_max.c:88:36: error: ‘MS_PRIVATE’ undeclared (first use in this function); did you mean ‘MAP_PRIVATE’? 88 | ret = mount("", "/", NULL, MS_PRIVATE | MS_REC, 0); | ^~~~~~~~~~ | MAP_PRIVATE pid_max.c:88:49: error: ‘MS_REC’ undeclared (first use in this function) 88 | ret = mount("", "/", NULL, MS_PRIVATE | MS_REC, 0); | ^~~~~~ pid_max.c:94:26: error: ‘MNT_DETACH’ undeclared (first use in this function) 94 | umount2("/proc", MNT_DETACH); | ^~~~~~~~~~ pid_max.c: In function ‘pid_max_nested_outer’: pid_max.c:163:36: error: ‘MS_PRIVATE’ undeclared (first use in this function); did you mean ‘MAP_PRIVATE’? 163 | ret = mount("", "/", NULL, MS_PRIVATE | MS_REC, 0); | ^~~~~~~~~~ | MAP_PRIVATE pid_max.c:163:49: error: ‘MS_REC’ undeclared (first use in this function) 163 | ret = mount("", "/", NULL, MS_PRIVATE | MS_REC, 0); | ^~~~~~ pid_max.c:169:26: error: ‘MNT_DETACH’ undeclared (first use in this function) 169 | umount2("/proc", MNT_DETACH); | ^~~~~~~~~~ pid_max.c: In function ‘pid_max_nested_limit_inner’: pid_max.c:232:36: error: ‘MS_PRIVATE’ undeclared (first use in this function); did you mean ‘MAP_PRIVATE’? 232 | ret = mount("", "/", NULL, MS_PRIVATE | MS_REC, 0); | ^~~~~~~~~~ | MAP_PRIVATE pid_max.c:232:49: error: ‘MS_REC’ undeclared (first use in this function) 232 | ret = mount("", "/", NULL, MS_PRIVATE | MS_REC, 0); | ^~~~~~ pid_max.c:238:26: error: ‘MNT_DETACH’ undeclared (first use in this function) 238 | umount2("/proc", MNT_DETACH); | ^~~~~~~~~~ pid_max.c: In function ‘pid_max_nested_limit_outer’: pid_max.c:289:36: error: ‘MS_PRIVATE’ undeclared (first use in this function); did you mean ‘MAP_PRIVATE’? 289 | ret = mount("", "/", NULL, MS_PRIVATE | MS_REC, 0); | ^~~~~~~~~~ | MAP_PRIVATE pid_max.c:289:49: error: ‘MS_REC’ undeclared (first use in this function) 289 | ret = mount("", "/", NULL, MS_PRIVATE | MS_REC, 0); | ^~~~~~ pid_max.c:295:26: error: ‘MNT_DETACH’ undeclared (first use in this function) 295 | umount2("/proc", MNT_DETACH); | ^~~~~~~~~~ make[1]: *** [../lib.mk:222: /home/nipa/bpf-next/wt-0/build_tools/kselftest/pid_namespace/pid_max] Error 1 make[1]: *** Waiting for unfinished jobs.... In file included from kublk.c:6: kublk.h:26:10: fatal error: liburing.h: No such file or directory 26 | #include | ^~~~~~~~~~~~ compilation terminated. In file included from null.c:3: kublk.h:26:10: fatal error: liburing.h: No such file or directory 26 | #include | ^~~~~~~~~~~~ compilation terminated. In file included from file_backed.c:3: kublk.h:26:10: fatal error: liburing.h: No such file or directory 26 | #include | ^~~~~~~~~~~~ compilation terminated. In file included from common.c:3: kublk.h:26:10: fatal error: liburing.h: No such file or directory 26 | #include | ^~~~~~~~~~~~ compilation terminated. In file included from stripe.c:3: kublk.h:26:10: fatal error: liburing.h: No such file or directory 26 | #include | ^~~~~~~~~~~~ compilation terminated. In file included from fault_inject.c:11: kublk.h:26:10: fatal error: liburing.h: No such file or directory 26 | #include | ^~~~~~~~~~~~ compilation terminated. make[1]: *** [../lib.mk:222: /home/nipa/bpf-next/wt-0/build_tools/kselftest/ublk/kublk] Error 1 ====== Building the tree before the patch ====== mount_setattr_test.c:176:19: error: redefinition of ‘sys_open_tree’ 176 | static inline int sys_open_tree(int dfd, const char *filename, unsigned int flags) | ^~~~~~~~~~~~~ In file included from mount_setattr_test.c:23: ../filesystems/overlayfs/wrappers.h:59:19: note: previous definition of ‘sys_open_tree’ with type ‘int(int, const char *, unsigned int)’ 59 | static inline int sys_open_tree(int dfd, const char *filename, unsigned int flags) | ^~~~~~~~~~~~~ make[1]: *** [../lib.mk:222: /home/nipa/bpf-next/wt-0/build_tools/kselftest/mount_setattr/mount_setattr_test] Error 1 make[1]: *** nsfs: No such file or directory. Stop. pid_max.c: In function ‘pid_max_cb’: pid_max.c:42:15: error: implicit declaration of function ‘mount’ [-Wimplicit-function-declaration] 42 | ret = mount("", "/", NULL, MS_PRIVATE | MS_REC, 0); | ^~~~~ pid_max.c:42:36: error: ‘MS_PRIVATE’ undeclared (first use in this function); did you mean ‘MAP_PRIVATE’? 42 | ret = mount("", "/", NULL, MS_PRIVATE | MS_REC, 0); | ^~~~~~~~~~ | MAP_PRIVATE pid_max.c:42:36: note: each undeclared identifier is reported only once for each function it appears in pid_max.c:42:49: error: ‘MS_REC’ undeclared (first use in this function) 42 | ret = mount("", "/", NULL, MS_PRIVATE | MS_REC, 0); | ^~~~~~ pid_max.c:48:9: error: implicit declaration of function ‘umount2’; did you mean ‘SYS_umount2’? [-Wimplicit-function-declaration] 48 | umount2("/proc", MNT_DETACH); | ^~~~~~~ | SYS_umount2 pid_max.c:48:26: error: ‘MNT_DETACH’ undeclared (first use in this function) 48 | umount2("/proc", MNT_DETACH); | ^~~~~~~~~~ pid_max.c: In function ‘pid_max_nested_inner’: pid_max.c:88:36: error: ‘MS_PRIVATE’ undeclared (first use in this function); did you mean ‘MAP_PRIVATE’? 88 | ret = mount("", "/", NULL, MS_PRIVATE | MS_REC, 0); | ^~~~~~~~~~ | MAP_PRIVATE pid_max.c:88:49: error: ‘MS_REC’ undeclared (first use in this function) 88 | ret = mount("", "/", NULL, MS_PRIVATE | MS_REC, 0); | ^~~~~~ pid_max.c:94:26: error: ‘MNT_DETACH’ undeclared (first use in this function) 94 | umount2("/proc", MNT_DETACH); | ^~~~~~~~~~ pid_max.c: In function ‘pid_max_nested_outer’: pid_max.c:163:36: error: ‘MS_PRIVATE’ undeclared (first use in this function); did you mean ‘MAP_PRIVATE’? 163 | ret = mount("", "/", NULL, MS_PRIVATE | MS_REC, 0); | ^~~~~~~~~~ | MAP_PRIVATE pid_max.c:163:49: error: ‘MS_REC’ undeclared (first use in this function) 163 | ret = mount("", "/", NULL, MS_PRIVATE | MS_REC, 0); | ^~~~~~ pid_max.c:169:26: error: ‘MNT_DETACH’ undeclared (first use in this function) 169 | umount2("/proc", MNT_DETACH); | ^~~~~~~~~~ pid_max.c: In function ‘pid_max_nested_limit_inner’: pid_max.c:232:36: error: ‘MS_PRIVATE’ undeclared (first use in this function); did you mean ‘MAP_PRIVATE’? 232 | ret = mount("", "/", NULL, MS_PRIVATE | MS_REC, 0); | ^~~~~~~~~~ | MAP_PRIVATE pid_max.c:232:49: error: ‘MS_REC’ undeclared (first use in this function) 232 | ret = mount("", "/", NULL, MS_PRIVATE | MS_REC, 0); | ^~~~~~ pid_max.c:238:26: error: ‘MNT_DETACH’ undeclared (first use in this function) 238 | umount2("/proc", MNT_DETACH); | ^~~~~~~~~~ pid_max.c: In function ‘pid_max_nested_limit_outer’: pid_max.c:289:36: error: ‘MS_PRIVATE’ undeclared (first use in this function); did you mean ‘MAP_PRIVATE’? 289 | ret = mount("", "/", NULL, MS_PRIVATE | MS_REC, 0); | ^~~~~~~~~~ | MAP_PRIVATE pid_max.c:289:49: error: ‘MS_REC’ undeclared (first use in this function) 289 | ret = mount("", "/", NULL, MS_PRIVATE | MS_REC, 0); | ^~~~~~ pid_max.c:295:26: error: ‘MNT_DETACH’ undeclared (first use in this function) 295 | umount2("/proc", MNT_DETACH); | ^~~~~~~~~~ make[1]: *** [../lib.mk:222: /home/nipa/bpf-next/wt-0/build_tools/kselftest/pid_namespace/pid_max] Error 1 In file included from kublk.c:6: kublk.h:26:10: fatal error: liburing.h: No such file or directory 26 | #include | ^~~~~~~~~~~~ compilation terminated. In file included from null.c:3: kublk.h:26:10: fatal error: liburing.h: No such file or directory 26 | #include | ^~~~~~~~~~~~ compilation terminated. In file included from file_backed.c:3: kublk.h:26:10: fatal error: liburing.h: No such file or directory 26 | #include | ^~~~~~~~~~~~ compilation terminated. In file included from common.c:3: kublk.h:26:10: fatal error: liburing.h: No such file or directory 26 | #include | ^~~~~~~~~~~~ compilation terminated. In file included from stripe.c:3: kublk.h:26:10: fatal error: liburing.h: No such file or directory 26 | #include | ^~~~~~~~~~~~ compilation terminated. In file included from fault_inject.c:11: kublk.h:26:10: fatal error: liburing.h: No such file or directory 26 | #include | ^~~~~~~~~~~~ compilation terminated. make[1]: *** [../lib.mk:222: /home/nipa/bpf-next/wt-0/build_tools/kselftest/ublk/kublk] Error 1 ====== Checking if tree is clean ====== ?? arch/x86/Makefile.orig ?? arch/x86/Makefile.rej ====== Building the tree with the patch ====== skeleton/stream.bpf.c:29:11: error: call to undeclared function 'bpf_prog_stream_get'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 29 | stream = bpf_prog_stream_get(stream_id, prog_id); | ^ skeleton/stream.bpf.c:29:11: note: did you mean 'bpf_stream_get'? /home/nipa/bpf-next/wt-0/build_tools/kselftest/hid/tools/build/bpftool/bootstrap/libbpf/include/bpf/bpf_helpers.h:319:27: note: 'bpf_stream_get' declared here 319 | extern struct bpf_stream *bpf_stream_get(int stream_id, void *aux__ign) __weak __ksym; | ^ skeleton/stream.bpf.c:29:9: error: incompatible integer to pointer conversion assigning to 'struct bpf_stream *' from 'int' [-Wint-conversion] 29 | stream = bpf_prog_stream_get(stream_id, prog_id); | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ skeleton/stream.bpf.c:37:10: error: call to undeclared function 'bpf_stream_next_elem'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 37 | elem = bpf_stream_next_elem(stream); | ^ skeleton/stream.bpf.c:37:8: error: incompatible integer to pointer conversion assigning to 'struct bpf_stream_elem *' from 'int' [-Wint-conversion] 37 | elem = bpf_stream_next_elem(stream); | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ skeleton/stream.bpf.c:40:14: error: incomplete definition of type 'struct bpf_stream_elem' 40 | size = elem->mem_slice.len; | ~~~~^ skeleton/stream.bpf.c:24:9: note: forward declaration of 'struct bpf_stream_elem' 24 | struct bpf_stream_elem *elem; | ^ skeleton/stream.bpf.c:42:7: error: call to undeclared function 'bpf_dynptr_from_mem_slice'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 42 | if (bpf_dynptr_from_mem_slice(&elem->mem_slice, 0, &src_dptr)) | ^ skeleton/stream.bpf.c:42:7: note: did you mean 'bpf_dynptr_from_skb'? /home/nipa/bpf-next/wt-0/build_tools/kselftest/hid/tools/build/bpftool/vmlinux.h:158934:12: note: 'bpf_dynptr_from_skb' declared here 158934 | extern int bpf_dynptr_from_skb(struct __sk_buff *s, u64 flags, struct bpf_dynptr *ptr__uninit) __weak __ksym; | ^ skeleton/stream.bpf.c:42:38: error: incomplete definition of type 'struct bpf_stream_elem' 42 | if (bpf_dynptr_from_mem_slice(&elem->mem_slice, 0, &src_dptr)) | ~~~~^ skeleton/stream.bpf.c:24:9: note: forward declaration of 'struct bpf_stream_elem' 24 | struct bpf_stream_elem *elem; | ^ skeleton/stream.bpf.c:46:7: error: call to undeclared function 'bpf_dynptr_copy'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 46 | if (bpf_dynptr_copy(&dst_dptr, 0, &src_dptr, 0, size)) | ^ skeleton/stream.bpf.c:46:7: note: did you mean 'bpf_dynptr_clone'? /home/nipa/bpf-next/wt-0/build_tools/kselftest/hid/tools/build/bpftool/vmlinux.h:158933:12: note: 'bpf_dynptr_clone' declared here 158933 | extern int bpf_dynptr_clone(const struct bpf_dynptr *p, struct bpf_dynptr *clone__uninit) __weak __ksym; | ^ skeleton/stream.bpf.c:53:3: error: call to undeclared function 'bpf_stream_free_elem'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 53 | bpf_stream_free_elem(elem); | ^ skeleton/stream.bpf.c:64:2: error: call to undeclared function 'bpf_prog_stream_put'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 64 | bpf_prog_stream_put(stream); | ^ 10 errors generated. make[2]: *** [Makefile:226: /home/nipa/bpf-next/wt-0/build_tools/kselftest/hid/tools/build/bpftool/stream.bpf.o] Error 1 make[1]: *** [Makefile:124: /home/nipa/bpf-next/wt-0/build_tools/kselftest/hid/tools/sbin/bpftool] Error 2 mount_setattr_test.c:176:19: error: redefinition of ‘sys_open_tree’ 176 | static inline int sys_open_tree(int dfd, const char *filename, unsigned int flags) | ^~~~~~~~~~~~~ In file included from mount_setattr_test.c:23: ../filesystems/overlayfs/wrappers.h:59:19: note: previous definition of ‘sys_open_tree’ with type ‘int(int, const char *, unsigned int)’ 59 | static inline int sys_open_tree(int dfd, const char *filename, unsigned int flags) | ^~~~~~~~~~~~~ make[1]: *** [../lib.mk:222: /home/nipa/bpf-next/wt-0/build_tools/kselftest/mount_setattr/mount_setattr_test] Error 1 make[1]: *** nsfs: No such file or directory. Stop. pid_max.c: In function ‘pid_max_cb’: pid_max.c:42:15: error: implicit declaration of function ‘mount’ [-Wimplicit-function-declaration] 42 | ret = mount("", "/", NULL, MS_PRIVATE | MS_REC, 0); | ^~~~~ pid_max.c:42:36: error: ‘MS_PRIVATE’ undeclared (first use in this function); did you mean ‘MAP_PRIVATE’? 42 | ret = mount("", "/", NULL, MS_PRIVATE | MS_REC, 0); | ^~~~~~~~~~ | MAP_PRIVATE pid_max.c:42:36: note: each undeclared identifier is reported only once for each function it appears in pid_max.c:42:49: error: ‘MS_REC’ undeclared (first use in this function) 42 | ret = mount("", "/", NULL, MS_PRIVATE | MS_REC, 0); | ^~~~~~ pid_max.c:48:9: error: implicit declaration of function ‘umount2’; did you mean ‘SYS_umount2’? [-Wimplicit-function-declaration] 48 | umount2("/proc", MNT_DETACH); | ^~~~~~~ | SYS_umount2 pid_max.c:48:26: error: ‘MNT_DETACH’ undeclared (first use in this function) 48 | umount2("/proc", MNT_DETACH); | ^~~~~~~~~~ pid_max.c: In function ‘pid_max_nested_inner’: pid_max.c:88:36: error: ‘MS_PRIVATE’ undeclared (first use in this function); did you mean ‘MAP_PRIVATE’? 88 | ret = mount("", "/", NULL, MS_PRIVATE | MS_REC, 0); | ^~~~~~~~~~ | MAP_PRIVATE pid_max.c:88:49: error: ‘MS_REC’ undeclared (first use in this function) 88 | ret = mount("", "/", NULL, MS_PRIVATE | MS_REC, 0); | ^~~~~~ pid_max.c:94:26: error: ‘MNT_DETACH’ undeclared (first use in this function) 94 | umount2("/proc", MNT_DETACH); | ^~~~~~~~~~ pid_max.c: In function ‘pid_max_nested_outer’: pid_max.c:163:36: error: ‘MS_PRIVATE’ undeclared (first use in this function); did you mean ‘MAP_PRIVATE’? 163 | ret = mount("", "/", NULL, MS_PRIVATE | MS_REC, 0); | ^~~~~~~~~~ | MAP_PRIVATE pid_max.c:163:49: error: ‘MS_REC’ undeclared (first use in this function) 163 | ret = mount("", "/", NULL, MS_PRIVATE | MS_REC, 0); | ^~~~~~ pid_max.c:169:26: error: ‘MNT_DETACH’ undeclared (first use in this function) 169 | umount2("/proc", MNT_DETACH); | ^~~~~~~~~~ pid_max.c: In function ‘pid_max_nested_limit_inner’: pid_max.c:232:36: error: ‘MS_PRIVATE’ undeclared (first use in this function); did you mean ‘MAP_PRIVATE’? 232 | ret = mount("", "/", NULL, MS_PRIVATE | MS_REC, 0); | ^~~~~~~~~~ | MAP_PRIVATE pid_max.c:232:49: error: ‘MS_REC’ undeclared (first use in this function) 232 | ret = mount("", "/", NULL, MS_PRIVATE | MS_REC, 0); | ^~~~~~ pid_max.c:238:26: error: ‘MNT_DETACH’ undeclared (first use in this function) 238 | umount2("/proc", MNT_DETACH); | ^~~~~~~~~~ pid_max.c: In function ‘pid_max_nested_limit_outer’: pid_max.c:289:36: error: ‘MS_PRIVATE’ undeclared (first use in this function); did you mean ‘MAP_PRIVATE’? 289 | ret = mount("", "/", NULL, MS_PRIVATE | MS_REC, 0); | ^~~~~~~~~~ | MAP_PRIVATE pid_max.c:289:49: error: ‘MS_REC’ undeclared (first use in this function) 289 | ret = mount("", "/", NULL, MS_PRIVATE | MS_REC, 0); | ^~~~~~ pid_max.c:295:26: error: ‘MNT_DETACH’ undeclared (first use in this function) 295 | umount2("/proc", MNT_DETACH); | ^~~~~~~~~~ make[1]: *** [../lib.mk:222: /home/nipa/bpf-next/wt-0/build_tools/kselftest/pid_namespace/pid_max] Error 1 In file included from kublk.c:6: kublk.h:26:10: fatal error: liburing.h: No such file or directory 26 | #include | ^~~~~~~~~~~~ compilation terminated. In file included from null.c:3: kublk.h:26:10: fatal error: liburing.h: No such file or directory 26 | #include | ^~~~~~~~~~~~ compilation terminated. In file included from file_backed.c:3: kublk.h:26:10: fatal error: liburing.h: No such file or directory 26 | #include | ^~~~~~~~~~~~ compilation terminated. In file included from common.c:3: kublk.h:26:10: fatal error: liburing.h: No such file or directory 26 | #include | ^~~~~~~~~~~~ compilation terminated. In file included from stripe.c:3: kublk.h:26:10: fatal error: liburing.h: No such file or directory 26 | #include | ^~~~~~~~~~~~ compilation terminated. In file included from fault_inject.c:11: kublk.h:26:10: fatal error: liburing.h: No such file or directory 26 | #include | ^~~~~~~~~~~~ compilation terminated. make[1]: *** [../lib.mk:222: /home/nipa/bpf-next/wt-0/build_tools/kselftest/ublk/kublk] Error 1 ====== Checking if tree is clean ====== ?? arch/x86/Makefile.orig ?? arch/x86/Makefile.rej New errors added --- /tmp/tmp.0udlXcqj8l 2025-05-07 12:11:04.811445032 -0700 +++ /tmp/tmp.DyqrSJwmpN 2025-05-07 12:11:09.102412407 -0700 @@ -0,0 +1,51 @@ +skeleton/stream.bpf.c:29:11: error: call to undeclared function 'bpf_prog_stream_get'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] + 29 | stream = bpf_prog_stream_get(stream_id, prog_id); + | ^ +skeleton/stream.bpf.c:29:11: note: did you mean 'bpf_stream_get'? +/home/nipa/bpf-next/wt-0/build_tools/kselftest/hid/tools/build/bpftool/bootstrap/libbpf/include/bpf/bpf_helpers.h:319:27: note: 'bpf_stream_get' declared here + 319 | extern struct bpf_stream *bpf_stream_get(int stream_id, void *aux__ign) __weak __ksym; + | ^ +skeleton/stream.bpf.c:29:9: error: incompatible integer to pointer conversion assigning to 'struct bpf_stream *' from 'int' [-Wint-conversion] + 29 | stream = bpf_prog_stream_get(stream_id, prog_id); + | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +skeleton/stream.bpf.c:37:10: error: call to undeclared function 'bpf_stream_next_elem'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] + 37 | elem = bpf_stream_next_elem(stream); + | ^ +skeleton/stream.bpf.c:37:8: error: incompatible integer to pointer conversion assigning to 'struct bpf_stream_elem *' from 'int' [-Wint-conversion] + 37 | elem = bpf_stream_next_elem(stream); + | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +skeleton/stream.bpf.c:40:14: error: incomplete definition of type 'struct bpf_stream_elem' + 40 | size = elem->mem_slice.len; + | ~~~~^ +skeleton/stream.bpf.c:24:9: note: forward declaration of 'struct bpf_stream_elem' + 24 | struct bpf_stream_elem *elem; + | ^ +skeleton/stream.bpf.c:42:7: error: call to undeclared function 'bpf_dynptr_from_mem_slice'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] + 42 | if (bpf_dynptr_from_mem_slice(&elem->mem_slice, 0, &src_dptr)) + | ^ +skeleton/stream.bpf.c:42:7: note: did you mean 'bpf_dynptr_from_skb'? +/home/nipa/bpf-next/wt-0/build_tools/kselftest/hid/tools/build/bpftool/vmlinux.h:158934:12: note: 'bpf_dynptr_from_skb' declared here + 158934 | extern int bpf_dynptr_from_skb(struct __sk_buff *s, u64 flags, struct bpf_dynptr *ptr__uninit) __weak __ksym; + | ^ +skeleton/stream.bpf.c:42:38: error: incomplete definition of type 'struct bpf_stream_elem' + 42 | if (bpf_dynptr_from_mem_slice(&elem->mem_slice, 0, &src_dptr)) + | ~~~~^ +skeleton/stream.bpf.c:24:9: note: forward declaration of 'struct bpf_stream_elem' + 24 | struct bpf_stream_elem *elem; + | ^ +skeleton/stream.bpf.c:46:7: error: call to undeclared function 'bpf_dynptr_copy'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] + 46 | if (bpf_dynptr_copy(&dst_dptr, 0, &src_dptr, 0, size)) + | ^ +skeleton/stream.bpf.c:46:7: note: did you mean 'bpf_dynptr_clone'? +/home/nipa/bpf-next/wt-0/build_tools/kselftest/hid/tools/build/bpftool/vmlinux.h:158933:12: note: 'bpf_dynptr_clone' declared here + 158933 | extern int bpf_dynptr_clone(const struct bpf_dynptr *p, struct bpf_dynptr *clone__uninit) __weak __ksym; + | ^ +skeleton/stream.bpf.c:53:3: error: call to undeclared function 'bpf_stream_free_elem'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] + 53 | bpf_stream_free_elem(elem); + | ^ +skeleton/stream.bpf.c:64:2: error: call to undeclared function 'bpf_prog_stream_put'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] + 64 | bpf_prog_stream_put(stream); + | ^ +10 errors generated. +make[2]: *** [Makefile:226: /home/nipa/bpf-next/wt-0/build_tools/kselftest/hid/tools/build/bpftool/stream.bpf.o] Error 1 +make[1]: *** [Makefile:124: /home/nipa/bpf-next/wt-0/build_tools/kselftest/hid/tools/sbin/bpftool] Error 2 Per-file breakdown