]> Git Repo - linux.git/commitdiff
random: Do not include <linux/prandom.h> in <linux/random.h>
authorUros Bizjak <[email protected]>
Mon, 30 Sep 2024 12:33:29 +0000 (14:33 +0200)
committerJason A. Donenfeld <[email protected]>
Thu, 3 Oct 2024 16:20:55 +0000 (18:20 +0200)
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 c0842fbc1b18.

Signed-off-by: Uros Bizjak <[email protected]>
Fixes: c0842fbc1b18 ("random32: move the pseudo-random 32-bit definitions to prandom.h")
Cc: Theodore Ts'o <[email protected]>
Cc: Jason A. Donenfeld <[email protected]>
Cc: Linus Torvalds <[email protected]>
Signed-off-by: Jason A. Donenfeld <[email protected]>
include/linux/random.h

index b0a940af4fff54e526d5305ff86966b2d1ce7039..333cecfca93fdad8fdfe68b03380c01c71f533f2 100644 (file)
@@ -145,13 +145,6 @@ declare_get_random_var_wait(u64, u32)
 declare_get_random_var_wait(long, unsigned long)
 #undef declare_get_random_var
 
-/*
- * This is designed to be standalone for just prandom
- * users, but for now we include it from <linux/random.h>
- * for legacy reasons.
- */
-#include <linux/prandom.h>
-
 #ifdef CONFIG_SMP
 int random_prepare_cpu(unsigned int cpu);
 int random_online_cpu(unsigned int cpu);
This page took 0.058337 seconds and 4 git commands to generate.