Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a574ea95 authored by Jebaitedneko's avatar Jebaitedneko Committed by Gagan Malvi
Browse files

char: mem: link /dev/{u}random to /dev/srandom

parent ba87f678
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -37,6 +37,10 @@

#define DEVPORT_MINOR	4

#ifdef CONFIG_SRANDOM
#include <../drivers/char/srandom/srandom.h>
#endif

static inline unsigned long size_inside_page(unsigned long start,
					     unsigned long size)
{
@@ -848,8 +852,13 @@ static const struct memdev {
#endif
	 [5] = { "zero", 0666, &zero_fops, 0 },
	 [7] = { "full", 0666, &full_fops, 0 },
	#ifdef CONFIG_SRANDOM
	 [8] = { "random", 0666, &sfops, 0 },
	 [9] = { "urandom", 0666, &sfops, 0 },
	#else
	 [8] = { "random", 0666, &random_fops, 0 },
	 [9] = { "urandom", 0666, &urandom_fops, 0 },
	#endif
#ifdef CONFIG_PRINTK
	[11] = { "kmsg", 0644, &kmsg_fops, 0 },
#endif