]> git.baikalelectronics.ru Git - kernel.git/commitdiff
random: random.h should include archrandom.h, not the other way around
authorLinus Torvalds <torvalds@linux-foundation.org>
Wed, 5 Aug 2020 19:39:48 +0000 (12:39 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 5 Aug 2020 19:39:48 +0000 (12:39 -0700)
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 <daniel.diaz@linaro.org>
Acked-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/arm64/include/asm/archrandom.h
arch/arm64/kernel/kaslr.c

index fc1594a0710eb9c92cd08a50c7a7adc8e93ba717..44209f6146aa1980adbfdd2cb5870bbfea69cb9a 100644 (file)
@@ -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)
index 07c4c8cc4a67abcae46edc6fa86728ba341310bb..9ded4237e1c16c14ed6eb61280a4ac3f291b40f8 100644 (file)
@@ -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>