random: do not include <asm/archrandom.h> from random.h
Jason A. Donenfeld
maintainerPATCH 1/1 random: do not include <asm/archrandom.h> from random.h
The <asm/archrandom.h> header is a random.c private detail, not something to be called by other code. As such, don't make it automatically available by way of random.h.
Signed-off-by Jason A. Donenfeld <[email protected]>
--- drivers/char/random.c | 1 + include/linux/random.h | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-)
drivers/char/random.c +1 -0
@@ -55,6 +55,7 @@#include <linux/siphash.h> #include <crypto/chacha.h> #include <crypto/blake2s.h> +#include <asm/archrandom.h> #include <asm/processor.h> #include <asm/irq.h> #include <asm/irq_regs.h>
include/linux/random.h +0 -2
@@ -151,8 +151,6 @@ declare_get_random_var_wait(long, unsigned long)*/ #include <linux/prandom.h> -#include <asm/archrandom.h> -#ifdef CONFIG_SMP int random_prepare_cpu (unsigned int cpu);int random_online_cpu (unsigned int cpu);
Signature · 1 line
2.38.1