[bvanassche:scsi-sdev-printk 1/2] ld.lld: error: undefined symbol: kunit_binary_str_assert_format

kernel test robot <[email protected]>
Newsgroups dev.linux.lists.oe-kbuild-all
Message-ID <[email protected]>
tree:   https://github.com/bvanassche/linux scsi-sdev-printk
head:   a31bd03242fd8e9fc6f3b0b5f48ca64bbb6c8f4c
commit: 3046a51bbd1826503f7037dd728fa56f87b73c23 [1/2] scsi: core: Add KUnit tests for scsi_logging.c
config: x86_64-randconfig-101-20260818 (https://download.01.org/0day-ci/archive/20260818/[email protected]/config)
compiler: clang version 22.1.3 (https://github.com/llvm/llvm-project e9846648fd6183ee6d8cbdb4502213fcf902a211)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260818/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All errors (new ones prefixed by >>):

>> ld.lld: error: undefined symbol: kunit_binary_str_assert_format
   >>> referenced by scsi_logging_test.c:107 (drivers/scsi/scsi_logging_test.c:107)
   >>>               drivers/scsi/scsi_logging.o:(test_sdev_prefix_printk) in archive vmlinux.a
   >>> referenced by scsi_logging_test.c:115 (drivers/scsi/scsi_logging_test.c:115)
   >>>               drivers/scsi/scsi_logging.o:(test_sdev_prefix_printk) in archive vmlinux.a
   >>> referenced by scsi_logging_test.c:109 (drivers/scsi/scsi_logging_test.c:109)
   >>>               drivers/scsi/scsi_logging.o:(test_sdev_prefix_printk) in archive vmlinux.a
   >>> referenced 30 more times
--
>> ld.lld: error: undefined symbol: kunit_binary_ptr_assert_format
   >>> referenced by scsi_logging_test.c:108 (drivers/scsi/scsi_logging_test.c:108)
   >>>               drivers/scsi/scsi_logging.o:(test_sdev_prefix_printk) in archive vmlinux.a
   >>> referenced by scsi_logging_test.c:116 (drivers/scsi/scsi_logging_test.c:116)
   >>>               drivers/scsi/scsi_logging.o:(test_sdev_prefix_printk) in archive vmlinux.a
   >>> referenced by scsi_logging_test.c:135 (drivers/scsi/scsi_logging_test.c:135)
   >>>               drivers/scsi/scsi_logging.o:(test_scmd_printk) in archive vmlinux.a
   >>> referenced 3 more times
--
>> ld.lld: error: undefined symbol: kunit_kmalloc_array
   >>> referenced by test.h:501 (include/kunit/test.h:501)
   >>>               drivers/scsi/scsi_logging.o:(test_scsi_print_sense_cmd) in archive vmlinux.a
   >>> referenced by test.h:501 (include/kunit/test.h:501)
   >>>               drivers/scsi/scsi_logging.o:(scsi_logging_create_fixture) in archive vmlinux.a
   >>> referenced by test.h:501 (include/kunit/test.h:501)
   >>>               drivers/scsi/scsi_logging.o:(scsi_logging_create_fixture) in archive vmlinux.a
   >>> referenced 3 more times

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.