diff options
author | Arnd Bergmann <arnd@arndb.de> | 2018-09-07 11:10:23 +0200 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2019-10-23 17:23:45 +0200 |
commit | 507e4e2b430b6a27b66f4745564ecaee7967737f (patch) | |
tree | cb66de3d6ec628252178aa79bfa1e5aebb866e60 /drivers/char | |
parent | eede0b859ee62629c94e23612febf4907db3db67 (diff) | |
download | linux-507e4e2b430b6a27b66f4745564ecaee7967737f.tar.gz linux-507e4e2b430b6a27b66f4745564ecaee7967737f.tar.bz2 linux-507e4e2b430b6a27b66f4745564ecaee7967737f.zip |
compat_ioctl: remove /dev/random commands
These are all handled by the random driver, so instead of listing
each ioctl, we can use the generic compat_ptr_ioctl() helper.
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'drivers/char')
-rw-r--r-- | drivers/char/random.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/char/random.c b/drivers/char/random.c index de434feb873a..46afd14facb7 100644 --- a/drivers/char/random.c +++ b/drivers/char/random.c @@ -2167,6 +2167,7 @@ const struct file_operations random_fops = { .write = random_write, .poll = random_poll, .unlocked_ioctl = random_ioctl, + .compat_ioctl = compat_ptr_ioctl, .fasync = random_fasync, .llseek = noop_llseek, }; |