Skip to contentSkip to conversation

mm/damon/tests/core-kunit.h:394:undefined reference to `kunit_binary_assert_format'

PATCH SeongJae Park 1 participant 1 message Jul 20, 2024 DAMON

lore
Share & tools
lore

SeongJae Park

author maintainer
#0 lore raw

Forwarding below to DAMON maling list.

=== >8 ===
From: SeongJae Park <[email protected]>
To: kernel test robot <[email protected]>
CC: SeongJae Park <[email protected]>, [email protected]
Subject: Re: [sj:damon/next 53/55] mm/damon/tests/core-kunit.h:394:undefined reference to `kunit_binary_assert_format'
Message-Id: <[email protected]>
In-Reply-To: <[email protected]>
Date: Sat, 20 Jul 2024 11:28:45 -0700
Local-Date: 2024-07-20 11:28:45-07:00

Hello,

Quoted 7 lines · On Sat, 20 Jul 2024 21:40:37 +0800 kernel test robot <[email protected]> wrote:
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/sj/linux.git damon/next
head:   8fc85b06e0de8c68ae3886178818c03d6eced514
commit: dfbce92b00bf8691cb86026352354792271c39f5 [53/55] mm/damon/tests: Rename test files to have _kunit suffix
config: i386-randconfig-015-20240720 (https://download.01.org/0day-ci/archive/20240720/[email protected]/config)
compiler: gcc-12 (Ubuntu 12.3.0-9ubuntu2) 12.3.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240720/[email protected]/reproduce)
Quoted 10 lines

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: mm/damon/core.o: in function `damon_test_moving_sum':

Quoted 2 lines
Quoted 2 lines

mm/damon/tests/core-kunit.h:394:(.text+0x9c5): undefined reference to `kunit_binary_assert_format'
ld: mm/damon/tests/core-kunit.h:394:(.text+0x9d3): undefined reference to `__kunit_do_failed_assertion'

[...]

Thank you for this report!

The commit that you found actually introduces the errors, but that's just renaming the files, which changed the error texts. Seems the real root cause of the errors are commit 06463781fa14 ("mm/damon/Kconfig: select DAMON modules to test when test config is set").

Pushed the fix with more detailed root causes description.
- damon/next tree: https://git.kernel.org/pub/scm/linux/kernel/git/sj/linux.git/commit/?h=damon/next&id=c3004f235d68aa890660b532b04714a40abafd78
- damon/next patches queue: https://git.kernel.org/pub/scm/linux/kernel/git/sj/damon-hack.git/commit/?id=63b91243a4c3e57262ce92e82d964f4dde26cbc6

Thanks,
SJ