Skip to content

Commit

Permalink
random: random.h should include archrandom.h, not the other way around
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
torvalds committed Aug 5, 2020
1 parent ecfd794 commit 5855240
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion arch/arm64/include/asm/archrandom.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

#include <linux/bug.h>
#include <linux/kernel.h>
#include <linux/random.h>
#include <asm/cpufeature.h>

static inline bool __arm64_rndr(unsigned long *v)
Expand Down
2 changes: 1 addition & 1 deletion arch/arm64/kernel/kaslr.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
#include <linux/sched.h>
#include <linux/types.h>
#include <linux/pgtable.h>
#include <linux/random.h>

#include <asm/archrandom.h>
#include <asm/cacheflush.h>
#include <asm/fixmap.h>
#include <asm/kernel-pgtable.h>
Expand Down

0 comments on commit 5855240

Please sign in to comment.