lib: Make prime number generator independently selectable
authorMasami Hiramatsu <mhiramat@kernel.org>
Thu, 28 May 2020 14:52:06 +0000 (23:52 +0900)
committerShuah Khan <skhan@linuxfoundation.org>
Tue, 2 Jun 2020 16:25:20 +0000 (10:25 -0600)
Make prime number generator independently selectable from
kconfig. This allows us to enable CONFIG_PRIME_NUMBERS=m
and run the tools/testing/selftests/lib/prime_numbers.sh
without other DRM selftest modules.

Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Reviewed-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Luis Chamberlain <mcgrof@kernel.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
lib/math/Kconfig

index 15bd50d92308d983a67f61fe3d801fec544a5d60..f19bc9734fa7cc4bbeed221b2ec23c870b2bf9d6 100644 (file)
@@ -6,7 +6,12 @@ config CORDIC
          calculations are in fixed point. Module will be called cordic.
 
 config PRIME_NUMBERS
-       tristate
+       tristate "Simple prime number generator for testing"
+       help
+         This option provides a simple prime number generator for test
+         modules.
+
+         If unsure, say N.
 
 config RATIONAL
        bool