Skip to content

Commit 302fdad

Browse files
geertutytso
authored andcommitted
ext: EXT4_KUNIT_TESTS should depend on EXT4_FS instead of selecting it
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: 1cbeab1 ("ext4: add kunit test for decoding extended timestamps") Reviewed-by: Randy Dunlap <rdunlap@infradead.org> Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Link: https://lore.kernel.org/r/20210122110234.2825685-1-geert@linux-m68k.org Signed-off-by: Theodore Ts'o <tytso@mit.edu>
1 parent 3258386 commit 302fdad

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

fs/ext4/Kconfig

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,7 @@ config EXT4_DEBUG
103103

104104
config EXT4_KUNIT_TESTS
105105
tristate "KUnit tests for ext4" if !KUNIT_ALL_TESTS
106-
select EXT4_FS
107-
depends on KUNIT
106+
depends on EXT4_FS && KUNIT
108107
default KUNIT_ALL_TESTS
109108
help
110109
This builds the ext4 KUnit tests.

0 commit comments

Comments
 (0)