Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

random32: Include <linux/prandom.h> instead of <linux/random.h>

Substitute the inclusion of <linux/random.h> header with
<linux/prandom.h> to allow the removal of legacy inclusion
of <linux/prandom.h> from <linux/random.h>.

Signed-off-by: Uros Bizjak <ubizjak@gmail.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: David S. Miller <davem@davemloft.net>
Cc: Eric Dumazet <edumazet@google.com>
Cc: Jakub Kicinski <kuba@kernel.org>
Cc: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>

authored by

Uros Bizjak and committed by
Jason A. Donenfeld
baacb8b4 9127ad42

+1 -1
+1 -1
lib/random32.c
··· 36 36 #include <linux/percpu.h> 37 37 #include <linux/export.h> 38 38 #include <linux/jiffies.h> 39 - #include <linux/random.h> 39 + #include <linux/prandom.h> 40 40 #include <linux/sched.h> 41 41 #include <linux/bitops.h> 42 42 #include <linux/slab.h>