summaryrefslogtreecommitdiffstats
path: root/lib/math
diff options
context:
space:
mode:
authorMasami Hiramatsu <mhiramat@kernel.org>2020-05-28 16:52:06 +0200
committerShuah Khan <skhan@linuxfoundation.org>2020-06-02 18:25:20 +0200
commitd0676871fd52f575cc2bfec4faa2fcbc8af370e8 (patch)
tree096b60bcd319322482ed2581a835ccaa1371f857 /lib/math
parentselftests/ftrace: Return unsupported if no error_log file (diff)
downloadlinux-d0676871fd52f575cc2bfec4faa2fcbc8af370e8.tar.xz
linux-d0676871fd52f575cc2bfec4faa2fcbc8af370e8.zip
lib: Make prime number generator independently selectable
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>
Diffstat (limited to 'lib/math')
-rw-r--r--lib/math/Kconfig7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/math/Kconfig b/lib/math/Kconfig
index 15bd50d92308..f19bc9734fa7 100644
--- a/lib/math/Kconfig
+++ b/lib/math/Kconfig
@@ -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