do_vfs_ioctl(): use saner types
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 21 Apr 2019 22:45:28 +0000 (18:45 -0400)
committerArnd Bergmann <arnd@arndb.de>
Wed, 23 Oct 2019 15:15:57 +0000 (17:15 +0200)
commit34d3d0e65e3a84bc76e75431528e41f9f94bd6cf
treeb425040169ee54dc5f8eaf0d2d338c7a079ac2bd
parentbf0a199b065c63ee21c1729d208e408404315f26
do_vfs_ioctl(): use saner types

casting to pointer to int, only to pass that to function that
takes pointer to void and uses it as pointer to structure is
really asking for trouble.

"Some pointer, I'm not sure what to" is spelled "void *",
not "int *"; use that.

And declare the functions we are passing that pointer to
as taking the pointer to what they really want to access.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
fs/ioctl.c