Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: 1cbeab1b242d16fd ("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>

authored by

Geert Uytterhoeven and committed by
Theodore Ts'o
302fdade 3258386a

+1 -2
+1 -2
fs/ext4/Kconfig
··· 103 103 104 104 config EXT4_KUNIT_TESTS 105 105 tristate "KUnit tests for ext4" if !KUNIT_ALL_TESTS 106 - select EXT4_FS 107 - depends on KUNIT 106 + depends on EXT4_FS && KUNIT 108 107 default KUNIT_ALL_TESTS 109 108 help 110 109 This builds the ext4 KUnit tests.