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

Commit ac3f9531 authored by Adam W. Willis's avatar Adam W. Willis Committed by Gagan Malvi
Browse files

random: Mark random_read as __maybe_unused



Fix unused function warning subsequent to f9ca1a2 ("random: always use /dev/urandom")

This silences the following compiler warning:

../drivers/char/random.c:1841:1: warning: unused function 'random_read' [-Wunused-function]
random_read(struct file *file, char __user *buf, size_t nbytes, loff_t *ppos)
^

Signed-off-by: default avatarAdam W. Willis <return.of.octobot@gmail.com>
parent 8f817065
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1783,7 +1783,7 @@ _random_read(int nonblock, char __user *buf, size_t nbytes)
	}
}

static ssize_t
static ssize_t __maybe_unused
random_read(struct file *file, char __user *buf, size_t nbytes, loff_t *ppos)
{
	return _random_read(file->f_flags & O_NONBLOCK, buf, nbytes);