mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
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. Change-Id: I3271ba0b0b3d6ae904cc87f983d7d3f99935e767 Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Richard Raya <rdxzv.dev@gmail.com>
This commit is contained in:
parent
0876ea375c
commit
5b6250bc43
@ -1384,6 +1384,7 @@ const struct file_operations random_fops = {
|
||||
.write_iter = random_write_iter,
|
||||
.poll = random_poll,
|
||||
.unlocked_ioctl = random_ioctl,
|
||||
.compat_ioctl = compat_ptr_ioctl,
|
||||
.fasync = random_fasync,
|
||||
.llseek = noop_llseek,
|
||||
.splice_read = generic_file_splice_read,
|
||||
|
@ -1208,13 +1208,6 @@ COMPATIBLE_IOCTL(WDIOC_SETTIMEOUT)
|
||||
COMPATIBLE_IOCTL(WDIOC_GETTIMEOUT)
|
||||
COMPATIBLE_IOCTL(WDIOC_SETPRETIMEOUT)
|
||||
COMPATIBLE_IOCTL(WDIOC_GETPRETIMEOUT)
|
||||
/* Big R */
|
||||
COMPATIBLE_IOCTL(RNDGETENTCNT)
|
||||
COMPATIBLE_IOCTL(RNDADDTOENTCNT)
|
||||
COMPATIBLE_IOCTL(RNDGETPOOL)
|
||||
COMPATIBLE_IOCTL(RNDADDENTROPY)
|
||||
COMPATIBLE_IOCTL(RNDZAPENTCNT)
|
||||
COMPATIBLE_IOCTL(RNDCLEARPOOL)
|
||||
/* Bluetooth */
|
||||
COMPATIBLE_IOCTL(HCIDEVUP)
|
||||
COMPATIBLE_IOCTL(HCIDEVDOWN)
|
||||
|
Loading…
x
Reference in New Issue
Block a user