Skip to content

Commit d433ab4

Browse files
Andre-ARMwilldeacon
authored andcommitted
arm64: random: Remove no longer needed prototypes
Commit 9bceb80 ("arm64: kaslr: Use standard early random function") removed the direct calls of the __arm64_rndr() and __early_cpu_has_rndr() functions, but left the dummy prototypes in the #else branch of the #ifdef CONFIG_ARCH_RANDOM guard. Remove the redundant prototypes, as they have no users outside of this header file. Signed-off-by: Andre Przywara <andre.przywara@arm.com> Reviewed-by: Mark Brown <broonie@kernel.org> Link: https://lore.kernel.org/r/20201006194453.36519-1-andre.przywara@arm.com Signed-off-by: Will Deacon <will@kernel.org>
1 parent 353e228 commit d433ab4

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

arch/arm64/include/asm/archrandom.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,5 @@ arch_get_random_seed_long_early(unsigned long *v)
7979
}
8080
#define arch_get_random_seed_long_early arch_get_random_seed_long_early
8181

82-
#else
83-
84-
static inline bool __arm64_rndr(unsigned long *v) { return false; }
85-
static inline bool __init __early_cpu_has_rndr(void) { return false; }
86-
8782
#endif /* CONFIG_ARCH_RANDOM */
8883
#endif /* _ASM_ARCHRANDOM_H */

0 commit comments

Comments
 (0)