unicode: Allow building kunit test suite as a module
PATCH 1/1 unicode: Allow building kunit test suite as a module
Starting on commit c475c77d5b56 ("kunit: allow kunit tests to be loaded as a module") kunit testsuites need to be buildable as modules, to prevent the undefined references below, in case KUNIT itself was made a module:
utf8-test.c:(.text+0x48): undefined reference to `kunit_ptr_not_err_assert_format'
Quoted 3 lines
Quoted 3 lines
sparc64-linux-ld: utf8-test.c:(.text+0x50): undefined reference to `kunit_ptr_not_err_assert_format'
sparc64-linux-ld: utf8-test.c:(.text+0xb4): undefined reference to `kunit_do_assertion'
sparc64-linux-ld: utf8-test.c:(.text+0xbc): undefined reference to
`kunit_binary_assert_format'
This was found by 0-day on linux-next and fixes the allmodconfig build
CC Ricardo Cañuelo <[email protected]>
Fixes d269543a1dcb ("unicode: implement utf8 unit tests as a KUnit test suite")
Reported-by kbuild test robot <[email protected]>
Signed-off-by Gabriel Krisman Bertazi <[email protected]>
--- fs/unicode/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/unicode/Kconfig +1 -1
@@ -9,7 +9,7 @@ config UNICODE support. config UNICODE_KUNIT_TESTS - bool "KUnit tests for Unicode normalization and casefolding support" + tristate "KUnit tests for Unicode normalization and casefolding support" depends on UNICODE && KUNIT default n help
Signature · 1 line
2.26.2