Commit 647f50d5 authored by Richard Henderson's avatar Richard Henderson Committed by Theodore Ts'o

linux/random.h: Remove arch_has_random, arch_has_random_seed

The arm64 version of archrandom.h will need to be able to test for
support and read the random number without preemption, so a separate
query predicate is not practical.

Since this part of the generic interface is unused, remove it.
Signed-off-by: default avatarRichard Henderson <rth@twiddle.net>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20200110145422.49141-5-broonie@kernel.orgSigned-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
parent 5e054c82
...@@ -175,10 +175,6 @@ static inline bool arch_get_random_int(unsigned int *v) ...@@ -175,10 +175,6 @@ static inline bool arch_get_random_int(unsigned int *v)
{ {
return 0; return 0;
} }
static inline bool arch_has_random(void)
{
return 0;
}
static inline bool arch_get_random_seed_long(unsigned long *v) static inline bool arch_get_random_seed_long(unsigned long *v)
{ {
return 0; return 0;
...@@ -187,10 +183,6 @@ static inline bool arch_get_random_seed_int(unsigned int *v) ...@@ -187,10 +183,6 @@ static inline bool arch_get_random_seed_int(unsigned int *v)
{ {
return 0; return 0;
} }
static inline bool arch_has_random_seed(void)
{
return 0;
}
#endif #endif
/* Pseudo random number generator from numerical recipes. */ /* Pseudo random number generator from numerical recipes. */
......
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