* [linux-next:master 9342/12060] include/kunit/test.h:444:undefined reference to `kunit_kmalloc_array'
@ 2024-05-08 9:49 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-05-08 9:49 UTC (permalink / raw
To: Jason Gunthorpe
Cc: oe-kbuild-all, Linux Memory Management List, Will Deacon,
Michael Shavit
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: e7b4ef8fffaca247809337bb78daceb406659f2d
commit: 56e1a4cc2588a7cb9664457a62fd7a77e005aa01 [9342/12060] iommu/arm-smmu-v3: Add unit tests for arm_smmu_write_entry
config: arm64-randconfig-003-20240508 (https://download.01.org/0day-ci/archive/20240508/202405081726.OX8xkyJA-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240508/202405081726.OX8xkyJA-lkp@intel.com/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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202405081726.OX8xkyJA-lkp@intel.com/
All errors (new ones prefixed by >>):
aarch64-linux-ld: drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-test.o: in function `kunit_kmalloc':
>> include/kunit/test.h:444:(.text+0x34c): undefined reference to `kunit_kmalloc_array'
>> include/kunit/test.h:444:(.text+0x34c): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `kunit_kmalloc_array'
aarch64-linux-ld: drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-test.o: in function `arm_smmu_test_writer_record_syncs':
>> drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-test.c:58:(.text+0x368): undefined reference to `kunit_binary_ptr_assert_format'
>> drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-test.c:58:(.text+0x368): relocation truncated to fit: R_AARCH64_ADR_PREL_PG_HI21 against undefined symbol `kunit_binary_ptr_assert_format'
>> aarch64-linux-ld: drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-test.c:58:(.text+0x370): undefined reference to `kunit_binary_ptr_assert_format'
>> aarch64-linux-ld: drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-test.c:58:(.text+0x380): undefined reference to `__kunit_do_failed_assertion'
>> drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-test.c:58:(.text+0x380): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `__kunit_do_failed_assertion'
>> aarch64-linux-ld: drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-test.c:58:(.text+0x388): undefined reference to `__kunit_abort'
>> drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-test.c:58:(.text+0x388): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `__kunit_abort'
>> aarch64-linux-ld: drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-test.c:77:(.text+0x44c): undefined reference to `kunit_unary_assert_format'
>> drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-test.c:77:(.text+0x44c): relocation truncated to fit: R_AARCH64_ADR_PREL_PG_HI21 against undefined symbol `kunit_unary_assert_format'
aarch64-linux-ld: drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-test.c:77:(.text+0x454): undefined reference to `kunit_unary_assert_format'
aarch64-linux-ld: drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-test.c:77:(.text+0x468): undefined reference to `__kunit_do_failed_assertion'
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-test.c:77:(.text+0x468): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `__kunit_do_failed_assertion'
aarch64-linux-ld: drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-test.o: in function `arm_smmu_v3_test_cd_expect_transition':
>> drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-test.c:320:(.text+0x568): undefined reference to `kunit_binary_assert_format'
>> drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-test.c:320:(.text+0x568): relocation truncated to fit: R_AARCH64_ADR_PREL_PG_HI21 against undefined symbol `kunit_binary_assert_format'
>> aarch64-linux-ld: drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-test.c:320:(.text+0x570): undefined reference to `kunit_binary_assert_format'
aarch64-linux-ld: drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-test.c:320:(.text+0x58c): undefined reference to `__kunit_do_failed_assertion'
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-test.c:320:(.text+0x58c): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `__kunit_do_failed_assertion'
aarch64-linux-ld: drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-test.c:321:(.text+0x5a4): undefined reference to `kunit_binary_assert_format'
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-test.c:321:(.text+0x5a4): relocation truncated to fit: R_AARCH64_ADR_PREL_PG_HI21 against undefined symbol `kunit_binary_assert_format'
aarch64-linux-ld: drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-test.c:321:(.text+0x5ac): undefined reference to `kunit_binary_assert_format'
aarch64-linux-ld: drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-test.c:321:(.text+0x5c8): undefined reference to `__kunit_do_failed_assertion'
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-test.c:321:(.text+0x5c8): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `__kunit_do_failed_assertion'
>> aarch64-linux-ld: drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-test.c:322:(.text+0x658): undefined reference to `kunit_mem_assert_format'
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-test.c:322:(.text+0x658): additional relocation overflows omitted from the output
aarch64-linux-ld: drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-test.c:322:(.text+0x668): undefined reference to `kunit_mem_assert_format'
aarch64-linux-ld: drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-test.c:322:(.text+0x67c): undefined reference to `__kunit_do_failed_assertion'
aarch64-linux-ld: drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-test.o: in function `arm_smmu_v3_test_ste_expect_transition':
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-test.c:142:(.text+0x9d4): undefined reference to `kunit_binary_assert_format'
aarch64-linux-ld: drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-test.c:142:(.text+0x9dc): undefined reference to `kunit_binary_assert_format'
aarch64-linux-ld: drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-test.c:142:(.text+0x9f8): undefined reference to `__kunit_do_failed_assertion'
aarch64-linux-ld: drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-test.c:143:(.text+0xa14): undefined reference to `kunit_binary_assert_format'
aarch64-linux-ld: drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-test.c:143:(.text+0xa1c): undefined reference to `kunit_binary_assert_format'
aarch64-linux-ld: drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-test.c:143:(.text+0xa38): undefined reference to `__kunit_do_failed_assertion'
aarch64-linux-ld: drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-test.c:144:(.text+0xac8): undefined reference to `kunit_mem_assert_format'
aarch64-linux-ld: drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-test.c:144:(.text+0xad8): undefined reference to `kunit_mem_assert_format'
aarch64-linux-ld: drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-test.c:144:(.text+0xaec): undefined reference to `__kunit_do_failed_assertion'
vim +444 include/kunit/test.h
7122debb4367ee Daniel Latypov 2021-05-03 430
7122debb4367ee Daniel Latypov 2021-05-03 431 /**
7122debb4367ee Daniel Latypov 2021-05-03 432 * kunit_kmalloc() - Like kmalloc() except the allocation is *test managed*.
7122debb4367ee Daniel Latypov 2021-05-03 433 * @test: The test context object.
7122debb4367ee Daniel Latypov 2021-05-03 434 * @size: The size in bytes of the desired memory.
7122debb4367ee Daniel Latypov 2021-05-03 435 * @gfp: flags passed to underlying kmalloc().
7122debb4367ee Daniel Latypov 2021-05-03 436 *
7122debb4367ee Daniel Latypov 2021-05-03 437 * See kmalloc() and kunit_kmalloc_array() for more information.
57e3cded99e9c8 David Gow 2023-05-25 438 *
57e3cded99e9c8 David Gow 2023-05-25 439 * Note that some internal context data is also allocated with GFP_KERNEL,
57e3cded99e9c8 David Gow 2023-05-25 440 * regardless of the gfp passed in.
7122debb4367ee Daniel Latypov 2021-05-03 441 */
7122debb4367ee Daniel Latypov 2021-05-03 442 static inline void *kunit_kmalloc(struct kunit *test, size_t size, gfp_t gfp)
7122debb4367ee Daniel Latypov 2021-05-03 443 {
7122debb4367ee Daniel Latypov 2021-05-03 @444 return kunit_kmalloc_array(test, 1, size, gfp);
7122debb4367ee Daniel Latypov 2021-05-03 445 }
0a756853586ce1 Brendan Higgins 2019-09-23 446
:::::: The code at line 444 was first introduced by commit
:::::: 7122debb4367ee5c89237e5d36dcc0007d7ec43c kunit: introduce kunit_kmalloc_array/kunit_kcalloc() helpers
:::::: TO: Daniel Latypov <dlatypov@google.com>
:::::: CC: Shuah Khan <skhan@linuxfoundation.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-05-08 9:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-08 9:49 [linux-next:master 9342/12060] include/kunit/test.h:444:undefined reference to `kunit_kmalloc_array' kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).