Hi Kuniyuki,
kernel test robot noticed the following build warnings:
[auto build test WARNING on shuah-kselftest/next] [also build test WARNING on shuah-kselftest/fixes kees/for-next/seccomp linus/master v6.18-rc2 next-20251024] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Kuniyuki-Iwashima/selftests-h... base: https://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest.git next patch link: https://lore.kernel.org/r/20251017084022.3721950-1-kuniyu%40google.com patch subject: [PATCH] selftests: harness: Support KCOV. :::::: branch date: 9 days ago :::::: commit date: 9 days ago config: x86_64-allnoconfig-bpf (https://download.01.org/0day-ci/archive/20251026/202510262116.jwyrgplV-lkp@i...) compiler: gcc-14 (Debian 14.2.0-19) 14.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251026/202510262116.jwyrgplV-lkp@i...)
If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot lkp@intel.com | Closes: https://lore.kernel.org/r/202510262116.jwyrgplV-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from listmount_test.c:14: ../../kselftest_harness.h:188:25: error: initialization of 'void (*)(struct __test_metadata *, struct __fixture_variant_metadata *, char *)' from incompatible pointer type 'void (*)(struct __test_metadata *, struct __fixture_variant_metadata *)' [-Wincompatible-pointer-types] 188 | .fn = &wrapper_##test_name, \ | ^ ../../kselftest_harness.h:157:25: note: in expansion of macro '__TEST_IMPL' 157 | #define TEST(test_name) __TEST_IMPL(test_name, -1) | ^~~~~~~~~~~ listmount_test.c:23:1: note: in expansion of macro 'TEST' 23 | TEST(listmount_forward) | ^~~~ ../../kselftest_harness.h:188:25: note: (near initialization for '_listmount_forward_object.fn') 188 | .fn = &wrapper_##test_name, \ | ^ ../../kselftest_harness.h:157:25: note: in expansion of macro '__TEST_IMPL' 157 | #define TEST(test_name) __TEST_IMPL(test_name, -1) | ^~~~~~~~~~~ listmount_test.c:23:1: note: in expansion of macro 'TEST' 23 | TEST(listmount_forward) | ^~~~ ../../kselftest_harness.h:188:25: error: initialization of 'void (*)(struct __test_metadata *, struct __fixture_variant_metadata *, char *)' from incompatible pointer type 'void (*)(struct __test_metadata *, struct __fixture_variant_metadata *)' [-Wincompatible-pointer-types] 188 | .fn = &wrapper_##test_name, \ | ^ ../../kselftest_harness.h:157:25: note: in expansion of macro '__TEST_IMPL' 157 | #define TEST(test_name) __TEST_IMPL(test_name, -1) | ^~~~~~~~~~~ listmount_test.c:45:1: note: in expansion of macro 'TEST' 45 | TEST(listmount_backward) | ^~~~ ../../kselftest_harness.h:188:25: note: (near initialization for '_listmount_backward_object.fn') 188 | .fn = &wrapper_##test_name, \ | ^ ../../kselftest_harness.h:157:25: note: in expansion of macro '__TEST_IMPL' 157 | #define TEST(test_name) __TEST_IMPL(test_name, -1) | ^~~~~~~~~~~ listmount_test.c:45:1: note: in expansion of macro 'TEST' 45 | TEST(listmount_backward) | ^~~~
../../kselftest_harness.h:1251:13: warning: 'disable_kcov' defined but not used [-Wunused-function]
1251 | static void disable_kcov(struct __test_metadata *t, char *test_name) | ^~~~~~~~~~~~
../../kselftest_harness.h:1204:13: warning: 'enable_kcov' defined but not used [-Wunused-function]
1204 | static void enable_kcov(struct __test_metadata *t) | ^~~~~~~~~~~ -- In file included from futex_wait_timeout.c:22: ../../kselftest_harness.h:188:25: error: initialization of 'void (*)(struct __test_metadata *, struct __fixture_variant_metadata *, char *)' from incompatible pointer type 'void (*)(struct __test_metadata *, struct __fixture_variant_metadata *)' [-Wincompatible-pointer-types] 188 | .fn = &wrapper_##test_name, \ | ^ ../../kselftest_harness.h:157:25: note: in expansion of macro '__TEST_IMPL' 157 | #define TEST(test_name) __TEST_IMPL(test_name, -1) | ^~~~~~~~~~~ futex_wait_timeout.c:82:1: note: in expansion of macro 'TEST' 82 | TEST(wait_bitset) | ^~~~ ../../kselftest_harness.h:188:25: note: (near initialization for '_wait_bitset_object.fn') 188 | .fn = &wrapper_##test_name, \ | ^ ../../kselftest_harness.h:157:25: note: in expansion of macro '__TEST_IMPL' 157 | #define TEST(test_name) __TEST_IMPL(test_name, -1) | ^~~~~~~~~~~ futex_wait_timeout.c:82:1: note: in expansion of macro 'TEST' 82 | TEST(wait_bitset) | ^~~~ ../../kselftest_harness.h:188:25: error: initialization of 'void (*)(struct __test_metadata *, struct __fixture_variant_metadata *, char *)' from incompatible pointer type 'void (*)(struct __test_metadata *, struct __fixture_variant_metadata *)' [-Wincompatible-pointer-types] 188 | .fn = &wrapper_##test_name, \ | ^ ../../kselftest_harness.h:157:25: note: in expansion of macro '__TEST_IMPL' 157 | #define TEST(test_name) __TEST_IMPL(test_name, -1) | ^~~~~~~~~~~ futex_wait_timeout.c:108:1: note: in expansion of macro 'TEST' 108 | TEST(requeue_pi) | ^~~~ ../../kselftest_harness.h:188:25: note: (near initialization for '_requeue_pi_object.fn') 188 | .fn = &wrapper_##test_name, \ | ^ ../../kselftest_harness.h:157:25: note: in expansion of macro '__TEST_IMPL' 157 | #define TEST(test_name) __TEST_IMPL(test_name, -1) | ^~~~~~~~~~~ futex_wait_timeout.c:108:1: note: in expansion of macro 'TEST' 108 | TEST(requeue_pi) | ^~~~ ../../kselftest_harness.h:188:25: error: initialization of 'void (*)(struct __test_metadata *, struct __fixture_variant_metadata *, char *)' from incompatible pointer type 'void (*)(struct __test_metadata *, struct __fixture_variant_metadata *)' [-Wincompatible-pointer-types] 188 | .fn = &wrapper_##test_name, \ | ^ ../../kselftest_harness.h:157:25: note: in expansion of macro '__TEST_IMPL' 157 | #define TEST(test_name) __TEST_IMPL(test_name, -1) | ^~~~~~~~~~~ futex_wait_timeout.c:128:1: note: in expansion of macro 'TEST' 128 | TEST(lock_pi) | ^~~~ ../../kselftest_harness.h:188:25: note: (near initialization for '_lock_pi_object.fn') 188 | .fn = &wrapper_##test_name, \ | ^ ../../kselftest_harness.h:157:25: note: in expansion of macro '__TEST_IMPL' 157 | #define TEST(test_name) __TEST_IMPL(test_name, -1) | ^~~~~~~~~~~ futex_wait_timeout.c:128:1: note: in expansion of macro 'TEST' 128 | TEST(lock_pi) | ^~~~ ../../kselftest_harness.h:188:25: error: initialization of 'void (*)(struct __test_metadata *, struct __fixture_variant_metadata *, char *)' from incompatible pointer type 'void (*)(struct __test_metadata *, struct __fixture_variant_metadata *)' [-Wincompatible-pointer-types] 188 | .fn = &wrapper_##test_name, \ | ^ ../../kselftest_harness.h:157:25: note: in expansion of macro '__TEST_IMPL' 157 | #define TEST(test_name) __TEST_IMPL(test_name, -1) | ^~~~~~~~~~~ futex_wait_timeout.c:162:1: note: in expansion of macro 'TEST' 162 | TEST(waitv) | ^~~~ ../../kselftest_harness.h:188:25: note: (near initialization for '_waitv_object.fn') 188 | .fn = &wrapper_##test_name, \ | ^ ../../kselftest_harness.h:157:25: note: in expansion of macro '__TEST_IMPL' 157 | #define TEST(test_name) __TEST_IMPL(test_name, -1) | ^~~~~~~~~~~ futex_wait_timeout.c:162:1: note: in expansion of macro 'TEST' 162 | TEST(waitv) | ^~~~
../../kselftest_harness.h:1251:13: warning: 'disable_kcov' defined but not used [-Wunused-function]
1251 | static void disable_kcov(struct __test_metadata *t, char *test_name) | ^~~~~~~~~~~~
../../kselftest_harness.h:1204:13: warning: 'enable_kcov' defined but not used [-Wunused-function]
1204 | static void enable_kcov(struct __test_metadata *t) | ^~~~~~~~~~~ -- In file included from futex_wait_wouldblock.c:27: ../../kselftest_harness.h:188:25: error: initialization of 'void (*)(struct __test_metadata *, struct __fixture_variant_metadata *, char *)' from incompatible pointer type 'void (*)(struct __test_metadata *, struct __fixture_variant_metadata *)' [-Wincompatible-pointer-types] 188 | .fn = &wrapper_##test_name, \ | ^ ../../kselftest_harness.h:157:25: note: in expansion of macro '__TEST_IMPL' 157 | #define TEST(test_name) __TEST_IMPL(test_name, -1) | ^~~~~~~~~~~ futex_wait_wouldblock.c:31:1: note: in expansion of macro 'TEST' 31 | TEST(futex_wait_wouldblock) | ^~~~ ../../kselftest_harness.h:188:25: note: (near initialization for '_futex_wait_wouldblock_object.fn') 188 | .fn = &wrapper_##test_name, \ | ^ ../../kselftest_harness.h:157:25: note: in expansion of macro '__TEST_IMPL' 157 | #define TEST(test_name) __TEST_IMPL(test_name, -1) | ^~~~~~~~~~~ futex_wait_wouldblock.c:31:1: note: in expansion of macro 'TEST' 31 | TEST(futex_wait_wouldblock) | ^~~~ ../../kselftest_harness.h:188:25: error: initialization of 'void (*)(struct __test_metadata *, struct __fixture_variant_metadata *, char *)' from incompatible pointer type 'void (*)(struct __test_metadata *, struct __fixture_variant_metadata *)' [-Wincompatible-pointer-types] 188 | .fn = &wrapper_##test_name, \ | ^ ../../kselftest_harness.h:157:25: note: in expansion of macro '__TEST_IMPL' 157 | #define TEST(test_name) __TEST_IMPL(test_name, -1) | ^~~~~~~~~~~ futex_wait_wouldblock.c:48:1: note: in expansion of macro 'TEST' 48 | TEST(futex_waitv_wouldblock) | ^~~~ ../../kselftest_harness.h:188:25: note: (near initialization for '_futex_waitv_wouldblock_object.fn') 188 | .fn = &wrapper_##test_name, \ | ^ ../../kselftest_harness.h:157:25: note: in expansion of macro '__TEST_IMPL' 157 | #define TEST(test_name) __TEST_IMPL(test_name, -1) | ^~~~~~~~~~~ futex_wait_wouldblock.c:48:1: note: in expansion of macro 'TEST' 48 | TEST(futex_waitv_wouldblock) | ^~~~
../../kselftest_harness.h:1251:13: warning: 'disable_kcov' defined but not used [-Wunused-function]
1251 | static void disable_kcov(struct __test_metadata *t, char *test_name) | ^~~~~~~~~~~~
../../kselftest_harness.h:1204:13: warning: 'enable_kcov' defined but not used [-Wunused-function]
1204 | static void enable_kcov(struct __test_metadata *t) | ^~~~~~~~~~~ -- In file included from futex_requeue_pi_signal_restart.c:30: ../../kselftest_harness.h:188:25: error: initialization of 'void (*)(struct __test_metadata *, struct __fixture_variant_metadata *, char *)' from incompatible pointer type 'void (*)(struct __test_metadata *, struct __fixture_variant_metadata *)' [-Wincompatible-pointer-types] 188 | .fn = &wrapper_##test_name, \ | ^ ../../kselftest_harness.h:157:25: note: in expansion of macro '__TEST_IMPL' 157 | #define TEST(test_name) __TEST_IMPL(test_name, -1) | ^~~~~~~~~~~ futex_requeue_pi_signal_restart.c:98:1: note: in expansion of macro 'TEST' 98 | TEST(futex_requeue_pi_signal_restart) | ^~~~ ../../kselftest_harness.h:188:25: note: (near initialization for '_futex_requeue_pi_signal_restart_object.fn') 188 | .fn = &wrapper_##test_name, \ | ^ ../../kselftest_harness.h:157:25: note: in expansion of macro '__TEST_IMPL' 157 | #define TEST(test_name) __TEST_IMPL(test_name, -1) | ^~~~~~~~~~~ futex_requeue_pi_signal_restart.c:98:1: note: in expansion of macro 'TEST' 98 | TEST(futex_requeue_pi_signal_restart) | ^~~~
../../kselftest_harness.h:1251:13: warning: 'disable_kcov' defined but not used [-Wunused-function]
1251 | static void disable_kcov(struct __test_metadata *t, char *test_name) | ^~~~~~~~~~~~
../../kselftest_harness.h:1204:13: warning: 'enable_kcov' defined but not used [-Wunused-function]
1204 | static void enable_kcov(struct __test_metadata *t) | ^~~~~~~~~~~ -- In file included from futex_requeue_pi_mismatched_ops.c:28: ../../kselftest_harness.h:188:25: error: initialization of 'void (*)(struct __test_metadata *, struct __fixture_variant_metadata *, char *)' from incompatible pointer type 'void (*)(struct __test_metadata *, struct __fixture_variant_metadata *)' [-Wincompatible-pointer-types] 188 | .fn = &wrapper_##test_name, \ | ^ ../../kselftest_harness.h:157:25: note: in expansion of macro '__TEST_IMPL' 157 | #define TEST(test_name) __TEST_IMPL(test_name, -1) | ^~~~~~~~~~~ futex_requeue_pi_mismatched_ops.c:44:1: note: in expansion of macro 'TEST' 44 | TEST(requeue_pi_mismatched_ops) | ^~~~ ../../kselftest_harness.h:188:25: note: (near initialization for '_requeue_pi_mismatched_ops_object.fn') 188 | .fn = &wrapper_##test_name, \ | ^ ../../kselftest_harness.h:157:25: note: in expansion of macro '__TEST_IMPL' 157 | #define TEST(test_name) __TEST_IMPL(test_name, -1) | ^~~~~~~~~~~ futex_requeue_pi_mismatched_ops.c:44:1: note: in expansion of macro 'TEST' 44 | TEST(requeue_pi_mismatched_ops) | ^~~~
../../kselftest_harness.h:1251:13: warning: 'disable_kcov' defined but not used [-Wunused-function]
1251 | static void disable_kcov(struct __test_metadata *t, char *test_name) | ^~~~~~~~~~~~
../../kselftest_harness.h:1204:13: warning: 'enable_kcov' defined but not used [-Wunused-function]
1204 | static void enable_kcov(struct __test_metadata *t) | ^~~~~~~~~~~ -- In file included from futex_wait_uninitialized_heap.c:33: ../../kselftest_harness.h:188:25: error: initialization of 'void (*)(struct __test_metadata *, struct __fixture_variant_metadata *, char *)' from incompatible pointer type 'void (*)(struct __test_metadata *, struct __fixture_variant_metadata *)' [-Wincompatible-pointer-types] 188 | .fn = &wrapper_##test_name, \ | ^ ../../kselftest_harness.h:157:25: note: in expansion of macro '__TEST_IMPL' 157 | #define TEST(test_name) __TEST_IMPL(test_name, -1) | ^~~~~~~~~~~ futex_wait_uninitialized_heap.c:56:1: note: in expansion of macro 'TEST' 56 | TEST(futex_wait_uninitialized_heap) | ^~~~ ../../kselftest_harness.h:188:25: note: (near initialization for '_futex_wait_uninitialized_heap_object.fn') 188 | .fn = &wrapper_##test_name, \ | ^ ../../kselftest_harness.h:157:25: note: in expansion of macro '__TEST_IMPL' 157 | #define TEST(test_name) __TEST_IMPL(test_name, -1) | ^~~~~~~~~~~ futex_wait_uninitialized_heap.c:56:1: note: in expansion of macro 'TEST' 56 | TEST(futex_wait_uninitialized_heap) | ^~~~
../../kselftest_harness.h:1251:13: warning: 'disable_kcov' defined but not used [-Wunused-function]
1251 | static void disable_kcov(struct __test_metadata *t, char *test_name) | ^~~~~~~~~~~~
../../kselftest_harness.h:1204:13: warning: 'enable_kcov' defined but not used [-Wunused-function]
1204 | static void enable_kcov(struct __test_metadata *t) | ^~~~~~~~~~~ -- In file included from futex_wait_private_mapped_file.c:31: ../../kselftest_harness.h:188:25: error: initialization of 'void (*)(struct __test_metadata *, struct __fixture_variant_metadata *, char *)' from incompatible pointer type 'void (*)(struct __test_metadata *, struct __fixture_variant_metadata *)' [-Wincompatible-pointer-types] 188 | .fn = &wrapper_##test_name, \ | ^ ../../kselftest_harness.h:157:25: note: in expansion of macro '__TEST_IMPL' 157 | #define TEST(test_name) __TEST_IMPL(test_name, -1) | ^~~~~~~~~~~ futex_wait_private_mapped_file.c:59:1: note: in expansion of macro 'TEST' 59 | TEST(wait_private_mapped_file) | ^~~~ ../../kselftest_harness.h:188:25: note: (near initialization for '_wait_private_mapped_file_object.fn') 188 | .fn = &wrapper_##test_name, \ | ^ ../../kselftest_harness.h:157:25: note: in expansion of macro '__TEST_IMPL' 157 | #define TEST(test_name) __TEST_IMPL(test_name, -1) | ^~~~~~~~~~~ futex_wait_private_mapped_file.c:59:1: note: in expansion of macro 'TEST' 59 | TEST(wait_private_mapped_file) | ^~~~
../../kselftest_harness.h:1251:13: warning: 'disable_kcov' defined but not used [-Wunused-function]
1251 | static void disable_kcov(struct __test_metadata *t, char *test_name) | ^~~~~~~~~~~~
../../kselftest_harness.h:1204:13: warning: 'enable_kcov' defined but not used [-Wunused-function]
1204 | static void enable_kcov(struct __test_metadata *t) | ^~~~~~~~~~~ -- In file included from futex_wait.c:14: ../../kselftest_harness.h:188:25: error: initialization of 'void (*)(struct __test_metadata *, struct __fixture_variant_metadata *, char *)' from incompatible pointer type 'void (*)(struct __test_metadata *, struct __fixture_variant_metadata *)' [-Wincompatible-pointer-types] 188 | .fn = &wrapper_##test_name, \ | ^ ../../kselftest_harness.h:157:25: note: in expansion of macro '__TEST_IMPL' 157 | #define TEST(test_name) __TEST_IMPL(test_name, -1) | ^~~~~~~~~~~ futex_wait.c:39:1: note: in expansion of macro 'TEST' 39 | TEST(private_futex) | ^~~~ ../../kselftest_harness.h:188:25: note: (near initialization for '_private_futex_object.fn') 188 | .fn = &wrapper_##test_name, \ | ^ ../../kselftest_harness.h:157:25: note: in expansion of macro '__TEST_IMPL' 157 | #define TEST(test_name) __TEST_IMPL(test_name, -1) | ^~~~~~~~~~~ futex_wait.c:39:1: note: in expansion of macro 'TEST' 39 | TEST(private_futex) | ^~~~ ../../kselftest_harness.h:188:25: error: initialization of 'void (*)(struct __test_metadata *, struct __fixture_variant_metadata *, char *)' from incompatible pointer type 'void (*)(struct __test_metadata *, struct __fixture_variant_metadata *)' [-Wincompatible-pointer-types] 188 | .fn = &wrapper_##test_name, \ | ^ ../../kselftest_harness.h:157:25: note: in expansion of macro '__TEST_IMPL' 157 | #define TEST(test_name) __TEST_IMPL(test_name, -1) | ^~~~~~~~~~~ futex_wait.c:65:1: note: in expansion of macro 'TEST' 65 | TEST(anon_page) | ^~~~ ../../kselftest_harness.h:188:25: note: (near initialization for '_anon_page_object.fn') 188 | .fn = &wrapper_##test_name, \ | ^ ../../kselftest_harness.h:157:25: note: in expansion of macro '__TEST_IMPL' 157 | #define TEST(test_name) __TEST_IMPL(test_name, -1) | ^~~~~~~~~~~ futex_wait.c:65:1: note: in expansion of macro 'TEST' 65 | TEST(anon_page) | ^~~~ ../../kselftest_harness.h:188:25: error: initialization of 'void (*)(struct __test_metadata *, struct __fixture_variant_metadata *, char *)' from incompatible pointer type 'void (*)(struct __test_metadata *, struct __fixture_variant_metadata *)' [-Wincompatible-pointer-types] 188 | .fn = &wrapper_##test_name, \ | ^ ../../kselftest_harness.h:157:25: note: in expansion of macro '__TEST_IMPL' 157 | #define TEST(test_name) __TEST_IMPL(test_name, -1) | ^~~~~~~~~~~ futex_wait.c:101:1: note: in expansion of macro 'TEST' 101 | TEST(file_backed) | ^~~~ ../../kselftest_harness.h:188:25: note: (near initialization for '_file_backed_object.fn') 188 | .fn = &wrapper_##test_name, \ | ^ ../../kselftest_harness.h:157:25: note: in expansion of macro '__TEST_IMPL' 157 | #define TEST(test_name) __TEST_IMPL(test_name, -1) | ^~~~~~~~~~~ futex_wait.c:101:1: note: in expansion of macro 'TEST' 101 | TEST(file_backed) | ^~~~
../../kselftest_harness.h:1251:13: warning: 'disable_kcov' defined but not used [-Wunused-function]
1251 | static void disable_kcov(struct __test_metadata *t, char *test_name) | ^~~~~~~~~~~~
../../kselftest_harness.h:1204:13: warning: 'enable_kcov' defined but not used [-Wunused-function]
1204 | static void enable_kcov(struct __test_metadata *t) | ^~~~~~~~~~~ ..