mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-31 06:14:39 +01: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. Acked-by: Greg Kroah-Hartman <[email protected]> Signed-off-by: Arnd Bergmann <[email protected]>
This commit is contained in:
1 parent
eede0b859e
commit
507e4e2b43
2 files changed
+1
-7
No files matched your search
@@ -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,
|
||||
};
|
||||
|
||||
@@ -439,13 +439,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)
|
||||
/* Misc. */
|
||||
COMPATIBLE_IOCTL(PCIIOC_CONTROLLER)
|
||||
COMPATIBLE_IOCTL(PCIIOC_MMAP_IS_IO)
|
||||
|
||||
Reference in new issue
Block a user