====== 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 ====== tracelog.c: In function ‘get_tracefs_pipe’: tracelog.c:81:52: warning: format ‘%zd’ expects argument of type ‘signed size_t’, but argument 4 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=] 81 | snprintf(format, sizeof(format), "%%*s %%%zds %%99s %%*s %%*d %%*d\\n", | ~~^ | | | long int | %ld map_perf_ring.c: In function ‘print_bpf_output’: map_perf_ring.c:94:40: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 2 has type ‘long long unsigned int’ [-Wformat=] 94 | printf("== @%lld.%09lld CPU: %d index: %d =====\n", | ~~~^ | | | long long int | %lld 95 | e->time / 1000000000ULL, e->time % 1000000000ULL, | ~~~~~~~~~~~~~~~~~~~~~~~ | | | long long unsigned int map_perf_ring.c:94:47: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 3 has type ‘long long unsigned int’ [-Wformat=] 94 | printf("== @%lld.%09lld CPU: %d index: %d =====\n", | ~~~~~^ | | | long long int | %09lld 95 | e->time / 1000000000ULL, e->time % 1000000000ULL, | ~~~~~~~~~~~~~~~~~~~~~~~ | | | long long unsigned int map_perf_ring.c:100:41: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 2 has type ‘__u64’ {aka ‘long long unsigned int’} [-Wformat=] 100 | printf("lost %lld events\n", lost->lost); | ~~~^ ~~~~~~~~~~ | | | | long long int __u64 {aka long long unsigned int} | %lld map_perf_ring.c:102:53: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘__u32’ {aka ‘unsigned int’} [-Wformat=] 102 | printf("unknown event type=%d size=%d\n", | ~^ | | | int | %d 103 | e->header.type, e->header.size); | ~~~~~~~~~~~~~~ | | | __u32 {aka unsigned int} In file included from netlink_dumper.c:12: netlink_dumper.c: In function ‘do_xdp_dump_one’: netlink_dumper.c:48:34: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘unsigned int’ [-Wformat=] 48 | NET_DUMP_UINT("ifindex", "(%d)", ifindex); | ^~~~~~ ~~~~~~~ | | | unsigned int netlink_dumper.h:76:33: note: in definition of macro ‘NET_DUMP_UINT’ 76 | fprintf(stdout, fmt_str, val); \ | ^~~~~~~ netlink_dumper.c:48:37: note: format string is defined here 48 | NET_DUMP_UINT("ifindex", "(%d)", ifindex); | ~^ | | | int | %d netlink_dumper.c: In function ‘do_filter_dump’: netlink_dumper.c:171:42: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 3 has type ‘int’ [-Wformat=] 171 | NET_DUMP_UINT("ifindex", "(%u)", ifindex); | ^~~~~~ ~~~~~~~ | | | int netlink_dumper.h:76:33: note: in definition of macro ‘NET_DUMP_UINT’ 76 | fprintf(stdout, fmt_str, val); \ | ^~~~~~~ netlink_dumper.c:171:45: note: format string is defined here 171 | NET_DUMP_UINT("ifindex", "(%u)", ifindex); | ~^ | | | unsigned int | %u /home/nipa/bpf-next/wt-0/kernel/bpf/disasm.c: In function ‘print_bpf_insn’: /home/nipa/bpf-next/wt-0/kernel/bpf/disasm.c:205:88: warning: format ‘%d’ expects argument of type ‘int’, but argument 6 has type ‘unsigned int’ [-Wformat=] 205 | verbose(cbs->private_data, "(%02x) r%d = addr_space_cast(r%d, %d, %d)\n", | ~^ | | | int | %d 206 | insn->code, insn->dst_reg, 207 | insn->src_reg, ((u32)insn->imm) >> 16, (u16)insn->imm); | ~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int /home/nipa/bpf-next/wt-0/kernel/bpf/disasm.c:380:55: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 7 has type ‘__s32’ {aka ‘int’} [-Wformat=] 380 | "(%02x) if %c%d %s 0x%x goto pc%+d\n", | ~^ | | | unsigned int | %x ...... 384 | insn->imm, insn->off); | ~~~~~~~~~ | | | __s32 {aka int} cgroup.c: In function ‘show_bpf_prog’: cgroup.c:194:53: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘__u32’ {aka ‘unsigned int’} [-Wformat=] 194 | printf(" attach_btf_obj_id=%d attach_btf_id=%d", | ~^ | | | int | %d 195 | info.attach_btf_obj_id, info.attach_btf_id); | ~~~~~~~~~~~~~~~~~~~~~~ | | | __u32 {aka unsigned int} cgroup.c:194:70: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘__u32’ {aka ‘unsigned int’} [-Wformat=] 194 | printf(" attach_btf_obj_id=%d attach_btf_id=%d", | ~^ | | | int | %d 195 | info.attach_btf_obj_id, info.attach_btf_id); | ~~~~~~~~~~~~~~~~~~ | | | __u32 {aka unsigned int} xlated_dumper.c: In function ‘print_imm’: xlated_dumper.c:202:35: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘__s32’ {aka ‘int’} [-Wformat=] 202 | "map[id:%u]", insn->imm); | ~^ ~~~~~~~~~ | | | | | __s32 {aka int} | unsigned int | %u xlated_dumper.c:205:35: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘__s32’ {aka ‘int’} [-Wformat=] 205 | "map[id:%u][0]+%u", insn->imm, (insn + 1)->imm); | ~^ ~~~~~~~~~ | | | | unsigned int __s32 {aka int} | %u xlated_dumper.c:205:42: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 5 has type ‘__s32’ {aka ‘int’} [-Wformat=] 205 | "map[id:%u][0]+%u", insn->imm, (insn + 1)->imm); | ~^ ~~~~~~~~~~~~~~~ | | | | unsigned int __s32 {aka int} | %u xlated_dumper.c:208:36: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘__s32’ {aka ‘int’} [-Wformat=] 208 | "map[idx:%u]+%u", insn->imm, (insn + 1)->imm); | ~^ ~~~~~~~~~ | | | | | __s32 {aka int} | unsigned int | %u xlated_dumper.c:208:40: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 5 has type ‘__s32’ {aka ‘int’} [-Wformat=] 208 | "map[idx:%u]+%u", insn->imm, (insn + 1)->imm); | ~^ ~~~~~~~~~~~~~~~ | | | | unsigned int __s32 {aka int} | %u btf_dumper.c: In function ‘__btf_dumper_type_only’: btf_dumper.c:656:31: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘__u32’ {aka ‘unsigned int’} [-Wformat=] 656 | BTF_PRINT_ARG("[%d]", array->nelems); | ^~~~~~ ~~~~~~~~~~~~~ | | | __u32 {aka unsigned int} btf_dumper.c:607:33: note: in definition of macro ‘BTF_PRINT_ARG’ 607 | __VA_ARGS__); \ | ^~~~~~~~~~~ btf_dumper.c:656:34: note: format string is defined here 656 | BTF_PRINT_ARG("[%d]", array->nelems); | ~^ | | | int | %d In file included from net.c:25: net.c: In function ‘__show_dev_tc_bpf’: net.c:479:42: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 3 has type ‘int’ [-Wformat=] 479 | NET_DUMP_UINT("ifindex", "(%u)", dev->ifindex); | ^~~~~~ ~~~~~~~~~~~~ | | | int netlink_dumper.h:76:33: note: in definition of macro ‘NET_DUMP_UINT’ 76 | fprintf(stdout, fmt_str, val); \ | ^~~~~~~ net.c:479:45: note: format string is defined here 479 | NET_DUMP_UINT("ifindex", "(%u)", dev->ifindex); | ~^ | | | unsigned int | %u net.c: In function ‘show_link_netfilter’: net.c:834:61: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘__u32’ {aka ‘unsigned int’} [-Wformat=] 834 | p_err("can't get next link: %s (id %d)", strerror(errno), id); | ~^ ~~ | | | | int __u32 {aka unsigned int} | %d common.c: In function ‘ifindex_to_arch’: common.c:717:63: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘__u32’ {aka ‘unsigned int’} [-Wformat=] 717 | p_err("Can't get net device name for ifindex %d: %s", ifindex, | ~^ ~~~~~~~ | | | | int __u32 {aka unsigned int} | %d common.c:741:70: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘int’ [-Wformat=] 741 | p_err("Can't get arch name for device vendor id 0x%04x", | ~~~^ | | | unsigned int | %04x 742 | vendor_id); | ~~~~~~~~~ | | | int common.c: In function ‘ifindex_to_arch’: common.c:717:63: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘__u32’ {aka ‘unsigned int’} [-Wformat=] 717 | p_err("Can't get net device name for ifindex %d: %s", ifindex, | ~^ ~~~~~~~ | | | | int __u32 {aka unsigned int} | %d common.c:741:70: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘int’ [-Wformat=] 741 | p_err("Can't get arch name for device vendor id 0x%04x", | ~~~^ | | | unsigned int | %04x 742 | vendor_id); | ~~~~~~~~~ | | | int btf.c: In function ‘dump_btf_type’: btf.c:256:63: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 3 has type ‘__s32’ {aka ‘int’} [-Wformat=] 256 | printf("\n\t'%s' val=%u", name, v->val); | ~^ ~~~~~~ | | | | | __s32 {aka int} | unsigned int | %u btf.c: In function ‘do_dump’: btf.c:1025:67: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘__u32’ {aka ‘unsigned int’} [-Wformat=] 1025 | p_err("duplicate root_id %d supplied", root_id); | ~^ ~~~~~~~ | | | | int __u32 {aka unsigned int} | %d btf.c: In function ‘build_btf_type_table’: btf.c:1135:57: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘unsigned int’ [-Wformat=] 1135 | p_err("unexpected object type: %d", type); | ~^ ~~~~ | | | | int unsigned int | %d btf.c:1158:57: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘unsigned int’ [-Wformat=] 1158 | p_err("unexpected object type: %d", type); | ~^ ~~~~ | | | | int unsigned int | %d btf.c:1191:57: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘unsigned int’ [-Wformat=] 1191 | p_err("unexpected object type: %d", type); | ~^ ~~~~ | | | | int unsigned int | %d btf.c: In function ‘show_btf_plain’: btf.c:1257:29: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘long int’ [-Wformat=] 1257 | printf("%s%lu", n++ == 0 ? " prog_ids " : ",", entry->value); | ~~^ ~~~~~~~~~~~~ | | | | long unsigned int long int | %lu btf.c:1262:29: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘long int’ [-Wformat=] 1262 | printf("%s%lu", n++ == 0 ? " map_ids " : ",", entry->value); | ~~^ ~~~~~~~~~~~~ | | | | long unsigned int long int | %lu btf.c: In function ‘dump_btf_type’: btf.c:256:63: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 3 has type ‘__s32’ {aka ‘int’} [-Wformat=] 256 | printf("\n\t'%s' val=%u", name, v->val); | ~^ ~~~~~~ | | | | | __s32 {aka int} | unsigned int | %u btf.c: In function ‘do_dump’: btf.c:1025:67: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘__u32’ {aka ‘unsigned int’} [-Wformat=] 1025 | p_err("duplicate root_id %d supplied", root_id); | ~^ ~~~~~~~ | | | | int __u32 {aka unsigned int} | %d btf.c: In function ‘build_btf_type_table’: btf.c:1135:57: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘unsigned int’ [-Wformat=] 1135 | p_err("unexpected object type: %d", type); | ~^ ~~~~ | | | | int unsigned int | %d btf.c:1158:57: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘unsigned int’ [-Wformat=] 1158 | p_err("unexpected object type: %d", type); | ~^ ~~~~ | | | | int unsigned int | %d btf.c:1191:57: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘unsigned int’ [-Wformat=] 1191 | p_err("unexpected object type: %d", type); | ~^ ~~~~ | | | | int unsigned int | %d btf.c: In function ‘show_btf_plain’: btf.c:1257:29: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘long int’ [-Wformat=] 1257 | printf("%s%lu", n++ == 0 ? " prog_ids " : ",", entry->value); | ~~^ ~~~~~~~~~~~~ | | | | long unsigned int long int | %lu btf.c:1262:29: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘long int’ [-Wformat=] 1262 | printf("%s%lu", n++ == 0 ? " map_ids " : ",", entry->value); | ~~^ ~~~~~~~~~~~~ | | | | long unsigned int long int | %lu prog.c: In function ‘print_prog_header_plain’: prog.c:524:41: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 2 has type ‘__u64’ {aka ‘long long unsigned int’} [-Wformat=] 524 | printf(" run_time_ns %lld run_cnt %lld", | ~~~^ | | | long long int | %lld 525 | info->run_time_ns, info->run_cnt); | ~~~~~~~~~~~~~~~~~ | | | __u64 {aka long long unsigned int} prog.c:524:54: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 3 has type ‘__u64’ {aka ‘long long unsigned int’} [-Wformat=] 524 | printf(" run_time_ns %lld run_cnt %lld", | ~~~^ | | | long long int | %lld 525 | info->run_time_ns, info->run_cnt); | ~~~~~~~~~~~~~ | | | __u64 {aka long long unsigned int} prog.c:527:46: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 2 has type ‘__u64’ {aka ‘long long unsigned int’} [-Wformat=] 527 | printf(" recursion_misses %lld", info->recursion_misses); | ~~~^ ~~~~~~~~~~~~~~~~~~~~~~ | | | | | __u64 {aka long long unsigned int} | long long int | %lld prog.c: In function ‘print_prog_plain’: prog.c:572:37: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘__u32’ {aka ‘unsigned int’} [-Wformat=] 572 | printf("\n\tbtf_id %d", info->btf_id); | ~^ ~~~~~~~~~~~~ | | | | int __u32 {aka unsigned int} | %d prog.c: In function ‘get_run_data’: prog.c:1167:74: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘unsigned int’ [-Wformat=] 1167 | p_err("data_in/ctx_in is too long (max: %d)", | ~^ | | | int | %d prog.c: In function ‘profile_target_name’: prog.c:2254:29: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘__u32’ {aka ‘unsigned int’} [-Wformat=] 2254 | p_err("btf %d doesn't have type %d", | ~^ | | | int | %d 2255 | info.btf_id, func_info.type_id); | ~~~~~~~~~~~ | | | __u32 {aka unsigned int} prog.c:2254:50: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘__u32’ {aka ‘unsigned int’} [-Wformat=] 2254 | p_err("btf %d doesn't have type %d", | ~^ | | | int | %d 2255 | info.btf_id, func_info.type_id); | ~~~~~~~~~~~~~~~~~ | | | __u32 {aka unsigned int} prog.c: In function ‘profile_open_perf_events’: prog.c:2332:74: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘unsigned int’ [-Wformat=] 2332 | p_err("failed to create event %s on cpu %d", | ~^ | | | int | %d 2333 | metrics[m].name, cpu); | ~~~ | | | unsigned int make[1]: *** nsfs: No such file or directory. Stop. pidfd_fdinfo_test.c: In function ‘child_fdinfo_nspid_test’: pidfd_fdinfo_test.c:230:13: error: implicit declaration of function ‘mount’ [-Wimplicit-function-declaration] 230 | r = mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, 0); | ^~~~~ pidfd_fdinfo_test.c:230:36: error: ‘MS_REC’ undeclared (first use in this function) 230 | r = mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, 0); | ^~~~~~ pidfd_fdinfo_test.c:230:36: note: each undeclared identifier is reported only once for each function it appears in pidfd_fdinfo_test.c:230:45: error: ‘MS_PRIVATE’ undeclared (first use in this function); did you mean ‘MAP_PRIVATE’? 230 | r = mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, 0); | ^~~~~~~~~~ | MAP_PRIVATE pidfd_fdinfo_test.c:236:15: error: implicit declaration of function ‘umount2’; did you mean ‘SYS_umount2’? [-Wimplicit-function-declaration] 236 | (void)umount2("/proc", MNT_DETACH); | ^~~~~~~ | SYS_umount2 pidfd_fdinfo_test.c:236:32: error: ‘MNT_DETACH’ undeclared (first use in this function) 236 | (void)umount2("/proc", MNT_DETACH); | ^~~~~~~~~~ make[1]: *** [../lib.mk:222: /home/nipa/bpf-next/wt-0/build_tools/kselftest/pidfd/pidfd_fdinfo_test] Error 1 make[1]: *** Waiting for unfinished jobs.... pidfd_setns_test.c: In function ‘current_nsset_setup’: pidfd_setns_test.c:172:54: error: implicit declaration of function ‘ioctl’ [-Wimplicit-function-declaration] 172 | self->child_pidfd_derived_nsfds[i] = ioctl(self->pidfd, info->pidfd_ioctl, 0); | ^~~~~ make[1]: *** [../lib.mk:221: /home/nipa/bpf-next/wt-0/build_tools/kselftest/pidfd/pidfd_setns_test] Error 1 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.... ====== Building the tree before the patch ====== tracelog.c: In function ‘get_tracefs_pipe’: tracelog.c:81:52: warning: format ‘%zd’ expects argument of type ‘signed size_t’, but argument 4 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=] 81 | snprintf(format, sizeof(format), "%%*s %%%zds %%99s %%*s %%*d %%*d\\n", | ~~^ | | | long int | %ld In file included from netlink_dumper.c:12: netlink_dumper.c: In function ‘do_xdp_dump_one’: netlink_dumper.c:48:34: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘unsigned int’ [-Wformat=] 48 | NET_DUMP_UINT("ifindex", "(%d)", ifindex); | ^~~~~~ ~~~~~~~ | | | unsigned int netlink_dumper.h:76:33: note: in definition of macro ‘NET_DUMP_UINT’ 76 | fprintf(stdout, fmt_str, val); \ | ^~~~~~~ netlink_dumper.c:48:37: note: format string is defined here 48 | NET_DUMP_UINT("ifindex", "(%d)", ifindex); | ~^ | | | int | %d netlink_dumper.c: In function ‘do_filter_dump’: netlink_dumper.c:171:42: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 3 has type ‘int’ [-Wformat=] 171 | NET_DUMP_UINT("ifindex", "(%u)", ifindex); | ^~~~~~ ~~~~~~~ | | | int netlink_dumper.h:76:33: note: in definition of macro ‘NET_DUMP_UINT’ 76 | fprintf(stdout, fmt_str, val); \ | ^~~~~~~ netlink_dumper.c:171:45: note: format string is defined here 171 | NET_DUMP_UINT("ifindex", "(%u)", ifindex); | ~^ | | | unsigned int | %u map_perf_ring.c: In function ‘print_bpf_output’: map_perf_ring.c:94:40: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 2 has type ‘long long unsigned int’ [-Wformat=] 94 | printf("== @%lld.%09lld CPU: %d index: %d =====\n", | ~~~^ | | | long long int | %lld 95 | e->time / 1000000000ULL, e->time % 1000000000ULL, | ~~~~~~~~~~~~~~~~~~~~~~~ | | | long long unsigned int map_perf_ring.c:94:47: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 3 has type ‘long long unsigned int’ [-Wformat=] 94 | printf("== @%lld.%09lld CPU: %d index: %d =====\n", | ~~~~~^ | | | long long int | %09lld 95 | e->time / 1000000000ULL, e->time % 1000000000ULL, | ~~~~~~~~~~~~~~~~~~~~~~~ | | | long long unsigned int map_perf_ring.c:100:41: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 2 has type ‘__u64’ {aka ‘long long unsigned int’} [-Wformat=] 100 | printf("lost %lld events\n", lost->lost); | ~~~^ ~~~~~~~~~~ | | | | long long int __u64 {aka long long unsigned int} | %lld map_perf_ring.c:102:53: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘__u32’ {aka ‘unsigned int’} [-Wformat=] 102 | printf("unknown event type=%d size=%d\n", | ~^ | | | int | %d 103 | e->header.type, e->header.size); | ~~~~~~~~~~~~~~ | | | __u32 {aka unsigned int} /home/nipa/bpf-next/wt-0/kernel/bpf/disasm.c: In function ‘print_bpf_insn’: /home/nipa/bpf-next/wt-0/kernel/bpf/disasm.c:205:88: warning: format ‘%d’ expects argument of type ‘int’, but argument 6 has type ‘unsigned int’ [-Wformat=] 205 | verbose(cbs->private_data, "(%02x) r%d = addr_space_cast(r%d, %d, %d)\n", | ~^ | | | int | %d 206 | insn->code, insn->dst_reg, 207 | insn->src_reg, ((u32)insn->imm) >> 16, (u16)insn->imm); | ~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int /home/nipa/bpf-next/wt-0/kernel/bpf/disasm.c:380:55: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 7 has type ‘__s32’ {aka ‘int’} [-Wformat=] 380 | "(%02x) if %c%d %s 0x%x goto pc%+d\n", | ~^ | | | unsigned int | %x ...... 384 | insn->imm, insn->off); | ~~~~~~~~~ | | | __s32 {aka int} cgroup.c: In function ‘show_bpf_prog’: cgroup.c:194:53: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘__u32’ {aka ‘unsigned int’} [-Wformat=] 194 | printf(" attach_btf_obj_id=%d attach_btf_id=%d", | ~^ | | | int | %d 195 | info.attach_btf_obj_id, info.attach_btf_id); | ~~~~~~~~~~~~~~~~~~~~~~ | | | __u32 {aka unsigned int} cgroup.c:194:70: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘__u32’ {aka ‘unsigned int’} [-Wformat=] 194 | printf(" attach_btf_obj_id=%d attach_btf_id=%d", | ~^ | | | int | %d 195 | info.attach_btf_obj_id, info.attach_btf_id); | ~~~~~~~~~~~~~~~~~~ | | | __u32 {aka unsigned int} xlated_dumper.c: In function ‘print_imm’: xlated_dumper.c:202:35: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘__s32’ {aka ‘int’} [-Wformat=] 202 | "map[id:%u]", insn->imm); | ~^ ~~~~~~~~~ | | | | | __s32 {aka int} | unsigned int | %u xlated_dumper.c:205:35: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘__s32’ {aka ‘int’} [-Wformat=] 205 | "map[id:%u][0]+%u", insn->imm, (insn + 1)->imm); | ~^ ~~~~~~~~~ | | | | unsigned int __s32 {aka int} | %u xlated_dumper.c:205:42: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 5 has type ‘__s32’ {aka ‘int’} [-Wformat=] 205 | "map[id:%u][0]+%u", insn->imm, (insn + 1)->imm); | ~^ ~~~~~~~~~~~~~~~ | | | | unsigned int __s32 {aka int} | %u xlated_dumper.c:208:36: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘__s32’ {aka ‘int’} [-Wformat=] 208 | "map[idx:%u]+%u", insn->imm, (insn + 1)->imm); | ~^ ~~~~~~~~~ | | | | | __s32 {aka int} | unsigned int | %u xlated_dumper.c:208:40: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 5 has type ‘__s32’ {aka ‘int’} [-Wformat=] 208 | "map[idx:%u]+%u", insn->imm, (insn + 1)->imm); | ~^ ~~~~~~~~~~~~~~~ | | | | unsigned int __s32 {aka int} | %u btf_dumper.c: In function ‘__btf_dumper_type_only’: btf_dumper.c:656:31: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘__u32’ {aka ‘unsigned int’} [-Wformat=] 656 | BTF_PRINT_ARG("[%d]", array->nelems); | ^~~~~~ ~~~~~~~~~~~~~ | | | __u32 {aka unsigned int} btf_dumper.c:607:33: note: in definition of macro ‘BTF_PRINT_ARG’ 607 | __VA_ARGS__); \ | ^~~~~~~~~~~ btf_dumper.c:656:34: note: format string is defined here 656 | BTF_PRINT_ARG("[%d]", array->nelems); | ~^ | | | int | %d In file included from net.c:25: net.c: In function ‘__show_dev_tc_bpf’: net.c:479:42: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 3 has type ‘int’ [-Wformat=] 479 | NET_DUMP_UINT("ifindex", "(%u)", dev->ifindex); | ^~~~~~ ~~~~~~~~~~~~ | | | int netlink_dumper.h:76:33: note: in definition of macro ‘NET_DUMP_UINT’ 76 | fprintf(stdout, fmt_str, val); \ | ^~~~~~~ net.c:479:45: note: format string is defined here 479 | NET_DUMP_UINT("ifindex", "(%u)", dev->ifindex); | ~^ | | | unsigned int | %u net.c: In function ‘show_link_netfilter’: net.c:834:61: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘__u32’ {aka ‘unsigned int’} [-Wformat=] 834 | p_err("can't get next link: %s (id %d)", strerror(errno), id); | ~^ ~~ | | | | int __u32 {aka unsigned int} | %d common.c: In function ‘ifindex_to_arch’: common.c:717:63: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘__u32’ {aka ‘unsigned int’} [-Wformat=] 717 | p_err("Can't get net device name for ifindex %d: %s", ifindex, | ~^ ~~~~~~~ | | | | int __u32 {aka unsigned int} | %d common.c:741:70: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘int’ [-Wformat=] 741 | p_err("Can't get arch name for device vendor id 0x%04x", | ~~~^ | | | unsigned int | %04x 742 | vendor_id); | ~~~~~~~~~ | | | int common.c: In function ‘ifindex_to_arch’: common.c:717:63: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘__u32’ {aka ‘unsigned int’} [-Wformat=] 717 | p_err("Can't get net device name for ifindex %d: %s", ifindex, | ~^ ~~~~~~~ | | | | int __u32 {aka unsigned int} | %d common.c:741:70: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘int’ [-Wformat=] 741 | p_err("Can't get arch name for device vendor id 0x%04x", | ~~~^ | | | unsigned int | %04x 742 | vendor_id); | ~~~~~~~~~ | | | int btf.c: In function ‘dump_btf_type’: btf.c:256:63: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 3 has type ‘__s32’ {aka ‘int’} [-Wformat=] 256 | printf("\n\t'%s' val=%u", name, v->val); | ~^ ~~~~~~ | | | | | __s32 {aka int} | unsigned int | %u btf.c: In function ‘do_dump’: btf.c:1025:67: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘__u32’ {aka ‘unsigned int’} [-Wformat=] 1025 | p_err("duplicate root_id %d supplied", root_id); | ~^ ~~~~~~~ | | | | int __u32 {aka unsigned int} | %d btf.c: In function ‘build_btf_type_table’: btf.c:1135:57: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘unsigned int’ [-Wformat=] 1135 | p_err("unexpected object type: %d", type); | ~^ ~~~~ | | | | int unsigned int | %d btf.c:1158:57: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘unsigned int’ [-Wformat=] 1158 | p_err("unexpected object type: %d", type); | ~^ ~~~~ | | | | int unsigned int | %d btf.c:1191:57: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘unsigned int’ [-Wformat=] 1191 | p_err("unexpected object type: %d", type); | ~^ ~~~~ | | | | int unsigned int | %d btf.c: In function ‘show_btf_plain’: btf.c:1257:29: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘long int’ [-Wformat=] 1257 | printf("%s%lu", n++ == 0 ? " prog_ids " : ",", entry->value); | ~~^ ~~~~~~~~~~~~ | | | | long unsigned int long int | %lu btf.c:1262:29: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘long int’ [-Wformat=] 1262 | printf("%s%lu", n++ == 0 ? " map_ids " : ",", entry->value); | ~~^ ~~~~~~~~~~~~ | | | | long unsigned int long int | %lu btf.c: In function ‘dump_btf_type’: btf.c:256:63: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 3 has type ‘__s32’ {aka ‘int’} [-Wformat=] 256 | printf("\n\t'%s' val=%u", name, v->val); | ~^ ~~~~~~ | | | | | __s32 {aka int} | unsigned int | %u btf.c: In function ‘do_dump’: btf.c:1025:67: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘__u32’ {aka ‘unsigned int’} [-Wformat=] 1025 | p_err("duplicate root_id %d supplied", root_id); | ~^ ~~~~~~~ | | | | int __u32 {aka unsigned int} | %d btf.c: In function ‘build_btf_type_table’: btf.c:1135:57: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘unsigned int’ [-Wformat=] 1135 | p_err("unexpected object type: %d", type); | ~^ ~~~~ | | | | int unsigned int | %d btf.c:1158:57: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘unsigned int’ [-Wformat=] 1158 | p_err("unexpected object type: %d", type); | ~^ ~~~~ | | | | int unsigned int | %d btf.c:1191:57: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘unsigned int’ [-Wformat=] 1191 | p_err("unexpected object type: %d", type); | ~^ ~~~~ | | | | int unsigned int | %d btf.c: In function ‘show_btf_plain’: btf.c:1257:29: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘long int’ [-Wformat=] 1257 | printf("%s%lu", n++ == 0 ? " prog_ids " : ",", entry->value); | ~~^ ~~~~~~~~~~~~ | | | | long unsigned int long int | %lu btf.c:1262:29: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘long int’ [-Wformat=] 1262 | printf("%s%lu", n++ == 0 ? " map_ids " : ",", entry->value); | ~~^ ~~~~~~~~~~~~ | | | | long unsigned int long int | %lu prog.c: In function ‘print_prog_header_plain’: prog.c:524:41: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 2 has type ‘__u64’ {aka ‘long long unsigned int’} [-Wformat=] 524 | printf(" run_time_ns %lld run_cnt %lld", | ~~~^ | | | long long int | %lld 525 | info->run_time_ns, info->run_cnt); | ~~~~~~~~~~~~~~~~~ | | | __u64 {aka long long unsigned int} prog.c:524:54: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 3 has type ‘__u64’ {aka ‘long long unsigned int’} [-Wformat=] 524 | printf(" run_time_ns %lld run_cnt %lld", | ~~~^ | | | long long int | %lld 525 | info->run_time_ns, info->run_cnt); | ~~~~~~~~~~~~~ | | | __u64 {aka long long unsigned int} prog.c:527:46: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 2 has type ‘__u64’ {aka ‘long long unsigned int’} [-Wformat=] 527 | printf(" recursion_misses %lld", info->recursion_misses); | ~~~^ ~~~~~~~~~~~~~~~~~~~~~~ | | | | | __u64 {aka long long unsigned int} | long long int | %lld prog.c: In function ‘print_prog_plain’: prog.c:572:37: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘__u32’ {aka ‘unsigned int’} [-Wformat=] 572 | printf("\n\tbtf_id %d", info->btf_id); | ~^ ~~~~~~~~~~~~ | | | | int __u32 {aka unsigned int} | %d prog.c: In function ‘get_run_data’: prog.c:1167:74: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘unsigned int’ [-Wformat=] 1167 | p_err("data_in/ctx_in is too long (max: %d)", | ~^ | | | int | %d prog.c: In function ‘profile_target_name’: prog.c:2254:29: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘__u32’ {aka ‘unsigned int’} [-Wformat=] 2254 | p_err("btf %d doesn't have type %d", | ~^ | | | int | %d 2255 | info.btf_id, func_info.type_id); | ~~~~~~~~~~~ | | | __u32 {aka unsigned int} prog.c:2254:50: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘__u32’ {aka ‘unsigned int’} [-Wformat=] 2254 | p_err("btf %d doesn't have type %d", | ~^ | | | int | %d 2255 | info.btf_id, func_info.type_id); | ~~~~~~~~~~~~~~~~~ | | | __u32 {aka unsigned int} prog.c: In function ‘profile_open_perf_events’: prog.c:2332:74: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘unsigned int’ [-Wformat=] 2332 | p_err("failed to create event %s on cpu %d", | ~^ | | | int | %d 2333 | metrics[m].name, cpu); | ~~~ | | | unsigned int make[1]: *** nsfs: No such file or directory. Stop. pidfd_fdinfo_test.c: In function ‘child_fdinfo_nspid_test’: pidfd_fdinfo_test.c:230:13: error: implicit declaration of function ‘mount’ [-Wimplicit-function-declaration] 230 | r = mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, 0); | ^~~~~ pidfd_fdinfo_test.c:230:36: error: ‘MS_REC’ undeclared (first use in this function) 230 | r = mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, 0); | ^~~~~~ pidfd_fdinfo_test.c:230:36: note: each undeclared identifier is reported only once for each function it appears in pidfd_fdinfo_test.c:230:45: error: ‘MS_PRIVATE’ undeclared (first use in this function); did you mean ‘MAP_PRIVATE’? 230 | r = mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, 0); | ^~~~~~~~~~ | MAP_PRIVATE pidfd_fdinfo_test.c:236:15: error: implicit declaration of function ‘umount2’; did you mean ‘SYS_umount2’? [-Wimplicit-function-declaration] 236 | (void)umount2("/proc", MNT_DETACH); | ^~~~~~~ | SYS_umount2 pidfd_fdinfo_test.c:236:32: error: ‘MNT_DETACH’ undeclared (first use in this function) 236 | (void)umount2("/proc", MNT_DETACH); | ^~~~~~~~~~ make[1]: *** [../lib.mk:222: /home/nipa/bpf-next/wt-0/build_tools/kselftest/pidfd/pidfd_fdinfo_test] Error 1 make[1]: *** Waiting for unfinished jobs.... pidfd_setns_test.c: In function ‘current_nsset_setup’: pidfd_setns_test.c:172:54: error: implicit declaration of function ‘ioctl’ [-Wimplicit-function-declaration] 172 | self->child_pidfd_derived_nsfds[i] = ioctl(self->pidfd, info->pidfd_ioctl, 0); | ^~~~~ make[1]: *** [../lib.mk:222: /home/nipa/bpf-next/wt-0/build_tools/kselftest/pidfd/pidfd_setns_test] Error 1 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 ====== Checking if tree is clean ====== ====== Building the tree with the patch ====== make[1]: *** nsfs: No such file or directory. Stop. pidfd_fdinfo_test.c: In function ‘child_fdinfo_nspid_test’: pidfd_fdinfo_test.c:230:13: error: implicit declaration of function ‘mount’ [-Wimplicit-function-declaration] 230 | r = mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, 0); | ^~~~~ pidfd_fdinfo_test.c:230:36: error: ‘MS_REC’ undeclared (first use in this function) 230 | r = mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, 0); | ^~~~~~ pidfd_fdinfo_test.c:230:36: note: each undeclared identifier is reported only once for each function it appears in pidfd_fdinfo_test.c:230:45: error: ‘MS_PRIVATE’ undeclared (first use in this function); did you mean ‘MAP_PRIVATE’? 230 | r = mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, 0); | ^~~~~~~~~~ | MAP_PRIVATE pidfd_fdinfo_test.c:236:15: error: implicit declaration of function ‘umount2’; did you mean ‘SYS_umount2’? [-Wimplicit-function-declaration] 236 | (void)umount2("/proc", MNT_DETACH); | ^~~~~~~ | SYS_umount2 pidfd_fdinfo_test.c:236:32: error: ‘MNT_DETACH’ undeclared (first use in this function) 236 | (void)umount2("/proc", MNT_DETACH); | ^~~~~~~~~~ make[1]: *** [../lib.mk:222: /home/nipa/bpf-next/wt-0/build_tools/kselftest/pidfd/pidfd_fdinfo_test] Error 1 make[1]: *** Waiting for unfinished jobs.... pidfd_setns_test.c: In function ‘current_nsset_setup’: pidfd_setns_test.c:172:54: error: implicit declaration of function ‘ioctl’ [-Wimplicit-function-declaration] 172 | self->child_pidfd_derived_nsfds[i] = ioctl(self->pidfd, info->pidfd_ioctl, 0); | ^~~~~ make[1]: *** [../lib.mk:222: /home/nipa/bpf-next/wt-0/build_tools/kselftest/pidfd/pidfd_setns_test] Error 1 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 ====== Checking if tree is clean ======