Test failures found in stable-rc/linux-6.6.y kbuild-clang-17-x86 (kbuild-clang-17-x86) - v6.6.23-389-g23ac8dc4026cb clang --target=x86_64-linux-gnu -fintegrated-as -Werror=unknown-warning-option -Werror=ignored-optimization-argument -Werror=option-ignored -Werror=unused-command-line-argument --target=x86_64-linux-gnu -fintegrated-as -Wall -Wno-nonnull -D_GNU_SOURCE -Wl,-z,max-page-size=0x1000 -pie -static load_address.c -o /tmp/kci/linux/tools/testing/selftests/exec/load_address_4096 clang: error: argument unused during compilation: '-pie' [-Werror,-Wunused-command-line-argument] make[3]: *** [Makefile:32: /tmp/kci/linux/tools/testing/selftests/exec/load_address_4096] Error 1 make[3]: Leaving directory '/tmp/kci/linux/tools/testing/selftests/exec' make[3]: Entering directory '/tmp/kci/linux/tools/testing/selftests/fchmodat2' clang --target=x86_64-linux-gnu -fintegrated-as -Werror=unknown-warning-option -Werror=ignored-optimization-argument -Werror=option-ignored -Werror=unused-command-line-argument --target=x86_64-linux-gnu -fintegrated-as -Wall -O2 -g -fsanitize=address -fsanitize=undefined -static-libasan -isystem /tmp/kci/linux/usr/include fchmodat2_test.c -o /tmp/kci/linux/tools/testing/selftests/fchmodat2/fchmodat2_test clang: error: unknown argument '-static-libasan'; did you mean '-static-libsan'? make[3]: *** [../lib.mk:147: /tmp/kci/linux/tools/testing/selftests/fchmodat2/fchmodat2_test] Error 1 make[3]: Leaving directory '/tmp/kci/linux/tools/testing/selftests/fchmodat2' make[3]: Entering directory '/tmp/kci/linux/tools/testing/selftests/filesystems' clang --target=x86_64-linux-gnu -fintegrated-as -Werror=unknown-warning-option -Werror=ignored-optimization-argument -Werror=option-ignored -Werror=unused-command-line-argument --target=x86_64-linux-gnu -fintegrated-as -isystem /tmp/kci/linux/usr/include devpts_pts.c -o /tmp/kci/linux/tools/testing/selftests/filesystems/devpts_pts clang --target=x86_64-linux-gnu -fintegrated-as -Werror=unknown-warning-option -Werror=ignored-optimization-argument -Werror=option-ignored -Werror=unused-command-line-argument --target=x86_64-linux-gnu -fintegrated-as -isystem /tmp/kci/linux/usr/include dnotify_test.c -o /tmp/kci/linux/tools/testing/selftests/filesystems/dnotify_test make[3]: Leaving directory '/tmp/kci/linux/tools/testing/selftests/filesystems' make[3]: Entering directory '/tmp/kci/linux/tools/testing/selftests/filesystems/binderfs' clang --target=x86_64-linux-gnu -fintegrated-as -Werror=unknown-warning-option -Werror=ignored-optimization-argument -Werror=option-ignored -Werror=unused-command-line-argument --target=x86_64-linux-gnu -fintegrated-as -isystem /tmp/kci/linux/usr/include -pthread binderfs_test.c ../../kselftest.h ../../kselftest_harness.h -o binderfs_test clang: error: cannot specify -o when generating multiple output files make[3]: Leaving directory '/tmp/kci/linux/tools/testing/selftests/filesystems/binderfs' make[3]: *** [: binderfs_test] Error 1 conf.c:126:1: warning: non-void function does not return a value [-Wreturn-type] 126 | } | ^ 1 warning generated. test_execve.c:121:13: warning: variable 'have_outer_privilege' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized] 121 | } else if (unshare(CLONE_NEWUSER | CLONE_NEWNS) == 0) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ test_execve.c:136:9: note: uninitialized use occurs here 136 | return have_outer_privilege; | ^~~~~~~~~~~~~~~~~~~~ test_execve.c:121:9: note: remove the 'if' if its condition is always true 121 | } else if (unshare(CLONE_NEWUSER | CLONE_NEWNS) == 0) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 122 | ksft_print_msg("[NOTE]\tUsing a user namespace for tests\n"); 123 | maybe_write_file("/proc/self/setgroups", "deny"); 124 | write_file("/proc/self/uid_map", "%d %d 1", inner_uid, outer_uid); 125 | write_file("/proc/self/gid_map", "0 %d 1", outer_gid); 126 | 127 | have_outer_privilege = false; 128 | } else { | ~~~~~~ 129 | ksft_exit_skip("must be root or be able to create a userns\n"); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 130 | } | ~ test_execve.c:94:27: note: initialize the variable 'have_outer_privilege' to silence this warning 94 | bool have_outer_privilege; | ^ | = false 1 warning generated. In file included from test_memcontrol.c:22: ./cgroup_util.h:21:9: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value] 21 | return abs(a - b) <= (a + b) / 100 * err; | ^ ./cgroup_util.h:21:9: note: use function 'labs' instead 21 | return abs(a - b) <= (a + b) / 100 * err; | ^~~ | labs test_memcontrol.c:731:6: warning: variable 'fd' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized] 731 | if (current != 0) | ^~~~~~~~~~~~ test_memcontrol.c:779:8: note: uninitialized use occurs here 779 | close(fd); | ^~ test_memcontrol.c:731:2: note: remove the 'if' if its condition is always false 731 | if (current != 0) | ^~~~~~~~~~~~~~~~~ 732 | goto cleanup; | ~~~~~~~~~~~~ test_memcontrol.c:727:6: warning: variable 'fd' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized] 727 | if (cg_create(memcg)) | ^~~~~~~~~~~~~~~~ test_memcontrol.c:779:8: note: uninitialized use occurs here 779 | close(fd); | ^~ test_memcontrol.c:727:2: note: remove the 'if' if its condition is always false 727 | if (cg_create(memcg)) | ^~~~~~~~~~~~~~~~~~~~~ 728 | goto cleanup; | ~~~~~~~~~~~~ test_memcontrol.c:724:6: warning: variable 'fd' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized] 724 | if (!memcg) | ^~~~~~ test_memcontrol.c:779:8: note: uninitialized use occurs here 779 | close(fd); | ^~ test_memcontrol.c:724:2: note: remove the 'if' if its condition is always false 724 | if (!memcg) | ^~~~~~~~~~~ 725 | goto cleanup; | ~~~~~~~~~~~~ test_memcontrol.c:719:25: note: initialize the variable 'fd' to silence this warning 719 | int ret = KSFT_FAIL, fd, retries; | ^ | = 0 4 warnings generated. In file included from cgroup_util.c:19: ./cgroup_util.h:21:9: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value] 21 | return abs(a - b) <= (a + b) / 100 * err; | ^ ./cgroup_util.h:21:9: note: use function 'labs' instead 21 | return abs(a - b) <= (a + b) / 100 * err; | ^~~ | labs 1 warning generated. In file included from test_kmem.c:18: ./cgroup_util.h:21:9: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value] 21 | return abs(a - b) <= (a + b) / 100 * err; | ^ ./cgroup_util.h:21:9: note: use function 'labs' instead 21 | return abs(a - b) <= (a + b) / 100 * err; | ^~~ | labs test_kmem.c:195:6: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value] 195 | if (abs(sum - current) < MAX_VMSTAT_ERROR) { | ^ test_kmem.c:195:6: note: use function 'labs' instead 195 | if (abs(sum - current) < MAX_VMSTAT_ERROR) { | ^~~ | labs test_kmem.c:383:35: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value] 383 | if (current > 0 && percpu > 0 && abs(current - percpu) < | ^ test_kmem.c:383:35: note: use function 'labs' instead 383 | if (current > 0 && percpu > 0 && abs(current - percpu) < | ^~~ | labs 3 warnings generated. In file included from cgroup_util.c:19: ./cgroup_util.h:21:9: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value] 21 | return abs(a - b) <= (a + b) / 100 * err; | ^ ./cgroup_util.h:21:9: note: use function 'labs' instead 21 | return abs(a - b) <= (a + b) / 100 * err; | ^~~ | labs 1 warning generated. In file included from test_core.c:19: ./cgroup_util.h:21:9: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value] 21 | return abs(a - b) <= (a + b) / 100 * err; | ^ ./cgroup_util.h:21:9: note: use function 'labs' instead 21 | return abs(a - b) <= (a + b) / 100 * err; | ^~~ | labs 1 warning generated. In file included from cgroup_util.c:19: ./cgroup_util.h:21:9: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value] 21 | return abs(a - b) <= (a + b) / 100 * err; | ^ ./cgroup_util.h:21:9: note: use function 'labs' instead 21 | return abs(a - b) <= (a + b) / 100 * err; | ^~~ | labs 1 warning generated. In file included from test_freezer.c:15: ./cgroup_util.h:21:9: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value] 21 | return abs(a - b) <= (a + b) / 100 * err; | ^ ./cgroup_util.h:21:9: note: use function 'labs' instead 21 | return abs(a - b) <= (a + b) / 100 * err; | ^~~ | labs 1 warning generated. In file included from cgroup_util.c:19: ./cgroup_util.h:21:9: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value] 21 | return abs(a - b) <= (a + b) / 100 * err; | ^ ./cgroup_util.h:21:9: note: use function 'labs' instead 21 | return abs(a - b) <= (a + b) / 100 * err; | ^~~ | labs 1 warning generated. In file included from test_kill.c:14: ./cgroup_util.h:21:9: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value] 21 | return abs(a - b) <= (a + b) / 100 * err; | ^ ./cgroup_util.h:21:9: note: use function 'labs' instead 21 | return abs(a - b) <= (a + b) / 100 * err; | ^~~ | labs 1 warning generated. In file included from cgroup_util.c:19: ./cgroup_util.h:21:9: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value] 21 | return abs(a - b) <= (a + b) / 100 * err; | ^ ./cgroup_util.h:21:9: note: use function 'labs' instead 21 | return abs(a - b) <= (a + b) / 100 * err; | ^~~ | labs 1 warning generated. In file included from test_cpu.c:13: ./cgroup_util.h:21:9: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value] 21 | return abs(a - b) <= (a + b) / 100 * err; | ^ ./cgroup_util.h:21:9: note: use function 'labs' instead 21 | return abs(a - b) <= (a + b) / 100 * err; | ^~~ | labs test_cpu.c:240:35: warning: suggest braces around initialization of subobject [-Wmissing-braces] 240 | struct cpu_hogger children[3] = {NULL}; | ^~~~ | { } /usr/lib/llvm-17/lib/clang/17/include/stddef.h:89:16: note: expanded from macro 'NULL' 89 | # define NULL ((void*)0) | ^~~~~~~~~~ test_cpu.c:411:31: warning: suggest braces around initialization of subobject [-Wmissing-braces] 411 | struct cpu_hogger leaf[3] = {NULL}; | ^~~~ | { } /usr/lib/llvm-17/lib/clang/17/include/stddef.h:89:16: note: expanded from macro 'NULL' 89 | # define NULL ((void*)0) | ^~~~~~~~~~ 3 warnings generated. In file included from cgroup_util.c:19: ./cgroup_util.h:21:9: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value] 21 | return abs(a - b) <= (a + b) / 100 * err; | ^ ./cgroup_util.h:21:9: note: use function 'labs' instead 21 | return abs(a - b) <= (a + b) / 100 * err; | ^~~ | labs 1 warning generated. In file included from test_cpuset.c:7: ./cgroup_util.h:21:9: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value] 21 | return abs(a - b) <= (a + b) / 100 * err; | ^ ./cgroup_util.h:21:9: note: use function 'labs' instead 21 | return abs(a - b) <= (a + b) / 100 * err; | ^~~ | labs 1 warning generated. In file included from cgroup_util.c:19: ./cgroup_util.h:21:9: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value] 21 | return abs(a - b) <= (a + b) / 100 * err; | ^ ./cgroup_util.h:21:9: note: use function 'labs' instead 21 | return abs(a - b) <= (a + b) / 100 * err; | ^~~ | labs 1 warning generated. In file included from test_zswap.c:14: ./cgroup_util.h:21:9: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value] 21 | return abs(a - b) <= (a + b) / 100 * err; | ^ ./cgroup_util.h:21:9: note: use function 'labs' instead 21 | return abs(a - b) <= (a + b) / 100 * err; | ^~~ | labs test_zswap.c:180:6: warning: variable 'test_group' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized] 180 | if (cg_write(root, "cgroup.subtree_control", "+memory")) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ test_zswap.c:229:7: note: uninitialized use occurs here 229 | free(test_group); | ^~~~~~~~~~ test_zswap.c:180:2: note: remove the 'if' if its condition is always false 180 | if (cg_write(root, "cgroup.subtree_control", "+memory")) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 181 | goto out; | ~~~~~~~~ test_zswap.c:158:18: note: initialize the variable 'test_group' to silence this warning 158 | char *test_group; | ^ | = NULL 2 warnings generated. In file included from cgroup_util.c:19: ./cgroup_util.h:21:9: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value] 21 | return abs(a - b) <= (a + b) / 100 * err; | ^ ./cgroup_util.h:21:9: note: use function 'labs' instead 21 | return abs(a - b) <= (a + b) / 100 * err; | ^~~ | labs 1 warning generated. clang: error: argument unused during compilation: '-pie' [-Werror,-Wunused-command-line-argument] make[3]: *** [Makefile:32: /tmp/kci/linux/tools/testing/selftests/exec/load_address_4096] Error 1 clang: error: unknown argument '-static-libasan'; did you mean '-static-libsan'? make[3]: *** [../lib.mk:147: /tmp/kci/linux/tools/testing/selftests/fchmodat2/fchmodat2_test] Error 1 clang: error: cannot specify -o when generating multiple output files make[3]: *** [: binderfs_test] Error 1 Warning: Kernel ABI header at 'tools/include/uapi/linux/if_xdp.h' differs from latest version at 'include/uapi/linux/if_xdp.h' Makefile:123: tools/build/Makefile.feature: No such file or directory make[4]: *** No rule to make target 'tools/build/Makefile.feature'. Stop. make[3]: *** [Makefile:122: /tmp/kci/linux/tools/testing/selftests/hid/tools/sbin/bpftool] Error 2 mq_perf_tests.c:336:41: warning: passing 'int *' to parameter of type 'unsigned int *' converts between pointers to integer types with different sign [-Wpointer-sign] 336 | mq_receive(queue, buff, sizeof(buff), &priority); | ^~~~~~~~~ /usr/include/mqueue.h:67:21: note: passing argument to parameter '__msg_prio' here 67 | unsigned int *__msg_prio) __nonnull ((2)); | ^ mq_perf_tests.c:462:3: warning: passing 'int *' to parameter of type 'unsigned int *' converts between pointers to integer types with different sign [-Wpointer-sign] 462 | do_send_recv(); | ^~~~~~~~~~~~~~ mq_perf_tests.c:355:41: note: expanded from macro 'do_send_recv' 355 | if (mq_receive(queue, buff, MSG_SIZE, &prio_in) != MSG_SIZE) \ | ^~~~~~~~ /usr/include/mqueue.h:67:21: note: passing argument to parameter '__msg_prio' here 67 | unsigned int *__msg_prio) __nonnull ((2)); | ^ mq_perf_tests.c:498:4: warning: passing 'int *' to parameter of type 'unsigned int *' converts between pointers to integer types with different sign [-Wpointer-sign] 498 | do_send_recv(); | ^~~~~~~~~~~~~~ mq_perf_tests.c:355:41: note: expanded from macro 'do_send_recv' 355 | if (mq_receive(queue, buff, MSG_SIZE, &prio_in) != MSG_SIZE) \ | ^~~~~~~~ /usr/include/mqueue.h:67:21: note: passing argument to parameter '__msg_prio' here 67 | unsigned int *__msg_prio) __nonnull ((2)); | ^ mq_perf_tests.c:515:3: warning: passing 'int *' to parameter of type 'unsigned int *' converts between pointers to integer types with different sign [-Wpointer-sign] 515 | drain_queue(); | ^~~~~~~~~~~~~ mq_perf_tests.c:341:43: note: expanded from macro 'drain_queue' 341 | while (mq_receive(queue, buff, MSG_SIZE, &prio_in) == MSG_SIZE) | ^~~~~~~~ /usr/include/mqueue.h:67:21: note: passing argument to parameter '__msg_prio' here 67 | unsigned int *__msg_prio) __nonnull ((2)); | ^ 4 warnings generated. timestamping.c:285:18: warning: field 'cm' with variable sized type 'struct cmsghdr' not at the end of a struct or class is a GNU extension [-Wgnu-variable-sized-type-not-at-end] 285 | struct cmsghdr cm; | ^ 1 warning generated. ipsec.c:834:5: warning: field 'u' with variable sized type 'union (unnamed union at ipsec.c:830:3)' not at the end of a struct or class is a GNU extension [-Wgnu-variable-sized-type-not-at-end] 834 | } u; | ^ 1 warning generated. Warning: Kernel ABI header at 'tools/include/uapi/linux/if_xdp.h' differs from latest version at 'include/uapi/linux/if_xdp.h' ip_local_port_range.c:387:3: warning: variable 'addr_len' is used uninitialized whenever 'for' loop exits because its condition is false [-Wsometimes-uninitialized] 387 | ASSERT_TRUE(false) TH_LOG("unsupported socket domain"); | ^~~~~~~~~~~~~~~~~~ ./../kselftest_harness.h:531:2: note: expanded from macro 'ASSERT_TRUE' 531 | __EXPECT(0, "0", seen, #seen, !=, 1) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./../kselftest_harness.h:749:14: note: expanded from macro '__EXPECT' 749 | } while (0); OPTIONAL_HANDLER(_assert) | ^~~~~~~~~~~~~~~~~~~~~~~~~ ./../kselftest_harness.h:694:9: note: expanded from macro 'OPTIONAL_HANDLER' 694 | for (; _metadata->trigger; _metadata->trigger = \ | ^~~~~~~~~~~~~~~~~~ ip_local_port_range.c:391:24: note: uninitialized use occurs here 391 | connect(fd, &addr.sa, addr_len); | ^~~~~~~~ ip_local_port_range.c:387:3: note: remove the condition if it is always true 387 | ASSERT_TRUE(false) TH_LOG("unsupported socket domain"); | ^ ./../kselftest_harness.h:531:2: note: expanded from macro 'ASSERT_TRUE' 531 | __EXPECT(0, "0", seen, #seen, !=, 1) | ^ ./../kselftest_harness.h:749:14: note: expanded from macro '__EXPECT' 749 | } while (0); OPTIONAL_HANDLER(_assert) | ^ ./../kselftest_harness.h:694:9: note: expanded from macro 'OPTIONAL_HANDLER' 694 | for (; _metadata->trigger; _metadata->trigger = \ | ^ ip_local_port_range.c:346:20: note: initialize the variable 'addr_len' to silence this warning 346 | socklen_t addr_len; | ^ | = 0 1 warning generated. pm_nl_ctl.c:1258:13: warning: variable 'family' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized] 1258 | } else if (inet_pton(AF_INET6, argv[2], &a6->sin6_addr)) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pm_nl_ctl.c:1265:16: note: uninitialized use occurs here 1265 | sock = socket(family, SOCK_STREAM, IPPROTO_MPTCP); | ^~~~~~ pm_nl_ctl.c:1258:9: note: remove the 'if' if its condition is always true 1258 | } else if (inet_pton(AF_INET6, argv[2], &a6->sin6_addr)) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1259 | family = AF_INET6; 1260 | a6->sin6_family = family; 1261 | a6->sin6_port = htons(atoi(argv[3])); 1262 | } else | ~~~~ 1263 | error(1, errno, "can't parse ip %s", argv[2]); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pm_nl_ctl.c:1242:18: note: initialize the variable 'family' to silence this warning 1242 | u_int16_t family; | ^ | = 0 1 warning generated. sctp_collision.c:62:70: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] 62 | ret = recvfrom(sd, buf, sizeof(buf), 0, (struct sockaddr *)&daddr, &len); | ^~~~ /usr/include/x86_64-linux-gnu/sys/socket.h:165:27: note: passing argument to parameter '__addr_len' here 165 | socklen_t *__restrict __addr_len); | ^ sctp_collision.c:88:70: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] 88 | ret = recvfrom(sd, buf, sizeof(buf), 0, (struct sockaddr *)&daddr, &len); | ^~~~ /usr/include/x86_64-linux-gnu/sys/socket.h:165:27: note: passing argument to parameter '__addr_len' here 165 | socklen_t *__restrict __addr_len); | ^ 2 warnings generated. Makefile:63: warning: overriding recipe for target 'emit_tests' ../lib.mk:111: warning: ignoring old recipe for target 'emit_tests' make[3]: *** No targets. Stop. clang: error: unknown argument '-static-libasan'; did you mean '-static-libsan'? clang: error: cannot specify -o when generating multiple output files make[3]: *** [../lib.mk:147: /tmp/kci/linux/tools/testing/selftests/openat2/openat2_test] Error 1 clang: error: cannot specify -o when generating multiple output files make[3]: *** [../lib.mk:147: /tmp/kci/linux/tools/testing/selftests/resctrl/resctrl_tests] Error 1 param_test.c:1234:10: error: address argument to atomic operation must be a pointer to _Atomic type ('intptr_t *' (aka 'long *') invalid) 1234 | while (!atomic_load(&args->percpu_list_ptr)) {} | ^ ~~~~~~~~~~~~~~~~~~~~~~ /usr/lib/llvm-17/lib/clang/17/include/stdatomic.h:140:29: note: expanded from macro 'atomic_load' 140 | #define atomic_load(object) __c11_atomic_load(object, __ATOMIC_SEQ_CST) | ^ ~~~~~~ param_test.c:1302:2: error: address argument to atomic operation must be a pointer to _Atomic type ('intptr_t *' (aka 'long *') invalid) 1302 | atomic_store(&args->percpu_list_ptr, (intptr_t)&list_a); | ^ ~~~~~~~~~~~~~~~~~~~~~~ /usr/lib/llvm-17/lib/clang/17/include/stdatomic.h:137:39: note: expanded from macro 'atomic_store' 137 | #define atomic_store(object, desired) __c11_atomic_store(object, desired, __ATOMIC_SEQ_CST) | ^ ~~~~~~ param_test.c:1304:10: error: address argument to atomic operation must be a pointer to _Atomic type ('int *' invalid) 1304 | while (!atomic_load(&args->stop)) { | ^ ~~~~~~~~~~~ /usr/lib/llvm-17/lib/clang/17/include/stdatomic.h:140:29: note: expanded from macro 'atomic_load' 140 | #define atomic_load(object) __c11_atomic_load(object, __ATOMIC_SEQ_CST) | ^ ~~~~~~ param_test.c:1311:19: error: address argument to atomic operation must be a pointer to _Atomic type ('intptr_t *' (aka 'long *') invalid) 1311 | if (expect_b != atomic_load(&list_b.c[cpu_b].head->data)) { | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/lib/llvm-17/lib/clang/17/include/stdatomic.h:140:29: note: expanded from macro 'atomic_load' 140 | #define atomic_load(object) __c11_atomic_load(object, __ATOMIC_SEQ_CST) | ^ ~~~~~~ param_test.c:1317:3: error: address argument to atomic operation must be a pointer to _Atomic type ('intptr_t *' (aka 'long *') invalid) 1317 | atomic_store(&args->percpu_list_ptr, (intptr_t)&list_b); | ^ ~~~~~~~~~~~~~~~~~~~~~~ /usr/lib/llvm-17/lib/clang/17/include/stdatomic.h:137:39: note: expanded from macro 'atomic_store' 137 | #define atomic_store(object, desired) __c11_atomic_store(object, desired, __ATOMIC_SEQ_CST) | ^ ~~~~~~ param_test.c:1327:14: error: address argument to atomic operation must be a pointer to _Atomic type ('intptr_t *' (aka 'long *') invalid) 1327 | expect_a = atomic_load(&list_a.c[cpu_a].head->data); | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/lib/llvm-17/lib/clang/17/include/stdatomic.h:140:29: note: expanded from macro 'atomic_load' 140 | #define atomic_load(object) __c11_atomic_load(object, __ATOMIC_SEQ_CST) | ^ ~~~~~~ param_test.c:1334:19: error: address argument to atomic operation must be a pointer to _Atomic type ('intptr_t *' (aka 'long *') invalid) 1334 | if (expect_a != atomic_load(&list_a.c[cpu_a].head->data)) { | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/lib/llvm-17/lib/clang/17/include/stdatomic.h:140:29: note: expanded from macro 'atomic_load' 140 | #define atomic_load(object) __c11_atomic_load(object, __ATOMIC_SEQ_CST) | ^ ~~~~~~ param_test.c:1340:3: error: address argument to atomic operation must be a pointer to _Atomic type ('intptr_t *' (aka 'long *') invalid) 1340 | atomic_store(&args->percpu_list_ptr, (intptr_t)&list_a); | ^ ~~~~~~~~~~~~~~~~~~~~~~ /usr/lib/llvm-17/lib/clang/17/include/stdatomic.h:137:39: note: expanded from macro 'atomic_store' 137 | #define atomic_store(object, desired) __c11_atomic_store(object, desired, __ATOMIC_SEQ_CST) | ^ ~~~~~~ param_test.c:1347:14: error: address argument to atomic operation must be a pointer to _Atomic type ('intptr_t *' (aka 'long *') invalid) 1347 | expect_b = atomic_load(&list_b.c[cpu_b].head->data); | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/lib/llvm-17/lib/clang/17/include/stdatomic.h:140:29: note: expanded from macro 'atomic_load' 140 | #define atomic_load(object) __c11_atomic_load(object, __ATOMIC_SEQ_CST) | ^ ~~~~~~ param_test.c:1404:2: error: address argument to atomic operation must be a pointer to _Atomic type ('int *' invalid) 1404 | atomic_store(&thread_args.stop, 1); | ^ ~~~~~~~~~~~~~~~~~ /usr/lib/llvm-17/lib/clang/17/include/stdatomic.h:137:39: note: expanded from macro 'atomic_store' 137 | #define atomic_store(object, desired) __c11_atomic_store(object, desired, __ATOMIC_SEQ_CST) | ^ ~~~~~~ 10 errors generated. make[3]: *** [Makefile:33: /tmp/kci/linux/tools/testing/selftests/rseq/param_test] Error 1 clang: error: -z noexecstack: 'linker' input unused [-Werror,-Wunused-command-line-argument] make[3]: *** [Makefile:34: /tmp/kci/linux/tools/testing/selftests/sgx/main.o] Error 1 timerfd.c:64:7: error: absolute value function 'abs' given an argument of type 'long long' but has parameter of type 'int' which may cause truncation of value [-Werror,-Wabsolute-value] 64 | if (abs(elapsed - 3600) > 60) { | ^ timerfd.c:64:7: note: use function 'llabs' instead 64 | if (abs(elapsed - 3600) > 60) { | ^~~ | llabs 1 error generated. make[3]: *** [../lib.mk:147: /tmp/kci/linux/tools/testing/selftests/timens/timerfd] Error 1 posix_timers.c:69:6: warning: absolute value function 'abs' given an argument of type 'long long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value] 69 | if (abs(diff - DELAY * USECS_PER_SEC) > USECS_PER_SEC / 2) { | ^ posix_timers.c:69:6: note: use function 'llabs' instead 69 | if (abs(diff - DELAY * USECS_PER_SEC) > USECS_PER_SEC / 2) { | ^~~ | llabs 1 warning generated. rtcpie.c:32:21: warning: variable 'irqcount' set but not used [-Wunused-but-set-variable] 32 | int i, fd, retval, irqcount = 0; | ^ 1 warning generated. valid-adjtimex.c:66:6: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 66 | -499<<16, | ~~~~^ valid-adjtimex.c:67:6: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 67 | -450<<16, | ~~~~^ valid-adjtimex.c:68:6: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 68 | -400<<16, | ~~~~^ valid-adjtimex.c:69:6: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 69 | -350<<16, | ~~~~^ valid-adjtimex.c:70:6: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 70 | -300<<16, | ~~~~^ valid-adjtimex.c:71:6: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 71 | -250<<16, | ~~~~^ valid-adjtimex.c:72:6: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 72 | -200<<16, | ~~~~^ valid-adjtimex.c:73:6: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 73 | -150<<16, | ~~~~^ valid-adjtimex.c:74:6: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 74 | -100<<16, | ~~~~^ valid-adjtimex.c:75:5: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 75 | -75<<16, | ~~~^ valid-adjtimex.c:76:5: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 76 | -50<<16, | ~~~^ valid-adjtimex.c:77:5: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 77 | -25<<16, | ~~~^ valid-adjtimex.c:78:5: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 78 | -10<<16, | ~~~^ valid-adjtimex.c:79:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 79 | -5<<16, | ~~^ valid-adjtimex.c:80:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 80 | -1<<16, | ~~^ valid-adjtimex.c:100:7: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 100 | -1000<<16, | ~~~~~^ valid-adjtimex.c:101:6: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 101 | -550<<16, | ~~~~^ 17 warnings generated. perf_test.c:239:38: warning: taking address of packed member 'write_index' of class or structure 'user_reg' may result in an unaligned pointer value [-Waddress-of-packed-member] 239 | ASSERT_NE(-1, write(self->data_fd, ®.write_index, | ^~~~~~~~~~~~~~~ ./../kselftest_harness.h:467:32: note: expanded from macro 'ASSERT_NE' 467 | __EXPECT(expected, #expected, seen, #seen, !=, 1) | ^~~~ ./../kselftest_harness.h:707:13: note: expanded from macro '__EXPECT' 707 | __typeof__(_seen) __seen = (_seen); \ | ^~~~~ 1 warning generated. parse_vdso.c:65:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 65 | if (g = h & 0xf0000000) | ~~^~~~~~~~~~~~~~~~ parse_vdso.c:65:9: note: place parentheses around the assignment to silence this warning 65 | if (g = h & 0xf0000000) | ^ | ( ) parse_vdso.c:65:9: note: use '==' to turn this assignment into an equality comparison 65 | if (g = h & 0xf0000000) | ^ | == parse_vdso.c:206:22: warning: passing 'const char *' to parameter of type 'const unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 206 | ver_hash = elf_hash(version); | ^~~~~~~ parse_vdso.c:59:52: note: passing argument to parameter 'name' here 59 | static unsigned long elf_hash(const unsigned char *name) | ^ parse_vdso.c:207:46: warning: passing 'const char *' to parameter of type 'const unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 207 | ELF(Word) chain = vdso_info.bucket[elf_hash(name) % vdso_info.nbucket]; | ^~~~ parse_vdso.c:59:52: note: passing argument to parameter 'name' here 59 | static unsigned long elf_hash(const unsigned char *name) | ^ 3 warnings generated. parse_vdso.c:65:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 65 | if (g = h & 0xf0000000) | ~~^~~~~~~~~~~~~~~~ parse_vdso.c:65:9: note: place parentheses around the assignment to silence this warning 65 | if (g = h & 0xf0000000) | ^ | ( ) parse_vdso.c:65:9: note: use '==' to turn this assignment into an equality comparison 65 | if (g = h & 0xf0000000) | ^ | == parse_vdso.c:206:22: warning: passing 'const char *' to parameter of type 'const unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 206 | ver_hash = elf_hash(version); | ^~~~~~~ parse_vdso.c:59:52: note: passing argument to parameter 'name' here 59 | static unsigned long elf_hash(const unsigned char *name) | ^ parse_vdso.c:207:46: warning: passing 'const char *' to parameter of type 'const unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 207 | ELF(Word) chain = vdso_info.bucket[elf_hash(name) % vdso_info.nbucket]; | ^~~~ parse_vdso.c:59:52: note: passing argument to parameter 'name' here 59 | static unsigned long elf_hash(const unsigned char *name) | ^ 3 warnings generated. parse_vdso.c:65:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 65 | if (g = h & 0xf0000000) | ~~^~~~~~~~~~~~~~~~ parse_vdso.c:65:9: note: place parentheses around the assignment to silence this warning 65 | if (g = h & 0xf0000000) | ^ | ( ) parse_vdso.c:65:9: note: use '==' to turn this assignment into an equality comparison 65 | if (g = h & 0xf0000000) | ^ | == parse_vdso.c:206:22: warning: passing 'const char *' to parameter of type 'const unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 206 | ver_hash = elf_hash(version); | ^~~~~~~ parse_vdso.c:59:52: note: passing argument to parameter 'name' here 59 | static unsigned long elf_hash(const unsigned char *name) | ^ parse_vdso.c:207:46: warning: passing 'const char *' to parameter of type 'const unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 207 | ELF(Word) chain = vdso_info.bucket[elf_hash(name) % vdso_info.nbucket]; | ^~~~ parse_vdso.c:59:52: note: passing argument to parameter 'name' here 59 | static unsigned long elf_hash(const unsigned char *name) | ^ 3 warnings generated. vdso_standalone_test_x86.c:73:16: warning: unknown attribute 'externally_visible' ignored [-Wunknown-attributes] 73 | __attribute__((externally_visible)) void c_main(void **stack) | ^~~~~~~~~~~~~~~~~~ 1 warning generated. parse_vdso.c:65:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 65 | if (g = h & 0xf0000000) | ~~^~~~~~~~~~~~~~~~ parse_vdso.c:65:9: note: place parentheses around the assignment to silence this warning 65 | if (g = h & 0xf0000000) | ^ | ( ) parse_vdso.c:65:9: note: use '==' to turn this assignment into an equality comparison 65 | if (g = h & 0xf0000000) | ^ | == parse_vdso.c:206:22: warning: passing 'const char *' to parameter of type 'const unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 206 | ver_hash = elf_hash(version); | ^~~~~~~ parse_vdso.c:59:52: note: passing argument to parameter 'name' here 59 | static unsigned long elf_hash(const unsigned char *name) | ^ parse_vdso.c:207:46: warning: passing 'const char *' to parameter of type 'const unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 207 | ELF(Word) chain = vdso_info.bucket[elf_hash(name) % vdso_info.nbucket]; | ^~~~ parse_vdso.c:59:52: note: passing argument to parameter 'name' here 59 | static unsigned long elf_hash(const unsigned char *name) | ^ 3 warnings generated. /usr/bin/x86_64-linux-gnu-ld: /tmp/vdso_standalone_test_x86-cb41c8.o: in function `c_main': vdso_standalone_test_x86.c:(.text+0x1e6): undefined reference to `memcpy' clang: error: linker command failed with exit code 1 (use -v to see invocation) make[3]: *** [Makefile:28: /tmp/kci/linux/tools/testing/selftests/vDSO/vdso_standalone_test_x86] Error 1 ksm_functional_tests.c:160:6: warning: variable 'map' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized] 160 | if (get_my_merging_pages() > 0) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ ksm_functional_tests.c:217:9: note: uninitialized use occurs here 217 | munmap(map, size); | ^~~ ksm_functional_tests.c:160:2: note: remove the 'if' if its condition is always false 160 | if (get_my_merging_pages() > 0) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 161 | ksft_test_result_fail("Still pages merged\n"); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 162 | goto unmap; | ~~~~~~~~~~~ 163 | } | ~ ksm_functional_tests.c:155:6: warning: variable 'map' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized] 155 | if (ksm_unmerge()) { | ^~~~~~~~~~~~~ ksm_functional_tests.c:217:9: note: uninitialized use occurs here 217 | munmap(map, size); | ^~~ ksm_functional_tests.c:155:2: note: remove the 'if' if its condition is always false 155 | if (ksm_unmerge()) { | ^~~~~~~~~~~~~~~~~~~~ 156 | ksft_test_result_fail("Disabling (unmerging) KSM failed\n"); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 157 | goto unmap; | ~~~~~~~~~~~ 158 | } | ~ ksm_functional_tests.c:151:11: note: initialize the variable 'map' to silence this warning 151 | char *map; | ^ | = NULL 2 warnings generated. clang: error: cannot specify -o when generating multiple output files make[3]: *** [Makefile:78: /tmp/kci/linux/tools/testing/selftests/x86/single_step_syscall_64] Error 1 clang: error: argument unused during compilation: '-pie' [-Werror,-Wunused-command-line-argument] make[3]: *** [Makefile:32: /tmp/kci/linux/tools/testing/selftests/exec/load_address_4096] Error 1 clang: error: unknown argument '-static-libasan'; did you mean '-static-libsan'? make[3]: *** [../lib.mk:147: /tmp/kci/linux/tools/testing/selftests/fchmodat2/fchmodat2_test] Error 1 Makefile:123: tools/build/Makefile.feature: No such file or directory make[4]: *** No rule to make target 'tools/build/Makefile.feature'. Stop. make[3]: *** [Makefile:122: /tmp/kci/linux/tools/testing/selftests/hid/tools/sbin/bpftool] Error 2 Makefile:63: warning: overriding recipe for target 'emit_tests' ../lib.mk:111: warning: ignoring old recipe for target 'emit_tests' make[3]: *** No rule to make target 'install'. Stop. clang: error: unknown argument '-static-libasan'; did you mean '-static-libsan'? clang: error: cannot specify -o when generating multiple output files make[3]: *** [../lib.mk:147: /tmp/kci/linux/tools/testing/selftests/openat2/openat2_test] Error 1 clang: error: cannot specify -o when generating multiple output files make[3]: *** [../lib.mk:147: /tmp/kci/linux/tools/testing/selftests/resctrl/resctrl_tests] Error 1 param_test.c:1234:10: error: address argument to atomic operation must be a pointer to _Atomic type ('intptr_t *' (aka 'long *') invalid) 1234 | while (!atomic_load(&args->percpu_list_ptr)) {} | ^ ~~~~~~~~~~~~~~~~~~~~~~ /usr/lib/llvm-17/lib/clang/17/include/stdatomic.h:140:29: note: expanded from macro 'atomic_load' 140 | #define atomic_load(object) __c11_atomic_load(object, __ATOMIC_SEQ_CST) | ^ ~~~~~~ param_test.c:1302:2: error: address argument to atomic operation must be a pointer to _Atomic type ('intptr_t *' (aka 'long *') invalid) 1302 | atomic_store(&args->percpu_list_ptr, (intptr_t)&list_a); | ^ ~~~~~~~~~~~~~~~~~~~~~~ /usr/lib/llvm-17/lib/clang/17/include/stdatomic.h:137:39: note: expanded from macro 'atomic_store' 137 | #define atomic_store(object, desired) __c11_atomic_store(object, desired, __ATOMIC_SEQ_CST) | ^ ~~~~~~ param_test.c:1304:10: error: address argument to atomic operation must be a pointer to _Atomic type ('int *' invalid) 1304 | while (!atomic_load(&args->stop)) { | ^ ~~~~~~~~~~~ /usr/lib/llvm-17/lib/clang/17/include/stdatomic.h:140:29: note: expanded from macro 'atomic_load' 140 | #define atomic_load(object) __c11_atomic_load(object, __ATOMIC_SEQ_CST) | ^ ~~~~~~ param_test.c:1311:19: error: address argument to atomic operation must be a pointer to _Atomic type ('intptr_t *' (aka 'long *') invalid) 1311 | if (expect_b != atomic_load(&list_b.c[cpu_b].head->data)) { | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/lib/llvm-17/lib/clang/17/include/stdatomic.h:140:29: note: expanded from macro 'atomic_load' 140 | #define atomic_load(object) __c11_atomic_load(object, __ATOMIC_SEQ_CST) | ^ ~~~~~~ param_test.c:1317:3: error: address argument to atomic operation must be a pointer to _Atomic type ('intptr_t *' (aka 'long *') invalid) 1317 | atomic_store(&args->percpu_list_ptr, (intptr_t)&list_b); | ^ ~~~~~~~~~~~~~~~~~~~~~~ /usr/lib/llvm-17/lib/clang/17/include/stdatomic.h:137:39: note: expanded from macro 'atomic_store' 137 | #define atomic_store(object, desired) __c11_atomic_store(object, desired, __ATOMIC_SEQ_CST) | ^ ~~~~~~ param_test.c:1327:14: error: address argument to atomic operation must be a pointer to _Atomic type ('intptr_t *' (aka 'long *') invalid) 1327 | expect_a = atomic_load(&list_a.c[cpu_a].head->data); | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/lib/llvm-17/lib/clang/17/include/stdatomic.h:140:29: note: expanded from macro 'atomic_load' 140 | #define atomic_load(object) __c11_atomic_load(object, __ATOMIC_SEQ_CST) | ^ ~~~~~~ param_test.c:1334:19: error: address argument to atomic operation must be a pointer to _Atomic type ('intptr_t *' (aka 'long *') invalid) 1334 | if (expect_a != atomic_load(&list_a.c[cpu_a].head->data)) { | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/lib/llvm-17/lib/clang/17/include/stdatomic.h:140:29: note: expanded from macro 'atomic_load' 140 | #define atomic_load(object) __c11_atomic_load(object, __ATOMIC_SEQ_CST) | ^ ~~~~~~ param_test.c:1340:3: error: address argument to atomic operation must be a pointer to _Atomic type ('intptr_t *' (aka 'long *') invalid) 1340 | atomic_store(&args->percpu_list_ptr, (intptr_t)&list_a); | ^ ~~~~~~~~~~~~~~~~~~~~~~ /usr/lib/llvm-17/lib/clang/17/include/stdatomic.h:137:39: note: expanded from macro 'atomic_store' 137 | #define atomic_store(object, desired) __c11_atomic_store(object, desired, __ATOMIC_SEQ_CST) | ^ ~~~~~~ param_test.c:1347:14: error: address argument to atomic operation must be a pointer to _Atomic type ('intptr_t *' (aka 'long *') invalid) 1347 | expect_b = atomic_load(&list_b.c[cpu_b].head->data); | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/lib/llvm-17/lib/clang/17/include/stdatomic.h:140:29: note: expanded from macro 'atomic_load' 140 | #define atomic_load(object) __c11_atomic_load(object, __ATOMIC_SEQ_CST) | ^ ~~~~~~ param_test.c:1404:2: error: address argument to atomic operation must be a pointer to _Atomic type ('int *' invalid) 1404 | atomic_store(&thread_args.stop, 1); | ^ ~~~~~~~~~~~~~~~~~ /usr/lib/llvm-17/lib/clang/17/include/stdatomic.h:137:39: note: expanded from macro 'atomic_store' 137 | #define atomic_store(object, desired) __c11_atomic_store(object, desired, __ATOMIC_SEQ_CST) | ^ ~~~~~~ 10 errors generated. make[3]: *** [Makefile:33: /tmp/kci/linux/tools/testing/selftests/rseq/param_test] Error 1 clang: error: -z noexecstack: 'linker' input unused [-Werror,-Wunused-command-line-argument] make[3]: *** [Makefile:34: /tmp/kci/linux/tools/testing/selftests/sgx/main.o] Error 1 timerfd.c:64:7: error: absolute value function 'abs' given an argument of type 'long long' but has parameter of type 'int' which may cause truncation of value [-Werror,-Wabsolute-value] 64 | if (abs(elapsed - 3600) > 60) { | ^ timerfd.c:64:7: note: use function 'llabs' instead 64 | if (abs(elapsed - 3600) > 60) { | ^~~ | llabs 1 error generated. make[3]: *** [../lib.mk:147: /tmp/kci/linux/tools/testing/selftests/timens/timerfd] Error 1 vdso_standalone_test_x86.c:73:16: warning: unknown attribute 'externally_visible' ignored [-Wunknown-attributes] 73 | __attribute__((externally_visible)) void c_main(void **stack) | ^~~~~~~~~~~~~~~~~~ 1 warning generated. parse_vdso.c:65:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 65 | if (g = h & 0xf0000000) | ~~^~~~~~~~~~~~~~~~ parse_vdso.c:65:9: note: place parentheses around the assignment to silence this warning 65 | if (g = h & 0xf0000000) | ^ | ( ) parse_vdso.c:65:9: note: use '==' to turn this assignment into an equality comparison 65 | if (g = h & 0xf0000000) | ^ | == parse_vdso.c:206:22: warning: passing 'const char *' to parameter of type 'const unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 206 | ver_hash = elf_hash(version); | ^~~~~~~ parse_vdso.c:59:52: note: passing argument to parameter 'name' here 59 | static unsigned long elf_hash(const unsigned char *name) | ^ parse_vdso.c:207:46: warning: passing 'const char *' to parameter of type 'const unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 207 | ELF(Word) chain = vdso_info.bucket[elf_hash(name) % vdso_info.nbucket]; | ^~~~ parse_vdso.c:59:52: note: passing argument to parameter 'name' here 59 | static unsigned long elf_hash(const unsigned char *name) | ^ 3 warnings generated. /usr/bin/x86_64-linux-gnu-ld: /tmp/vdso_standalone_test_x86-0208c1.o: in function `c_main': vdso_standalone_test_x86.c:(.text+0x1e6): undefined reference to `memcpy' clang: error: linker command failed with exit code 1 (use -v to see invocation) make[3]: *** [Makefile:28: /tmp/kci/linux/tools/testing/selftests/vDSO/vdso_standalone_test_x86] Error 1 clang: error: cannot specify -o when generating multiple output files make[3]: *** [Makefile:78: /tmp/kci/linux/tools/testing/selftests/x86/single_step_syscall_64] Error 1 Test failures found in stable-rc/linux-6.7.y kbuild-clang-17-x86 (kbuild-clang-17-x86) v6.7.11-425-g7dda4c4f0b32a clang --target=x86_64-linux-gnu -fintegrated-as -Werror=unknown-warning-option -Werror=ignored-optimization-argument -Werror=option-ignored -Werror=unused-command-line-argument --target=x86_64-linux-gnu -fintegrated-as -Wall -Wno-nonnull -D_GNU_SOURCE -Wl,-z,max-page-size=0x1000 -pie -static load_address.c -o /tmp/kci/linux/tools/testing/selftests/exec/load_address_4096 clang: error: argument unused during compilation: '-pie' [-Werror,-Wunused-command-line-argument] make[3]: *** [Makefile:32: /tmp/kci/linux/tools/testing/selftests/exec/load_address_4096] Error 1 make[3]: Leaving directory '/tmp/kci/linux/tools/testing/selftests/exec' make[3]: Entering directory '/tmp/kci/linux/tools/testing/selftests/fchmodat2' clang --target=x86_64-linux-gnu -fintegrated-as -Werror=unknown-warning-option -Werror=ignored-optimization-argument -Werror=option-ignored -Werror=unused-command-line-argument --target=x86_64-linux-gnu -fintegrated-as -Wall -O2 -g -fsanitize=address -fsanitize=undefined -static-libasan -isystem /tmp/kci/linux/usr/include fchmodat2_test.c -o /tmp/kci/linux/tools/testing/selftests/fchmodat2/fchmodat2_test clang: error: unknown argument '-static-libasan'; did you mean '-static-libsan'? make[3]: *** [../lib.mk:147: /tmp/kci/linux/tools/testing/selftests/fchmodat2/fchmodat2_test] Error 1 make[3]: Leaving directory '/tmp/kci/linux/tools/testing/selftests/fchmodat2' make[3]: Entering directory '/tmp/kci/linux/tools/testing/selftests/filesystems' clang --target=x86_64-linux-gnu -fintegrated-as -Werror=unknown-warning-option -Werror=ignored-optimization-argument -Werror=option-ignored -Werror=unused-command-line-argument --target=x86_64-linux-gnu -fintegrated-as -isystem /tmp/kci/linux/usr/include devpts_pts.c -o /tmp/kci/linux/tools/testing/selftests/filesystems/devpts_pts clang --target=x86_64-linux-gnu -fintegrated-as -Werror=unknown-warning-option -Werror=ignored-optimization-argument -Werror=option-ignored -Werror=unused-command-line-argument --target=x86_64-linux-gnu -fintegrated-as -isystem /tmp/kci/linux/usr/include dnotify_test.c -o /tmp/kci/linux/tools/testing/selftests/filesystems/dnotify_test make[3]: Leaving directory '/tmp/kci/linux/tools/testing/selftests/filesystems' make[3]: Entering directory '/tmp/kci/linux/tools/testing/selftests/filesystems/binderfs' clang --target=x86_64-linux-gnu -fintegrated-as -Werror=unknown-warning-option -Werror=ignored-optimization-argument -Werror=option-ignored -Werror=unused-command-line-argument --target=x86_64-linux-gnu -fintegrated-as -isystem /tmp/kci/linux/usr/include -pthread binderfs_test.c ../../kselftest.h ../../kselftest_harness.h -o binderfs_test clang: error: cannot specify -o when generating multiple output files make[3]: Leaving directory '/tmp/kci/linux/tools/testing/selftests/filesystems/binderfs' make[3]: *** [: binderfs_test] Error 1 conf.c:119:1: warning: non-void function does not return a value [-Wreturn-type] 119 | } | ^ 1 warning generated. mixer-test.c:352:12: warning: format specifies type 'long' but the argument has type 'unsigned int' [-Wformat] 350 | ksft_print_msg("%s.%d value %ld more than item count %ld\n", | ~~~ | %u 351 | ctl->name, index, int_val, 352 | snd_ctl_elem_info_get_items(ctl->info)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 warning generated. step_after_suspend_test.c:92:44: warning: data argument not used by format string [-Wformat-extra-args] 92 | ksft_print_msg("waitpid() failed: $s\n", strerror(errno)); | ~~~~~~~~~~~~~~~~~~~~~~~~ ^ 1 warning generated. test_execve.c:113:13: warning: variable 'have_outer_privilege' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized] 113 | } else if (unshare(CLONE_NEWUSER | CLONE_NEWNS) == 0) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ test_execve.c:128:9: note: uninitialized use occurs here 128 | return have_outer_privilege; | ^~~~~~~~~~~~~~~~~~~~ test_execve.c:113:9: note: remove the 'if' if its condition is always true 113 | } else if (unshare(CLONE_NEWUSER | CLONE_NEWNS) == 0) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 114 | ksft_print_msg("[NOTE]\tUsing a user namespace for tests\n"); 115 | maybe_write_file("/proc/self/setgroups", "deny"); 116 | write_file("/proc/self/uid_map", "%d %d 1", inner_uid, outer_uid); 117 | write_file("/proc/self/gid_map", "0 %d 1", outer_gid); 118 | 119 | have_outer_privilege = false; 120 | } else { | ~~~~~~ 121 | ksft_exit_skip("must be root or be able to create a userns\n"); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 122 | } | ~ test_execve.c:86:27: note: initialize the variable 'have_outer_privilege' to silence this warning 86 | bool have_outer_privilege; | ^ | = false 1 warning generated. In file included from test_memcontrol.c:22: ./cgroup_util.h:21:9: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value] 21 | return abs(a - b) <= (a + b) / 100 * err; | ^ ./cgroup_util.h:21:9: note: use function 'labs' instead 21 | return abs(a - b) <= (a + b) / 100 * err; | ^~~ | labs test_memcontrol.c:731:6: warning: variable 'fd' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized] 731 | if (current != 0) | ^~~~~~~~~~~~ test_memcontrol.c:779:8: note: uninitialized use occurs here 779 | close(fd); | ^~ test_memcontrol.c:731:2: note: remove the 'if' if its condition is always false 731 | if (current != 0) | ^~~~~~~~~~~~~~~~~ 732 | goto cleanup; | ~~~~~~~~~~~~ test_memcontrol.c:727:6: warning: variable 'fd' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized] 727 | if (cg_create(memcg)) | ^~~~~~~~~~~~~~~~ test_memcontrol.c:779:8: note: uninitialized use occurs here 779 | close(fd); | ^~ test_memcontrol.c:727:2: note: remove the 'if' if its condition is always false 727 | if (cg_create(memcg)) | ^~~~~~~~~~~~~~~~~~~~~ 728 | goto cleanup; | ~~~~~~~~~~~~ test_memcontrol.c:724:6: warning: variable 'fd' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized] 724 | if (!memcg) | ^~~~~~ test_memcontrol.c:779:8: note: uninitialized use occurs here 779 | close(fd); | ^~ test_memcontrol.c:724:2: note: remove the 'if' if its condition is always false 724 | if (!memcg) | ^~~~~~~~~~~ 725 | goto cleanup; | ~~~~~~~~~~~~ test_memcontrol.c:719:25: note: initialize the variable 'fd' to silence this warning 719 | int ret = KSFT_FAIL, fd, retries; | ^ | = 0 4 warnings generated. In file included from cgroup_util.c:19: ./cgroup_util.h:21:9: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value] 21 | return abs(a - b) <= (a + b) / 100 * err; | ^ ./cgroup_util.h:21:9: note: use function 'labs' instead 21 | return abs(a - b) <= (a + b) / 100 * err; | ^~~ | labs 1 warning generated. In file included from test_kmem.c:18: ./cgroup_util.h:21:9: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value] 21 | return abs(a - b) <= (a + b) / 100 * err; | ^ ./cgroup_util.h:21:9: note: use function 'labs' instead 21 | return abs(a - b) <= (a + b) / 100 * err; | ^~~ | labs test_kmem.c:195:6: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value] 195 | if (abs(sum - current) < MAX_VMSTAT_ERROR) { | ^ test_kmem.c:195:6: note: use function 'labs' instead 195 | if (abs(sum - current) < MAX_VMSTAT_ERROR) { | ^~~ | labs test_kmem.c:383:35: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value] 383 | if (current > 0 && percpu > 0 && abs(current - percpu) < | ^ test_kmem.c:383:35: note: use function 'labs' instead 383 | if (current > 0 && percpu > 0 && abs(current - percpu) < | ^~~ | labs 3 warnings generated. In file included from cgroup_util.c:19: ./cgroup_util.h:21:9: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value] 21 | return abs(a - b) <= (a + b) / 100 * err; | ^ ./cgroup_util.h:21:9: note: use function 'labs' instead 21 | return abs(a - b) <= (a + b) / 100 * err; | ^~~ | labs 1 warning generated. In file included from test_core.c:19: ./cgroup_util.h:21:9: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value] 21 | return abs(a - b) <= (a + b) / 100 * err; | ^ ./cgroup_util.h:21:9: note: use function 'labs' instead 21 | return abs(a - b) <= (a + b) / 100 * err; | ^~~ | labs 1 warning generated. In file included from cgroup_util.c:19: ./cgroup_util.h:21:9: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value] 21 | return abs(a - b) <= (a + b) / 100 * err; | ^ ./cgroup_util.h:21:9: note: use function 'labs' instead 21 | return abs(a - b) <= (a + b) / 100 * err; | ^~~ | labs 1 warning generated. In file included from test_freezer.c:15: ./cgroup_util.h:21:9: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value] 21 | return abs(a - b) <= (a + b) / 100 * err; | ^ ./cgroup_util.h:21:9: note: use function 'labs' instead 21 | return abs(a - b) <= (a + b) / 100 * err; | ^~~ | labs 1 warning generated. In file included from cgroup_util.c:19: ./cgroup_util.h:21:9: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value] 21 | return abs(a - b) <= (a + b) / 100 * err; | ^ ./cgroup_util.h:21:9: note: use function 'labs' instead 21 | return abs(a - b) <= (a + b) / 100 * err; | ^~~ | labs 1 warning generated. In file included from test_kill.c:14: ./cgroup_util.h:21:9: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value] 21 | return abs(a - b) <= (a + b) / 100 * err; | ^ ./cgroup_util.h:21:9: note: use function 'labs' instead 21 | return abs(a - b) <= (a + b) / 100 * err; | ^~~ | labs 1 warning generated. In file included from cgroup_util.c:19: ./cgroup_util.h:21:9: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value] 21 | return abs(a - b) <= (a + b) / 100 * err; | ^ ./cgroup_util.h:21:9: note: use function 'labs' instead 21 | return abs(a - b) <= (a + b) / 100 * err; | ^~~ | labs 1 warning generated. In file included from test_cpu.c:13: ./cgroup_util.h:21:9: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value] 21 | return abs(a - b) <= (a + b) / 100 * err; | ^ ./cgroup_util.h:21:9: note: use function 'labs' instead 21 | return abs(a - b) <= (a + b) / 100 * err; | ^~~ | labs test_cpu.c:240:35: warning: suggest braces around initialization of subobject [-Wmissing-braces] 240 | struct cpu_hogger children[3] = {NULL}; | ^~~~ | { } /usr/lib/llvm-17/lib/clang/17/include/stddef.h:89:16: note: expanded from macro 'NULL' 89 | # define NULL ((void*)0) | ^~~~~~~~~~ test_cpu.c:411:31: warning: suggest braces around initialization of subobject [-Wmissing-braces] 411 | struct cpu_hogger leaf[3] = {NULL}; | ^~~~ | { } /usr/lib/llvm-17/lib/clang/17/include/stddef.h:89:16: note: expanded from macro 'NULL' 89 | # define NULL ((void*)0) | ^~~~~~~~~~ 3 warnings generated. In file included from cgroup_util.c:19: ./cgroup_util.h:21:9: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value] 21 | return abs(a - b) <= (a + b) / 100 * err; | ^ ./cgroup_util.h:21:9: note: use function 'labs' instead 21 | return abs(a - b) <= (a + b) / 100 * err; | ^~~ | labs 1 warning generated. In file included from test_cpuset.c:7: ./cgroup_util.h:21:9: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value] 21 | return abs(a - b) <= (a + b) / 100 * err; | ^ ./cgroup_util.h:21:9: note: use function 'labs' instead 21 | return abs(a - b) <= (a + b) / 100 * err; | ^~~ | labs 1 warning generated. In file included from cgroup_util.c:19: ./cgroup_util.h:21:9: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value] 21 | return abs(a - b) <= (a + b) / 100 * err; | ^ ./cgroup_util.h:21:9: note: use function 'labs' instead 21 | return abs(a - b) <= (a + b) / 100 * err; | ^~~ | labs 1 warning generated. In file included from test_zswap.c:14: ./cgroup_util.h:21:9: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value] 21 | return abs(a - b) <= (a + b) / 100 * err; | ^ ./cgroup_util.h:21:9: note: use function 'labs' instead 21 | return abs(a - b) <= (a + b) / 100 * err; | ^~~ | labs test_zswap.c:227:6: warning: variable 'test_group' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized] 227 | if (cg_write(root, "cgroup.subtree_control", "+memory")) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ test_zswap.c:276:7: note: uninitialized use occurs here 276 | free(test_group); | ^~~~~~~~~~ test_zswap.c:227:2: note: remove the 'if' if its condition is always false 227 | if (cg_write(root, "cgroup.subtree_control", "+memory")) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 228 | goto out; | ~~~~~~~~ test_zswap.c:205:18: note: initialize the variable 'test_group' to silence this warning 205 | char *test_group; | ^ | = NULL 2 warnings generated. In file included from cgroup_util.c:19: ./cgroup_util.h:21:9: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value] 21 | return abs(a - b) <= (a + b) / 100 * err; | ^ ./cgroup_util.h:21:9: note: use function 'labs' instead 21 | return abs(a - b) <= (a + b) / 100 * err; | ^~~ | labs 1 warning generated. In file included from test_hugetlb_memcg.c:11: ./cgroup_util.h:21:9: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value] 21 | return abs(a - b) <= (a + b) / 100 * err; | ^ ./cgroup_util.h:21:9: note: use function 'labs' instead 21 | return abs(a - b) <= (a + b) / 100 * err; | ^~~ | labs 1 warning generated. In file included from cgroup_util.c:19: ./cgroup_util.h:21:9: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value] 21 | return abs(a - b) <= (a + b) / 100 * err; | ^ ./cgroup_util.h:21:9: note: use function 'labs' instead 21 | return abs(a - b) <= (a + b) / 100 * err; | ^~~ | labs 1 warning generated. clang: error: argument unused during compilation: '-pie' [-Werror,-Wunused-command-line-argument] make[3]: *** [Makefile:32: /tmp/kci/linux/tools/testing/selftests/exec/load_address_4096] Error 1 clang: error: unknown argument '-static-libasan'; did you mean '-static-libsan'? make[3]: *** [../lib.mk:147: /tmp/kci/linux/tools/testing/selftests/fchmodat2/fchmodat2_test] Error 1 clang: error: cannot specify -o when generating multiple output files make[3]: *** [: binderfs_test] Error 1 Warning: Kernel ABI header at 'tools/include/uapi/linux/if_xdp.h' differs from latest version at 'include/uapi/linux/if_xdp.h' Makefile:123: tools/build/Makefile.feature: No such file or directory make[4]: *** No rule to make target 'tools/build/Makefile.feature'. Stop. make[3]: *** [Makefile:123: /tmp/kci/linux/tools/testing/selftests/hid/tools/sbin/bpftool] Error 2 x86_64/amx_test.c:224:6: warning: variable 'stage' set but not used [-Wunused-but-set-variable] 224 | int stage, ret; | ^ 1 warning generated. mq_perf_tests.c:336:41: warning: passing 'int *' to parameter of type 'unsigned int *' converts between pointers to integer types with different sign [-Wpointer-sign] 336 | mq_receive(queue, buff, sizeof(buff), &priority); | ^~~~~~~~~ /usr/include/mqueue.h:67:21: note: passing argument to parameter '__msg_prio' here 67 | unsigned int *__msg_prio) __nonnull ((2)); | ^ mq_perf_tests.c:462:3: warning: passing 'int *' to parameter of type 'unsigned int *' converts between pointers to integer types with different sign [-Wpointer-sign] 462 | do_send_recv(); | ^~~~~~~~~~~~~~ mq_perf_tests.c:355:41: note: expanded from macro 'do_send_recv' 355 | if (mq_receive(queue, buff, MSG_SIZE, &prio_in) != MSG_SIZE) \ | ^~~~~~~~ /usr/include/mqueue.h:67:21: note: passing argument to parameter '__msg_prio' here 67 | unsigned int *__msg_prio) __nonnull ((2)); | ^ mq_perf_tests.c:498:4: warning: passing 'int *' to parameter of type 'unsigned int *' converts between pointers to integer types with different sign [-Wpointer-sign] 498 | do_send_recv(); | ^~~~~~~~~~~~~~ mq_perf_tests.c:355:41: note: expanded from macro 'do_send_recv' 355 | if (mq_receive(queue, buff, MSG_SIZE, &prio_in) != MSG_SIZE) \ | ^~~~~~~~ /usr/include/mqueue.h:67:21: note: passing argument to parameter '__msg_prio' here 67 | unsigned int *__msg_prio) __nonnull ((2)); | ^ mq_perf_tests.c:515:3: warning: passing 'int *' to parameter of type 'unsigned int *' converts between pointers to integer types with different sign [-Wpointer-sign] 515 | drain_queue(); | ^~~~~~~~~~~~~ mq_perf_tests.c:341:43: note: expanded from macro 'drain_queue' 341 | while (mq_receive(queue, buff, MSG_SIZE, &prio_in) == MSG_SIZE) | ^~~~~~~~ /usr/include/mqueue.h:67:21: note: passing argument to parameter '__msg_prio' here 67 | unsigned int *__msg_prio) __nonnull ((2)); | ^ 4 warnings generated. timestamping.c:285:18: warning: field 'cm' with variable sized type 'struct cmsghdr' not at the end of a struct or class is a GNU extension [-Wgnu-variable-sized-type-not-at-end] 285 | struct cmsghdr cm; | ^ 1 warning generated. ipsec.c:834:5: warning: field 'u' with variable sized type 'union (unnamed union at ipsec.c:830:3)' not at the end of a struct or class is a GNU extension [-Wgnu-variable-sized-type-not-at-end] 834 | } u; | ^ 1 warning generated. Warning: Kernel ABI header at 'tools/include/uapi/linux/if_xdp.h' differs from latest version at 'include/uapi/linux/if_xdp.h' ip_local_port_range.c:387:3: warning: variable 'addr_len' is used uninitialized whenever 'for' loop exits because its condition is false [-Wsometimes-uninitialized] 387 | ASSERT_TRUE(false) TH_LOG("unsupported socket domain"); | ^~~~~~~~~~~~~~~~~~ ./../kselftest_harness.h:531:2: note: expanded from macro 'ASSERT_TRUE' 531 | __EXPECT(0, "0", seen, #seen, !=, 1) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./../kselftest_harness.h:749:14: note: expanded from macro '__EXPECT' 749 | } while (0); OPTIONAL_HANDLER(_assert) | ^~~~~~~~~~~~~~~~~~~~~~~~~ ./../kselftest_harness.h:694:9: note: expanded from macro 'OPTIONAL_HANDLER' 694 | for (; _metadata->trigger; _metadata->trigger = \ | ^~~~~~~~~~~~~~~~~~ ip_local_port_range.c:391:24: note: uninitialized use occurs here 391 | connect(fd, &addr.sa, addr_len); | ^~~~~~~~ ip_local_port_range.c:387:3: note: remove the condition if it is always true 387 | ASSERT_TRUE(false) TH_LOG("unsupported socket domain"); | ^ ./../kselftest_harness.h:531:2: note: expanded from macro 'ASSERT_TRUE' 531 | __EXPECT(0, "0", seen, #seen, !=, 1) | ^ ./../kselftest_harness.h:749:14: note: expanded from macro '__EXPECT' 749 | } while (0); OPTIONAL_HANDLER(_assert) | ^ ./../kselftest_harness.h:694:9: note: expanded from macro 'OPTIONAL_HANDLER' 694 | for (; _metadata->trigger; _metadata->trigger = \ | ^ ip_local_port_range.c:346:20: note: initialize the variable 'addr_len' to silence this warning 346 | socklen_t addr_len; | ^ | = 0 1 warning generated. pm_nl_ctl.c:1258:13: warning: variable 'family' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized] 1258 | } else if (inet_pton(AF_INET6, argv[2], &a6->sin6_addr)) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pm_nl_ctl.c:1265:16: note: uninitialized use occurs here 1265 | sock = socket(family, SOCK_STREAM, IPPROTO_MPTCP); | ^~~~~~ pm_nl_ctl.c:1258:9: note: remove the 'if' if its condition is always true 1258 | } else if (inet_pton(AF_INET6, argv[2], &a6->sin6_addr)) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1259 | family = AF_INET6; 1260 | a6->sin6_family = family; 1261 | a6->sin6_port = htons(atoi(argv[3])); 1262 | } else | ~~~~ 1263 | error(1, errno, "can't parse ip %s", argv[2]); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pm_nl_ctl.c:1242:18: note: initialize the variable 'family' to silence this warning 1242 | u_int16_t family; | ^ | = 0 1 warning generated. sctp_collision.c:62:70: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] 62 | ret = recvfrom(sd, buf, sizeof(buf), 0, (struct sockaddr *)&daddr, &len); | ^~~~ /usr/include/x86_64-linux-gnu/sys/socket.h:165:27: note: passing argument to parameter '__addr_len' here 165 | socklen_t *__restrict __addr_len); | ^ sctp_collision.c:88:70: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] 88 | ret = recvfrom(sd, buf, sizeof(buf), 0, (struct sockaddr *)&daddr, &len); | ^~~~ /usr/include/x86_64-linux-gnu/sys/socket.h:165:27: note: passing argument to parameter '__addr_len' here 165 | socklen_t *__restrict __addr_len); | ^ 2 warnings generated. Makefile:63: warning: overriding recipe for target 'emit_tests' ../lib.mk:111: warning: ignoring old recipe for target 'emit_tests' make[3]: *** No targets. Stop. clang: error: unknown argument '-static-libasan'; did you mean '-static-libsan'? clang: error: cannot specify -o when generating multiple output files make[3]: *** [../lib.mk:147: /tmp/kci/linux/tools/testing/selftests/openat2/openat2_test] Error 1 clang: error: cannot specify -o when generating multiple output files make[3]: *** [../lib.mk:147: /tmp/kci/linux/tools/testing/selftests/resctrl/resctrl_tests] Error 1 clang: error: -z noexecstack: 'linker' input unused [-Werror,-Wunused-command-line-argument] make[3]: *** [Makefile:34: /tmp/kci/linux/tools/testing/selftests/sgx/main.o] Error 1 make[3]: *** No targets. Stop. make[3]: *** No targets. Stop. timerfd.c:64:7: error: absolute value function 'abs' given an argument of type 'long long' but has parameter of type 'int' which may cause truncation of value [-Werror,-Wabsolute-value] 64 | if (abs(elapsed - 3600) > 60) { | ^ timerfd.c:64:7: note: use function 'llabs' instead 64 | if (abs(elapsed - 3600) > 60) { | ^~~ | llabs 1 error generated. make[3]: *** [../lib.mk:147: /tmp/kci/linux/tools/testing/selftests/timens/timerfd] Error 1 posix_timers.c:69:6: warning: absolute value function 'abs' given an argument of type 'long long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value] 69 | if (abs(diff - DELAY * USECS_PER_SEC) > USECS_PER_SEC / 2) { | ^ posix_timers.c:69:6: note: use function 'llabs' instead 69 | if (abs(diff - DELAY * USECS_PER_SEC) > USECS_PER_SEC / 2) { | ^~~ | llabs 1 warning generated. rtcpie.c:32:21: warning: variable 'irqcount' set but not used [-Wunused-but-set-variable] 32 | int i, fd, retval, irqcount = 0; | ^ 1 warning generated. valid-adjtimex.c:66:6: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 66 | -499<<16, | ~~~~^ valid-adjtimex.c:67:6: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 67 | -450<<16, | ~~~~^ valid-adjtimex.c:68:6: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 68 | -400<<16, | ~~~~^ valid-adjtimex.c:69:6: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 69 | -350<<16, | ~~~~^ valid-adjtimex.c:70:6: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 70 | -300<<16, | ~~~~^ valid-adjtimex.c:71:6: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 71 | -250<<16, | ~~~~^ valid-adjtimex.c:72:6: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 72 | -200<<16, | ~~~~^ valid-adjtimex.c:73:6: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 73 | -150<<16, | ~~~~^ valid-adjtimex.c:74:6: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 74 | -100<<16, | ~~~~^ valid-adjtimex.c:75:5: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 75 | -75<<16, | ~~~^ valid-adjtimex.c:76:5: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 76 | -50<<16, | ~~~^ valid-adjtimex.c:77:5: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 77 | -25<<16, | ~~~^ valid-adjtimex.c:78:5: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 78 | -10<<16, | ~~~^ valid-adjtimex.c:79:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 79 | -5<<16, | ~~^ valid-adjtimex.c:80:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 80 | -1<<16, | ~~^ valid-adjtimex.c:100:7: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 100 | -1000<<16, | ~~~~~^ valid-adjtimex.c:101:6: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 101 | -550<<16, | ~~~~^ 17 warnings generated. perf_test.c:239:38: warning: taking address of packed member 'write_index' of class or structure 'user_reg' may result in an unaligned pointer value [-Waddress-of-packed-member] 239 | ASSERT_NE(-1, write(self->data_fd, ®.write_index, | ^~~~~~~~~~~~~~~ ./../kselftest_harness.h:467:32: note: expanded from macro 'ASSERT_NE' 467 | __EXPECT(expected, #expected, seen, #seen, !=, 1) | ^~~~ ./../kselftest_harness.h:707:13: note: expanded from macro '__EXPECT' 707 | __typeof__(_seen) __seen = (_seen); \ | ^~~~~ 1 warning generated. parse_vdso.c:65:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 65 | if (g = h & 0xf0000000) | ~~^~~~~~~~~~~~~~~~ parse_vdso.c:65:9: note: place parentheses around the assignment to silence this warning 65 | if (g = h & 0xf0000000) | ^ | ( ) parse_vdso.c:65:9: note: use '==' to turn this assignment into an equality comparison 65 | if (g = h & 0xf0000000) | ^ | == parse_vdso.c:206:22: warning: passing 'const char *' to parameter of type 'const unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 206 | ver_hash = elf_hash(version); | ^~~~~~~ parse_vdso.c:59:52: note: passing argument to parameter 'name' here 59 | static unsigned long elf_hash(const unsigned char *name) | ^ parse_vdso.c:207:46: warning: passing 'const char *' to parameter of type 'const unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 207 | ELF(Word) chain = vdso_info.bucket[elf_hash(name) % vdso_info.nbucket]; | ^~~~ parse_vdso.c:59:52: note: passing argument to parameter 'name' here 59 | static unsigned long elf_hash(const unsigned char *name) | ^ 3 warnings generated. parse_vdso.c:65:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 65 | if (g = h & 0xf0000000) | ~~^~~~~~~~~~~~~~~~ parse_vdso.c:65:9: note: place parentheses around the assignment to silence this warning 65 | if (g = h & 0xf0000000) | ^ | ( ) parse_vdso.c:65:9: note: use '==' to turn this assignment into an equality comparison 65 | if (g = h & 0xf0000000) | ^ | == parse_vdso.c:206:22: warning: passing 'const char *' to parameter of type 'const unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 206 | ver_hash = elf_hash(version); | ^~~~~~~ parse_vdso.c:59:52: note: passing argument to parameter 'name' here 59 | static unsigned long elf_hash(const unsigned char *name) | ^ parse_vdso.c:207:46: warning: passing 'const char *' to parameter of type 'const unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 207 | ELF(Word) chain = vdso_info.bucket[elf_hash(name) % vdso_info.nbucket]; | ^~~~ parse_vdso.c:59:52: note: passing argument to parameter 'name' here 59 | static unsigned long elf_hash(const unsigned char *name) | ^ 3 warnings generated. parse_vdso.c:65:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 65 | if (g = h & 0xf0000000) | ~~^~~~~~~~~~~~~~~~ parse_vdso.c:65:9: note: place parentheses around the assignment to silence this warning 65 | if (g = h & 0xf0000000) | ^ | ( ) parse_vdso.c:65:9: note: use '==' to turn this assignment into an equality comparison 65 | if (g = h & 0xf0000000) | ^ | == parse_vdso.c:206:22: warning: passing 'const char *' to parameter of type 'const unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 206 | ver_hash = elf_hash(version); | ^~~~~~~ parse_vdso.c:59:52: note: passing argument to parameter 'name' here 59 | static unsigned long elf_hash(const unsigned char *name) | ^ parse_vdso.c:207:46: warning: passing 'const char *' to parameter of type 'const unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 207 | ELF(Word) chain = vdso_info.bucket[elf_hash(name) % vdso_info.nbucket]; | ^~~~ parse_vdso.c:59:52: note: passing argument to parameter 'name' here 59 | static unsigned long elf_hash(const unsigned char *name) | ^ 3 warnings generated. vdso_standalone_test_x86.c:73:16: warning: unknown attribute 'externally_visible' ignored [-Wunknown-attributes] 73 | __attribute__((externally_visible)) void c_main(void **stack) | ^~~~~~~~~~~~~~~~~~ 1 warning generated. parse_vdso.c:65:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 65 | if (g = h & 0xf0000000) | ~~^~~~~~~~~~~~~~~~ parse_vdso.c:65:9: note: place parentheses around the assignment to silence this warning 65 | if (g = h & 0xf0000000) | ^ | ( ) parse_vdso.c:65:9: note: use '==' to turn this assignment into an equality comparison 65 | if (g = h & 0xf0000000) | ^ | == parse_vdso.c:206:22: warning: passing 'const char *' to parameter of type 'const unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 206 | ver_hash = elf_hash(version); | ^~~~~~~ parse_vdso.c:59:52: note: passing argument to parameter 'name' here 59 | static unsigned long elf_hash(const unsigned char *name) | ^ parse_vdso.c:207:46: warning: passing 'const char *' to parameter of type 'const unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 207 | ELF(Word) chain = vdso_info.bucket[elf_hash(name) % vdso_info.nbucket]; | ^~~~ parse_vdso.c:59:52: note: passing argument to parameter 'name' here 59 | static unsigned long elf_hash(const unsigned char *name) | ^ 3 warnings generated. /usr/bin/x86_64-linux-gnu-ld: /tmp/vdso_standalone_test_x86-8968aa.o: in function `c_main': vdso_standalone_test_x86.c:(.text+0x1e6): undefined reference to `memcpy' clang: error: linker command failed with exit code 1 (use -v to see invocation) make[3]: *** [Makefile:28: /tmp/kci/linux/tools/testing/selftests/vDSO/vdso_standalone_test_x86] Error 1 mremap_test.c:461:13: warning: format specifies type 'int' but the argument has type 'unsigned long long' [-Wformat] 460 | ksft_print_msg("Preamble data after remap doesn't match at offset %d\n", | ~~ | %llu 461 | i); | ^ 1 warning generated. ksm_functional_tests.c:161:6: warning: variable 'map' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized] 161 | if (get_my_merging_pages() > 0) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ ksm_functional_tests.c:218:9: note: uninitialized use occurs here 218 | munmap(map, size); | ^~~ ksm_functional_tests.c:161:2: note: remove the 'if' if its condition is always false 161 | if (get_my_merging_pages() > 0) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 162 | ksft_test_result_fail("Still pages merged\n"); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 163 | goto unmap; | ~~~~~~~~~~~ 164 | } | ~ ksm_functional_tests.c:156:6: warning: variable 'map' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized] 156 | if (ksm_unmerge()) { | ^~~~~~~~~~~~~ ksm_functional_tests.c:218:9: note: uninitialized use occurs here 218 | munmap(map, size); | ^~~ ksm_functional_tests.c:156:2: note: remove the 'if' if its condition is always false 156 | if (ksm_unmerge()) { | ^~~~~~~~~~~~~~~~~~~~ 157 | ksft_test_result_fail("Disabling (unmerging) KSM failed\n"); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 158 | goto unmap; | ~~~~~~~~~~~ 159 | } | ~ ksm_functional_tests.c:152:11: note: initialize the variable 'map' to silence this warning 152 | char *map; | ^ | = NULL 2 warnings generated. clang: error: cannot specify -o when generating multiple output files make[3]: *** [Makefile:79: /tmp/kci/linux/tools/testing/selftests/x86/single_step_syscall_64] Error 1 clang: error: argument unused during compilation: '-pie' [-Werror,-Wunused-command-line-argument] make[3]: *** [Makefile:32: /tmp/kci/linux/tools/testing/selftests/exec/load_address_4096] Error 1 clang: error: unknown argument '-static-libasan'; did you mean '-static-libsan'? make[3]: *** [../lib.mk:147: /tmp/kci/linux/tools/testing/selftests/fchmodat2/fchmodat2_test] Error 1 Makefile:123: tools/build/Makefile.feature: No such file or directory make[4]: *** No rule to make target 'tools/build/Makefile.feature'. Stop. make[3]: *** [Makefile:123: /tmp/kci/linux/tools/testing/selftests/hid/tools/sbin/bpftool] Error 2 Makefile:63: warning: overriding recipe for target 'emit_tests' ../lib.mk:111: warning: ignoring old recipe for target 'emit_tests' make[3]: *** No rule to make target 'install'. Stop. clang: error: unknown argument '-static-libasan'; did you mean '-static-libsan'? clang: error: cannot specify -o when generating multiple output files make[3]: *** [../lib.mk:147: /tmp/kci/linux/tools/testing/selftests/openat2/openat2_test] Error 1 clang: error: cannot specify -o when generating multiple output files make[3]: *** [../lib.mk:147: /tmp/kci/linux/tools/testing/selftests/resctrl/resctrl_tests] Error 1 clang: error: -z noexecstack: 'linker' input unused [-Werror,-Wunused-command-line-argument] make[3]: *** [Makefile:34: /tmp/kci/linux/tools/testing/selftests/sgx/main.o] Error 1 make[3]: *** No rule to make target 'install'. Stop. make[3]: *** No rule to make target 'install'. Stop. timerfd.c:64:7: error: absolute value function 'abs' given an argument of type 'long long' but has parameter of type 'int' which may cause truncation of value [-Werror,-Wabsolute-value] 64 | if (abs(elapsed - 3600) > 60) { | ^ timerfd.c:64:7: note: use function 'llabs' instead 64 | if (abs(elapsed - 3600) > 60) { | ^~~ | llabs 1 error generated. make[3]: *** [../lib.mk:147: /tmp/kci/linux/tools/testing/selftests/timens/timerfd] Error 1 vdso_standalone_test_x86.c:73:16: warning: unknown attribute 'externally_visible' ignored [-Wunknown-attributes] 73 | __attribute__((externally_visible)) void c_main(void **stack) | ^~~~~~~~~~~~~~~~~~ 1 warning generated. parse_vdso.c:65:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 65 | if (g = h & 0xf0000000) | ~~^~~~~~~~~~~~~~~~ parse_vdso.c:65:9: note: place parentheses around the assignment to silence this warning 65 | if (g = h & 0xf0000000) | ^ | ( ) parse_vdso.c:65:9: note: use '==' to turn this assignment into an equality comparison 65 | if (g = h & 0xf0000000) | ^ | == parse_vdso.c:206:22: warning: passing 'const char *' to parameter of type 'const unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 206 | ver_hash = elf_hash(version); | ^~~~~~~ parse_vdso.c:59:52: note: passing argument to parameter 'name' here 59 | static unsigned long elf_hash(const unsigned char *name) | ^ parse_vdso.c:207:46: warning: passing 'const char *' to parameter of type 'const unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 207 | ELF(Word) chain = vdso_info.bucket[elf_hash(name) % vdso_info.nbucket]; | ^~~~ parse_vdso.c:59:52: note: passing argument to parameter 'name' here 59 | static unsigned long elf_hash(const unsigned char *name) | ^ 3 warnings generated. /usr/bin/x86_64-linux-gnu-ld: /tmp/vdso_standalone_test_x86-30d32a.o: in function `c_main': vdso_standalone_test_x86.c:(.text+0x1e6): undefined reference to `memcpy' clang: error: linker command failed with exit code 1 (use -v to see invocation) make[3]: *** [Makefile:28: /tmp/kci/linux/tools/testing/selftests/vDSO/vdso_standalone_test_x86] Error 1 clang: error: cannot specify -o when generating multiple output files make[3]: *** [Makefile:79: /tmp/kci/linux/tools/testing/selftests/x86/single_step_syscall_64] Error 1