Skip to content

Commit 5855240

Browse files
committed
random: random.h should include archrandom.h, not the other way around
This is hopefully the final piece of the crazy puzzle with random.h dependencies. And by "hopefully" I obviously mean "Linus is a hopeless optimist". Reported-and-tested-by: Daniel Díaz <[email protected]> Acked-by: Guenter Roeck <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent ecfd794 commit 5855240

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

arch/arm64/include/asm/archrandom.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
#include <linux/bug.h>
88
#include <linux/kernel.h>
9-
#include <linux/random.h>
109
#include <asm/cpufeature.h>
1110

1211
static inline bool __arm64_rndr(unsigned long *v)

arch/arm64/kernel/kaslr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
#include <linux/sched.h>
1212
#include <linux/types.h>
1313
#include <linux/pgtable.h>
14+
#include <linux/random.h>
1415

15-
#include <asm/archrandom.h>
1616
#include <asm/cacheflush.h>
1717
#include <asm/fixmap.h>
1818
#include <asm/kernel-pgtable.h>

0 commit comments

Comments
 (0)