[PATCH] random: fix a compilation error on arm64

From: Qian Cai
Date: Thu Aug 06 2020 - 13:26:56 EST

linux-next failed to compile using this .config,

arch/arm64/kernel/kaslr.c: In function 'kaslr_early_init':
arch/arm64/kernel/kaslr.c:128:6: error: implicit declaration of function
'__early_cpu_has_rndr'; did you mean '__early_pfn_to_nid'?
if (__early_cpu_has_rndr()) {
arch/arm64/kernel/kaslr.c:131:7: error: implicit declaration of function
'__arm64_rndr' [-Werror=implicit-function-declaration]
if (__arm64_rndr(&raw))
cc1: some warnings being treated as errors

Fixes: 585524081ecd ("random: random.h should include archrandom.h, not the other way around")
Signed-off-by: Qian Cai <cai@xxxxxx>
include/linux/random.h | 2 ++
1 file changed, 2 insertions(+)

diff --git a/include/linux/random.h b/include/linux/random.h
index f45b8be3e3c4..da782c16c20c 100644
--- a/include/linux/random.h
+++ b/include/linux/random.h
@@ -12,6 +12,8 @@
#include <linux/list.h>
#include <linux/once.h>

+#include <asm/archrandom.h>
#include <uapi/linux/random.h>

struct random_ready_callback {