Skip to content

Commit 5b3fdc9

Browse files
ubizjakzx2c4
authored andcommitted
random: Do not include <linux/prandom.h> in <linux/random.h>
Files that use prandom infrastructure are now converted to use <linux/prandom.h> header instead of <linux/random.h>. Remove the legacy inclusion of <linux/prandom.h> from <linux/random.h>. This is the "nice cleanup" part, wished in c0842fb. Signed-off-by: Uros Bizjak <ubizjak@gmail.com> Fixes: c0842fb ("random32: move the pseudo-random 32-bit definitions to prandom.h") Cc: Theodore Ts'o <tytso@mit.edu> Cc: Jason A. Donenfeld <Jason@zx2c4.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
1 parent 32b7580 commit 5b3fdc9

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

include/linux/random.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -145,13 +145,6 @@ declare_get_random_var_wait(u64, u32)
145145
declare_get_random_var_wait(long, unsigned long)
146146
#undef declare_get_random_var
147147

148-
/*
149-
* This is designed to be standalone for just prandom
150-
* users, but for now we include it from <linux/random.h>
151-
* for legacy reasons.
152-
*/
153-
#include <linux/prandom.h>
154-
155148
#ifdef CONFIG_SMP
156149
int random_prepare_cpu(unsigned int cpu);
157150
int random_online_cpu(unsigned int cpu);

0 commit comments

Comments
 (0)