linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ext: EXT4_KUNIT_TESTS should depend on EXT4_FS instead of selecting it
@ 2020-10-20  7:37 Geert Uytterhoeven
  2020-10-21 21:15 ` Brendan Higgins
  0 siblings, 1 reply; 13+ messages in thread
From: Geert Uytterhoeven @ 2020-10-20  7:37 UTC (permalink / raw)
  To: Theodore Ts'o, Andreas Dilger, Shuah Khan, Iurii Zaikin,
	Brendan Higgins
  Cc: Paolo Abeni, Matthieu Baerts, linux-ext4, linux-kernel,
	Geert Uytterhoeven

EXT4_KUNIT_TESTS selects EXT4_FS, thus enabling an optional feature the
user may not want to enable.  Fix this by making the test depend on
EXT4_FS instead.

Fixes: 1cbeab1b242d16fd ("ext4: add kunit test for decoding extended timestamps")
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
---
See also "[PATCH] mptcp: MPTCP_KUNIT_TESTS should depend on MPTCP
instead of selecting it".
https://lore.kernel.org/lkml/20201019113240.11516-1-geert@linux-m68k.org/
---
 fs/ext4/Kconfig | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/fs/ext4/Kconfig b/fs/ext4/Kconfig
index 619dd35ddd48a973..86699c8cab281cbc 100644
--- a/fs/ext4/Kconfig
+++ b/fs/ext4/Kconfig
@@ -103,8 +103,7 @@ config EXT4_DEBUG
 
 config EXT4_KUNIT_TESTS
 	tristate "KUnit tests for ext4" if !KUNIT_ALL_TESTS
-	select EXT4_FS
-	depends on KUNIT
+	depends on EXT4_FS && KUNIT
 	default KUNIT_ALL_TESTS
 	help
 	  This builds the ext4 KUnit tests.
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2020-10-24  5:53 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-10-20  7:37 [PATCH] ext: EXT4_KUNIT_TESTS should depend on EXT4_FS instead of selecting it Geert Uytterhoeven
2020-10-21 21:15 ` Brendan Higgins
2020-10-21 21:16   ` Randy Dunlap
2020-10-21 22:36     ` Theodore Y. Ts'o
2020-10-21 23:07       ` Randy Dunlap
2020-10-22  3:43         ` Theodore Y. Ts'o
2020-10-22  3:55           ` Randy Dunlap
2020-10-22  7:20           ` Geert Uytterhoeven
2020-10-22 23:52       ` Brendan Higgins
2020-10-23 14:07         ` Theodore Y. Ts'o
2020-10-24  5:53           ` David Gow
2020-10-21 21:29   ` David Gow
2020-10-21 21:30     ` Randy Dunlap

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 NNTP newsgroup(s).