WSL2-Linux-Kernel/lib/math
Geert Uytterhoeven bcda5fd344 math: make RATIONAL tristate
Patch series "math: RATIONAL and RATIONAL_KUNIT_TEST improvements".

This series makes the RATIONAL symbol tristate, so it is not forced
builtin if all users are modular, and makes the RATIONAL_KUNIT_TEST depend
on RATIONAL, to avoid enabling RATIONAL if there are no real users.

This patch (of 2):

All but one symbols that select RATIONAL are tristate, but RATIONAL itself
is bool.  Change it to tristate, so the rational fractions support code
can be modular if no builtin code relies on it.

Link: https://lkml.kernel.org/r/20210706100945.3803694-1-geert@linux-m68k.org
Link: https://lkml.kernel.org/r/20210706100945.3803694-2-geert@linux-m68k.org
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Trent Piepho <tpiepho@gmail.com>
Cc: Colin Ian King <colin.king@canonical.com>
Cc: Brendan Higgins <brendanhiggins@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2021-09-08 11:50:26 -07:00
..
Kconfig math: make RATIONAL tristate 2021-09-08 11:50:26 -07:00
Makefile lib/math/rational: add Kunit test cases 2021-07-01 11:06:05 -07:00
cordic.c
div64.c math: Export mul_u64_u64_div_u64 2021-03-24 16:42:54 -07:00
gcd.c
int_pow.c
int_sqrt.c
lcm.c
prime_numbers.c
rational-test.c lib/math/rational: add Kunit test cases 2021-07-01 11:06:05 -07:00
rational.c math: make RATIONAL tristate 2021-09-08 11:50:26 -07:00
reciprocal_div.c
test_div64.c lib/math/test_div64: Correct the spelling of "dividend" 2021-04-23 13:40:05 +02:00