mbox series

[0/2] math: RATIONAL and RATIONAL_KUNIT_TEST improvements

Message ID 20210706100945.3803694-1-geert@linux-m68k.org (mailing list archive)
Headers show
Series math: RATIONAL and RATIONAL_KUNIT_TEST improvements | expand

Message

Geert Uytterhoeven July 6, 2021, 10:09 a.m. UTC
Hi all,

This patch 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.

Changes compared to v1:
  - Drop compile-testing and help text for RATIONAL.
  - Make RATIONAL_KUNIT_TEST depend on RATIONAL.

Thanks for your comments!

[1] https://lore.kernel.org/r/20210705114633.1500710-1-geert@linux-m68k.org/

Geert Uytterhoeven (2):
  math: Make RATIONAL tristate
  math: RATIONAL_KUNIT_TEST should depend on RATIONAL instead of
    selecting it

 lib/Kconfig.debug   | 3 +--
 lib/math/Kconfig    | 2 +-
 lib/math/rational.c | 3 +++
 3 files changed, 5 insertions(+), 3 deletions(-)