Re: [PATCH] xfs: convert the dahash test to KUnit

From: kernel test robot

Date: Thu Nov 12 2026 - 17:44:31 EST


Hi Wang,

kernel test robot noticed the following build errors:

[auto build test ERROR on xfs-linux/for-next]
[also build test ERROR on linus/master v7.4-rc2 next-20261111]
[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/Wang-Yibo/xfs-convert-the-dahash-test-to-KUnit/20261112-121631
base: https://git.kernel.org/pub/scm/fs/xfs/xfs-linux.git for-next
patch link: https://lore.kernel.org/r/20261112041631.2792545-1-wangyibo%40kylinos.cn
patch subject: [PATCH] xfs: convert the dahash test to KUnit
config: i386-randconfig-1012-20261112 (https://download.01.org/0day-ci/archive/20261113/202611130302.dGXAb4Py-lkp@xxxxxxxxx/config)
compiler: gcc-13 (Debian 13.3.0-16) 13.3.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261113/202611130302.dGXAb4Py-lkp@xxxxxxxxx/reproduce)

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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202611130302.dGXAb4Py-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

ld: fs/xfs/xfs_dahash_test.o: in function `xfs_ascii_ci_hashname_case':
>> fs/xfs/xfs_dahash_test.c:671:(.text+0x88): undefined reference to `kunit_binary_assert_format'
>> ld: fs/xfs/xfs_dahash_test.c:671:(.text+0xc0): undefined reference to `__kunit_do_failed_assertion'
ld: fs/xfs/xfs_dahash_test.o: in function `xfs_da_hashname_case':
fs/xfs/xfs_dahash_test.c:655:(.text+0x178): undefined reference to `kunit_binary_assert_format'
ld: fs/xfs/xfs_dahash_test.c:655:(.text+0x1b0): undefined reference to `__kunit_do_failed_assertion'


vim +671 fs/xfs/xfs_dahash_test.c

658
659 static void xfs_ascii_ci_hashname_case(struct kunit *test)
660 {
661 unsigned int i;
662
663 for (i = 0; i < ARRAY_SIZE(dahash_test_vecs); i++) {
664 const struct dahash_test *tv = &dahash_test_vecs[i];
665 struct xfs_name xname = { };
666 xfs_dahash_t hash;
667
668 xname.name = test_buf + tv->start;
669 xname.len = tv->length;
670 hash = xfs_ascii_ci_hashname(&xname);
> 671 KUNIT_EXPECT_EQ_MSG(test, hash, tv->ascii_ci_dahash,
672 "case %u", i);
673 }
674 }
675

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki