]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: Fix CONFIG_ARCH_RANDOM=n build
authorRobin Murphy <robin.murphy@arm.com>
Mon, 10 Feb 2020 19:21:01 +0000 (19:21 +0000)
committerWill Deacon <will@kernel.org>
Tue, 11 Feb 2020 09:47:01 +0000 (09:47 +0000)
commitf46ef6250847328aec1232ad5f3bff1f34fc9683
tree03d9a92f1441c0c9083929a0bb1865007c967ff4
parent9c8699996c0dffa3ec5ae5e85e04268b5762ec93
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 <broonie@kernel.org>
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/kaslr.c