Commit 8ba739ed authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Linus Torvalds

math: RATIONAL_KUNIT_TEST should depend on RATIONAL instead of selecting it

RATIONAL_KUNIT_TEST selects RATIONAL, thus enabling an optional feature
the user may not want to have enabled.  Fix this by making the test depend
on RATIONAL instead.

Link: https://lkml.kernel.org/r/20210706100945.3803694-3-geert@linux-m68k.org
Fixes: b6c75c4a ("lib/math/rational: add Kunit test cases")
Signed-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Brendan Higgins <brendanhiggins@google.com>
Cc: Colin Ian King <colin.king@canonical.com>
Cc: Trent Piepho <tpiepho@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent bcda5fd3
...@@ -2460,8 +2460,7 @@ config SLUB_KUNIT_TEST ...@@ -2460,8 +2460,7 @@ config SLUB_KUNIT_TEST
config RATIONAL_KUNIT_TEST config RATIONAL_KUNIT_TEST
tristate "KUnit test for rational.c" if !KUNIT_ALL_TESTS tristate "KUnit test for rational.c" if !KUNIT_ALL_TESTS
depends on KUNIT depends on KUNIT && RATIONAL
select RATIONAL
default KUNIT_ALL_TESTS default KUNIT_ALL_TESTS
help help
This builds the rational math unit test. This builds the rational math unit test.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment