From: Robin Murphy Date: Mon, 10 Feb 2020 19:21:01 +0000 (+0000) Subject: arm64: Fix CONFIG_ARCH_RANDOM=n build X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=74a44bed8d93782affb707a33469bda7052b4207;p=linux.git arm64: Fix CONFIG_ARCH_RANDOM=n build The entire asm/archrandom.h header is generically included via linux/archrandom.h only when CONFIG_ARCH_RANDOM is already set, so the stub definitions of __arm64_rndr() and __early_cpu_has_rndr() are only visible to KASLR if it explicitly includes the arch-internal header. Acked-by: Mark Brown Signed-off-by: Robin Murphy Signed-off-by: Will Deacon --- diff --git a/arch/arm64/kernel/kaslr.c b/arch/arm64/kernel/kaslr.c index 53b8a4ee64ff0..91a83104c6e8a 100644 --- a/arch/arm64/kernel/kaslr.c +++ b/arch/arm64/kernel/kaslr.c @@ -11,6 +11,7 @@ #include #include +#include #include #include #include