]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
mtd: tests: Include <linux/prandom.h> instead of <linux/random.h>
authorUros Bizjak <ubizjak@gmail.com>
Mon, 30 Sep 2024 12:33:17 +0000 (14:33 +0200)
committerJason A. Donenfeld <Jason@zx2c4.com>
Thu, 3 Oct 2024 16:19:52 +0000 (18:19 +0200)
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>
Acked-by: Miquel Raynal <miquel.raynal@bootlin.com>
Cc: Richard Weinberger <richard@nod.at>
Cc: Vignesh Raghavendra <vigneshr@ti.com>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
drivers/mtd/tests/oobtest.c
drivers/mtd/tests/pagetest.c
drivers/mtd/tests/subpagetest.c

index 13fed398937e4034082cd0742b935b3d098714f5..e1ee68f8b8f8901d73e57e060af14aea97fe834f 100644 (file)
@@ -17,7 +17,7 @@
 #include <linux/mtd/mtd.h>
 #include <linux/slab.h>
 #include <linux/sched.h>
-#include <linux/random.h>
+#include <linux/prandom.h>
 
 #include "mtd_test.h"
 
index 8eb40b6e6dfa937a611b10c7051848e52271450e..6878700d2fc04c7f05eb5fe73aa5845023f91890 100644 (file)
@@ -17,7 +17,7 @@
 #include <linux/mtd/mtd.h>
 #include <linux/slab.h>
 #include <linux/sched.h>
-#include <linux/random.h>
+#include <linux/prandom.h>
 
 #include "mtd_test.h"
 
index 05250a080139f19e9ba691d9650f7b4b56dcc525..f34bbf033c4d3a48bb31dc9b33f508a4fbedec65 100644 (file)
@@ -15,7 +15,7 @@
 #include <linux/mtd/mtd.h>
 #include <linux/slab.h>
 #include <linux/sched.h>
-#include <linux/random.h>
+#include <linux/prandom.h>
 
 #include "mtd_test.h"