Hi David, First bad commit (maybe != root cause): tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 4662b7adea50bb62e993a67f611f3be625d3df0d commit: 291cd54e5b05790b429826f5a49fe8b8c3e39ebd [9680/10347] mmc: sdhci-of-aspeed: test: Use kunit_test_suite() macro config: openrisc-randconfig-r014-20220712 (https://download.01.org/0day-ci/archive/20220714/202207140122.fzhlf60k-lkp@xxxxxxxxx/config) compiler: or1k-linux-gcc (GCC) 11.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=291cd54e5b05790b429826f5a49fe8b8c3e39ebd git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next master git checkout 291cd54e5b05790b429826f5a49fe8b8c3e39ebd # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=openrisc SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot <lkp@xxxxxxxxx> All errors (new ones prefixed by >>): or1k-linux-ld: drivers/mmc/host/sdhci-of-aspeed.o: in function `aspeed_sdhci_phase_ddr52': >> drivers/mmc/host/sdhci-of-aspeed-test.c:10: undefined reference to `kunit_binary_assert_format' >> or1k-linux-ld: drivers/mmc/host/sdhci-of-aspeed-test.c:10: undefined reference to `kunit_binary_assert_format' >> or1k-linux-ld: drivers/mmc/host/sdhci-of-aspeed-test.c:10: undefined reference to `kunit_do_failed_assertion' drivers/mmc/host/sdhci-of-aspeed-test.c:10:(.text+0x5d0): relocation truncated to fit: R_OR1K_INSN_REL_26 against undefined symbol `kunit_do_failed_assertion' or1k-linux-ld: drivers/mmc/host/sdhci-of-aspeed-test.c:12: undefined reference to `kunit_binary_assert_format' or1k-linux-ld: drivers/mmc/host/sdhci-of-aspeed-test.c:12: undefined reference to `kunit_binary_assert_format' or1k-linux-ld: drivers/mmc/host/sdhci-of-aspeed-test.c:12: undefined reference to `kunit_do_failed_assertion' drivers/mmc/host/sdhci-of-aspeed-test.c:12:(.text+0x670): relocation truncated to fit: R_OR1K_INSN_REL_26 against undefined symbol `kunit_do_failed_assertion' or1k-linux-ld: drivers/mmc/host/sdhci-of-aspeed-test.c:14: undefined reference to `kunit_binary_assert_format' or1k-linux-ld: drivers/mmc/host/sdhci-of-aspeed-test.c:14: undefined reference to `kunit_binary_assert_format' or1k-linux-ld: drivers/mmc/host/sdhci-of-aspeed-test.c:14: undefined reference to `kunit_do_failed_assertion' drivers/mmc/host/sdhci-of-aspeed-test.c:14:(.text+0x718): relocation truncated to fit: R_OR1K_INSN_REL_26 against undefined symbol `kunit_do_failed_assertion' or1k-linux-ld: drivers/mmc/host/sdhci-of-aspeed-test.c:16: undefined reference to `kunit_binary_assert_format' or1k-linux-ld: drivers/mmc/host/sdhci-of-aspeed-test.c:16: undefined reference to `kunit_binary_assert_format' or1k-linux-ld: drivers/mmc/host/sdhci-of-aspeed-test.c:16: undefined reference to `kunit_do_failed_assertion' drivers/mmc/host/sdhci-of-aspeed-test.c:16:(.text+0x7c0): relocation truncated to fit: R_OR1K_INSN_REL_26 against undefined symbol `kunit_do_failed_assertion' or1k-linux-ld: drivers/mmc/host/sdhci-of-aspeed-test.c:18: undefined reference to `kunit_binary_assert_format' or1k-linux-ld: drivers/mmc/host/sdhci-of-aspeed-test.c:18: undefined reference to `kunit_binary_assert_format' or1k-linux-ld: drivers/mmc/host/sdhci-of-aspeed-test.c:18: undefined reference to `kunit_do_failed_assertion' drivers/mmc/host/sdhci-of-aspeed-test.c:18:(.text+0x868): relocation truncated to fit: R_OR1K_INSN_REL_26 against undefined symbol `kunit_do_failed_assertion' or1k-linux-ld: drivers/mmc/host/sdhci-of-aspeed-test.c:20: undefined reference to `kunit_binary_assert_format' or1k-linux-ld: drivers/mmc/host/sdhci-of-aspeed-test.c:20: undefined reference to `kunit_binary_assert_format' or1k-linux-ld: drivers/mmc/host/sdhci-of-aspeed-test.c:20: undefined reference to `kunit_do_failed_assertion' drivers/mmc/host/sdhci-of-aspeed-test.c:20:(.text+0x910): relocation truncated to fit: R_OR1K_INSN_REL_26 against undefined symbol `kunit_do_failed_assertion' or1k-linux-ld: drivers/mmc/host/sdhci-of-aspeed-test.c:22: undefined reference to `kunit_binary_assert_format' or1k-linux-ld: drivers/mmc/host/sdhci-of-aspeed-test.c:22: undefined reference to `kunit_binary_assert_format' or1k-linux-ld: drivers/mmc/host/sdhci-of-aspeed-test.c:22: undefined reference to `kunit_do_failed_assertion' drivers/mmc/host/sdhci-of-aspeed-test.c:22:(.text+0x9b8): relocation truncated to fit: R_OR1K_INSN_REL_26 against undefined symbol `kunit_do_failed_assertion' or1k-linux-ld: drivers/mmc/host/sdhci-of-aspeed-test.c:24: undefined reference to `kunit_binary_assert_format' or1k-linux-ld: drivers/mmc/host/sdhci-of-aspeed-test.c:24: undefined reference to `kunit_binary_assert_format' or1k-linux-ld: drivers/mmc/host/sdhci-of-aspeed-test.c:24: undefined reference to `kunit_do_failed_assertion' drivers/mmc/host/sdhci-of-aspeed-test.c:24:(.text+0xa60): relocation truncated to fit: R_OR1K_INSN_REL_26 against undefined symbol `kunit_do_failed_assertion' or1k-linux-ld: drivers/mmc/host/sdhci-of-aspeed-test.c:26: undefined reference to `kunit_binary_assert_format' or1k-linux-ld: drivers/mmc/host/sdhci-of-aspeed-test.c:26: undefined reference to `kunit_binary_assert_format' or1k-linux-ld: drivers/mmc/host/sdhci-of-aspeed-test.c:26: undefined reference to `kunit_do_failed_assertion' drivers/mmc/host/sdhci-of-aspeed-test.c:26:(.text+0xb08): relocation truncated to fit: R_OR1K_INSN_REL_26 against undefined symbol `kunit_do_failed_assertion' or1k-linux-ld: drivers/mmc/host/sdhci-of-aspeed-test.c:29: undefined reference to `kunit_binary_assert_format' or1k-linux-ld: drivers/mmc/host/sdhci-of-aspeed-test.c:29: undefined reference to `kunit_binary_assert_format' or1k-linux-ld: drivers/mmc/host/sdhci-of-aspeed-test.c:29: undefined reference to `kunit_do_failed_assertion' drivers/mmc/host/sdhci-of-aspeed-test.c:29:(.text+0xbb0): relocation truncated to fit: R_OR1K_INSN_REL_26 against undefined symbol `kunit_do_failed_assertion' or1k-linux-ld: drivers/mmc/host/sdhci-of-aspeed-test.c:31: undefined reference to `kunit_binary_assert_format' or1k-linux-ld: drivers/mmc/host/sdhci-of-aspeed-test.c:31: undefined reference to `kunit_binary_assert_format' or1k-linux-ld: drivers/mmc/host/sdhci-of-aspeed-test.c:31: undefined reference to `kunit_do_failed_assertion' drivers/mmc/host/sdhci-of-aspeed-test.c:31:(.text+0xc58): additional relocation overflows omitted from the output or1k-linux-ld: drivers/mmc/host/sdhci-of-aspeed-test.c:33: undefined reference to `kunit_binary_assert_format' or1k-linux-ld: drivers/mmc/host/sdhci-of-aspeed-test.c:33: undefined reference to `kunit_binary_assert_format' or1k-linux-ld: drivers/mmc/host/sdhci-of-aspeed-test.c:33: undefined reference to `kunit_do_failed_assertion' or1k-linux-ld: drivers/mmc/host/sdhci-of-aspeed-test.c:35: undefined reference to `kunit_binary_assert_format' or1k-linux-ld: drivers/mmc/host/sdhci-of-aspeed-test.c:35: undefined reference to `kunit_binary_assert_format' or1k-linux-ld: drivers/mmc/host/sdhci-of-aspeed-test.c:35: undefined reference to `kunit_do_failed_assertion' or1k-linux-ld: drivers/mmc/host/sdhci-of-aspeed-test.c:37: undefined reference to `kunit_binary_assert_format' or1k-linux-ld: drivers/mmc/host/sdhci-of-aspeed-test.c:37: undefined reference to `kunit_binary_assert_format' or1k-linux-ld: drivers/mmc/host/sdhci-of-aspeed-test.c:37: undefined reference to `kunit_do_failed_assertion' or1k-linux-ld: drivers/mmc/host/sdhci-of-aspeed-test.c:39: undefined reference to `kunit_binary_assert_format' or1k-linux-ld: drivers/mmc/host/sdhci-of-aspeed-test.c:39: undefined reference to `kunit_binary_assert_format' or1k-linux-ld: drivers/mmc/host/sdhci-of-aspeed-test.c:39: undefined reference to `kunit_do_failed_assertion' or1k-linux-ld: drivers/mmc/host/sdhci-of-aspeed-test.c:41: undefined reference to `kunit_binary_assert_format' or1k-linux-ld: drivers/mmc/host/sdhci-of-aspeed-test.c:41: undefined reference to `kunit_binary_assert_format' or1k-linux-ld: drivers/mmc/host/sdhci-of-aspeed-test.c:41: undefined reference to `kunit_do_failed_assertion' or1k-linux-ld: drivers/mmc/host/sdhci-of-aspeed-test.c:43: undefined reference to `kunit_binary_assert_format' or1k-linux-ld: drivers/mmc/host/sdhci-of-aspeed-test.c:43: undefined reference to `kunit_binary_assert_format' or1k-linux-ld: drivers/mmc/host/sdhci-of-aspeed-test.c:43: undefined reference to `kunit_do_failed_assertion' or1k-linux-ld: drivers/mmc/host/sdhci-of-aspeed-test.c:45: undefined reference to `kunit_binary_assert_format' or1k-linux-ld: drivers/mmc/host/sdhci-of-aspeed-test.c:45: undefined reference to `kunit_binary_assert_format' or1k-linux-ld: drivers/mmc/host/sdhci-of-aspeed-test.c:45: undefined reference to `kunit_do_failed_assertion' or1k-linux-ld: drivers/mmc/host/sdhci-of-aspeed.o: in function `aspeed_sdhci_phase_hs200': drivers/mmc/host/sdhci-of-aspeed-test.c:53: undefined reference to `kunit_binary_assert_format' or1k-linux-ld: drivers/mmc/host/sdhci-of-aspeed-test.c:53: undefined reference to `kunit_binary_assert_format' or1k-linux-ld: drivers/mmc/host/sdhci-of-aspeed-test.c:53: undefined reference to `kunit_do_failed_assertion' or1k-linux-ld: drivers/mmc/host/sdhci-of-aspeed-test.c:55: undefined reference to `kunit_binary_assert_format' or1k-linux-ld: drivers/mmc/host/sdhci-of-aspeed-test.c:55: undefined reference to `kunit_binary_assert_format' or1k-linux-ld: drivers/mmc/host/sdhci-of-aspeed-test.c:55: undefined reference to `kunit_do_failed_assertion' or1k-linux-ld: drivers/mmc/host/sdhci-of-aspeed-test.c:57: undefined reference to `kunit_binary_assert_format' or1k-linux-ld: drivers/mmc/host/sdhci-of-aspeed-test.c:57: undefined reference to `kunit_binary_assert_format' or1k-linux-ld: drivers/mmc/host/sdhci-of-aspeed-test.c:57: undefined reference to `kunit_do_failed_assertion' or1k-linux-ld: drivers/mmc/host/sdhci-of-aspeed-test.c:59: undefined reference to `kunit_binary_assert_format' or1k-linux-ld: drivers/mmc/host/sdhci-of-aspeed-test.c:59: undefined reference to `kunit_binary_assert_format' or1k-linux-ld: drivers/mmc/host/sdhci-of-aspeed-test.c:59: undefined reference to `kunit_do_failed_assertion' or1k-linux-ld: drivers/mmc/host/sdhci-of-aspeed-test.c:61: undefined reference to `kunit_binary_assert_format' or1k-linux-ld: drivers/mmc/host/sdhci-of-aspeed-test.c:61: undefined reference to `kunit_binary_assert_format' or1k-linux-ld: drivers/mmc/host/sdhci-of-aspeed-test.c:61: undefined reference to `kunit_do_failed_assertion' or1k-linux-ld: drivers/mmc/host/sdhci-of-aspeed-test.c:63: undefined reference to `kunit_binary_assert_format' or1k-linux-ld: drivers/mmc/host/sdhci-of-aspeed-test.c:63: undefined reference to `kunit_binary_assert_format' or1k-linux-ld: drivers/mmc/host/sdhci-of-aspeed-test.c:63: undefined reference to `kunit_do_failed_assertion' or1k-linux-ld: drivers/mmc/host/sdhci-of-aspeed-test.c:65: undefined reference to `kunit_binary_assert_format' or1k-linux-ld: drivers/mmc/host/sdhci-of-aspeed-test.c:65: undefined reference to `kunit_binary_assert_format' or1k-linux-ld: drivers/mmc/host/sdhci-of-aspeed-test.c:65: undefined reference to `kunit_do_failed_assertion' or1k-linux-ld: drivers/mmc/host/sdhci-of-aspeed-test.c:67: undefined reference to `kunit_binary_assert_format' or1k-linux-ld: drivers/mmc/host/sdhci-of-aspeed-test.c:67: undefined reference to `kunit_binary_assert_format' or1k-linux-ld: drivers/mmc/host/sdhci-of-aspeed-test.c:67: undefined reference to `kunit_do_failed_assertion' or1k-linux-ld: drivers/mmc/host/sdhci-of-aspeed-test.c:70: undefined reference to `kunit_binary_assert_format' or1k-linux-ld: drivers/mmc/host/sdhci-of-aspeed-test.c:70: undefined reference to `kunit_binary_assert_format' or1k-linux-ld: drivers/mmc/host/sdhci-of-aspeed-test.c:70: undefined reference to `kunit_do_failed_assertion' or1k-linux-ld: drivers/mmc/host/sdhci-of-aspeed-test.c:72: undefined reference to `kunit_binary_assert_format' or1k-linux-ld: drivers/mmc/host/sdhci-of-aspeed-test.c:72: undefined reference to `kunit_binary_assert_format' or1k-linux-ld: drivers/mmc/host/sdhci-of-aspeed-test.c:72: undefined reference to `kunit_do_failed_assertion' or1k-linux-ld: drivers/mmc/host/sdhci-of-aspeed-test.c:74: undefined reference to `kunit_binary_assert_format' or1k-linux-ld: drivers/mmc/host/sdhci-of-aspeed-test.c:74: undefined reference to `kunit_binary_assert_format' or1k-linux-ld: drivers/mmc/host/sdhci-of-aspeed-test.c:74: undefined reference to `kunit_do_failed_assertion' or1k-linux-ld: drivers/mmc/host/sdhci-of-aspeed-test.c:76: undefined reference to `kunit_binary_assert_format' or1k-linux-ld: drivers/mmc/host/sdhci-of-aspeed-test.c:76: undefined reference to `kunit_binary_assert_format' or1k-linux-ld: drivers/mmc/host/sdhci-of-aspeed-test.c:76: undefined reference to `kunit_do_failed_assertion' or1k-linux-ld: drivers/mmc/host/sdhci-of-aspeed-test.c:78: undefined reference to `kunit_binary_assert_format' vim +10 drivers/mmc/host/sdhci-of-aspeed-test.c 0bbcd22556ef20 Andrew Jeffery 2021-01-14 5 0bbcd22556ef20 Andrew Jeffery 2021-01-14 6 static void aspeed_sdhci_phase_ddr52(struct kunit *test) 0bbcd22556ef20 Andrew Jeffery 2021-01-14 7 { 0bbcd22556ef20 Andrew Jeffery 2021-01-14 8 int rate = 52000000; 0bbcd22556ef20 Andrew Jeffery 2021-01-14 9 0bbcd22556ef20 Andrew Jeffery 2021-01-14 @10 KUNIT_EXPECT_EQ(test, 0, 0bbcd22556ef20 Andrew Jeffery 2021-01-14 11 aspeed_sdhci_phase_to_tap(NULL, rate, 0)); 0bbcd22556ef20 Andrew Jeffery 2021-01-14 12 KUNIT_EXPECT_EQ(test, 0, 0bbcd22556ef20 Andrew Jeffery 2021-01-14 13 aspeed_sdhci_phase_to_tap(NULL, rate, 1)); 0bbcd22556ef20 Andrew Jeffery 2021-01-14 14 KUNIT_EXPECT_EQ(test, 1, 0bbcd22556ef20 Andrew Jeffery 2021-01-14 15 aspeed_sdhci_phase_to_tap(NULL, rate, 2)); 0bbcd22556ef20 Andrew Jeffery 2021-01-14 16 KUNIT_EXPECT_EQ(test, 1, 0bbcd22556ef20 Andrew Jeffery 2021-01-14 17 aspeed_sdhci_phase_to_tap(NULL, rate, 3)); 0bbcd22556ef20 Andrew Jeffery 2021-01-14 18 KUNIT_EXPECT_EQ(test, 2, 0bbcd22556ef20 Andrew Jeffery 2021-01-14 19 aspeed_sdhci_phase_to_tap(NULL, rate, 4)); 0bbcd22556ef20 Andrew Jeffery 2021-01-14 20 KUNIT_EXPECT_EQ(test, 3, 0bbcd22556ef20 Andrew Jeffery 2021-01-14 21 aspeed_sdhci_phase_to_tap(NULL, rate, 5)); 0bbcd22556ef20 Andrew Jeffery 2021-01-14 22 KUNIT_EXPECT_EQ(test, 14, 0bbcd22556ef20 Andrew Jeffery 2021-01-14 23 aspeed_sdhci_phase_to_tap(NULL, rate, 23)); 0bbcd22556ef20 Andrew Jeffery 2021-01-14 24 KUNIT_EXPECT_EQ(test, 15, 0bbcd22556ef20 Andrew Jeffery 2021-01-14 25 aspeed_sdhci_phase_to_tap(NULL, rate, 24)); 0bbcd22556ef20 Andrew Jeffery 2021-01-14 26 KUNIT_EXPECT_EQ(test, 15, 0bbcd22556ef20 Andrew Jeffery 2021-01-14 27 aspeed_sdhci_phase_to_tap(NULL, rate, 25)); 0bbcd22556ef20 Andrew Jeffery 2021-01-14 28 97847240c0d5f7 David Gow 2021-05-13 29 KUNIT_EXPECT_EQ(test, ASPEED_SDHCI_TAP_PARAM_INVERT_CLK | 0, 0bbcd22556ef20 Andrew Jeffery 2021-01-14 30 aspeed_sdhci_phase_to_tap(NULL, rate, 180)); 97847240c0d5f7 David Gow 2021-05-13 31 KUNIT_EXPECT_EQ(test, ASPEED_SDHCI_TAP_PARAM_INVERT_CLK | 0, 0bbcd22556ef20 Andrew Jeffery 2021-01-14 32 aspeed_sdhci_phase_to_tap(NULL, rate, 181)); 97847240c0d5f7 David Gow 2021-05-13 33 KUNIT_EXPECT_EQ(test, ASPEED_SDHCI_TAP_PARAM_INVERT_CLK | 1, 0bbcd22556ef20 Andrew Jeffery 2021-01-14 34 aspeed_sdhci_phase_to_tap(NULL, rate, 182)); 97847240c0d5f7 David Gow 2021-05-13 35 KUNIT_EXPECT_EQ(test, ASPEED_SDHCI_TAP_PARAM_INVERT_CLK | 1, 0bbcd22556ef20 Andrew Jeffery 2021-01-14 36 aspeed_sdhci_phase_to_tap(NULL, rate, 183)); 97847240c0d5f7 David Gow 2021-05-13 37 KUNIT_EXPECT_EQ(test, ASPEED_SDHCI_TAP_PARAM_INVERT_CLK | 2, 0bbcd22556ef20 Andrew Jeffery 2021-01-14 38 aspeed_sdhci_phase_to_tap(NULL, rate, 184)); 97847240c0d5f7 David Gow 2021-05-13 39 KUNIT_EXPECT_EQ(test, ASPEED_SDHCI_TAP_PARAM_INVERT_CLK | 3, 0bbcd22556ef20 Andrew Jeffery 2021-01-14 40 aspeed_sdhci_phase_to_tap(NULL, rate, 185)); 97847240c0d5f7 David Gow 2021-05-13 41 KUNIT_EXPECT_EQ(test, ASPEED_SDHCI_TAP_PARAM_INVERT_CLK | 14, 0bbcd22556ef20 Andrew Jeffery 2021-01-14 42 aspeed_sdhci_phase_to_tap(NULL, rate, 203)); 97847240c0d5f7 David Gow 2021-05-13 43 KUNIT_EXPECT_EQ(test, ASPEED_SDHCI_TAP_PARAM_INVERT_CLK | 15, 0bbcd22556ef20 Andrew Jeffery 2021-01-14 44 aspeed_sdhci_phase_to_tap(NULL, rate, 204)); 97847240c0d5f7 David Gow 2021-05-13 45 KUNIT_EXPECT_EQ(test, ASPEED_SDHCI_TAP_PARAM_INVERT_CLK | 15, 0bbcd22556ef20 Andrew Jeffery 2021-01-14 46 aspeed_sdhci_phase_to_tap(NULL, rate, 205)); 0bbcd22556ef20 Andrew Jeffery 2021-01-14 47 } 0bbcd22556ef20 Andrew Jeffery 2021-01-14 48 :::::: The code at line 10 was first introduced by commit :::::: 0bbcd22556ef203b29e39a6ce1bd7e9523b6032e mmc: sdhci-of-aspeed: Add KUnit tests for phase calculations :::::: TO: Andrew Jeffery <andrew@xxxxxxxx> :::::: CC: Ulf Hansson <ulf.hansson@xxxxxxxxxx> -- 0-DAY CI Kernel Test Service https://01.org/lkp