Skip to content

Commit 20acf4d

Browse files
Thadeu Lima de Souza Cascardogregkh
authored andcommitted
char: misc: make miscdevice unit test built-in only
Since it uses __init symbols, it cannot be a module. Builds with CONFIG_TEST_MISC_MINOR=m will fail with: ERROR: modpost: "init_mknod" [drivers/misc/misc_minor_kunit.ko] undefined! ERROR: modpost: "init_unlink" [drivers/misc/misc_minor_kunit.ko] undefined! Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Closes: https://lore.kernel.org/linux-next/20250429155404.2b6fe5b1@canb.auug.org.au/ Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202504160338.BjUL3Owb-lkp@intel.com/ Fixes: 45f0de4 ("char: misc: add test cases") Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@igalia.com> Link: https://lore.kernel.org/r/20250430-misc-test-fixup-v1-1-6f39ed6c733d@igalia.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 4f822ad commit 20acf4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Kconfig.debug

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2512,7 +2512,7 @@ config TEST_IDA
25122512
tristate "Perform selftest on IDA functions"
25132513

25142514
config TEST_MISC_MINOR
2515-
tristate "miscdevice KUnit test" if !KUNIT_ALL_TESTS
2515+
bool "miscdevice KUnit test" if !KUNIT_ALL_TESTS
25162516
depends on KUNIT
25172517
default KUNIT_ALL_TESTS
25182518
help

0 commit comments

Comments
 (0)