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

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.org


Signed-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
parent 5e054c82
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -175,10 +175,6 @@ static inline bool arch_get_random_int(unsigned int *v)
{
	return 0;
}
static inline bool arch_has_random(void)
{
	return 0;
}
static inline bool arch_get_random_seed_long(unsigned long *v)
{
	return 0;
@@ -187,10 +183,6 @@ static inline bool arch_get_random_seed_int(unsigned int *v)
{
	return 0;
}
static inline bool arch_has_random_seed(void)
{
	return 0;
}
#endif

/* Pseudo random number generator from numerical recipes. */