Skip to content

Commit 74a44be

Browse files
rmurphy-armwilldeacon
authored andcommitted
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 <[email protected]> Signed-off-by: Robin Murphy <[email protected]> Signed-off-by: Will Deacon <[email protected]>
1 parent 0ca2c03 commit 74a44be

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/arm64/kernel/kaslr.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#include <linux/sched.h>
1212
#include <linux/types.h>
1313

14+
#include <asm/archrandom.h>
1415
#include <asm/cacheflush.h>
1516
#include <asm/fixmap.h>
1617
#include <asm/kernel-pgtable.h>

0 commit comments

Comments
 (0)