]> git.baikalelectronics.ru Git - kernel.git/commit
compat_ioctl: ubd, aoe: use blkdev_compat_ptr_ioctl
authorArnd Bergmann <arnd@arndb.de>
Sat, 30 Nov 2019 19:09:07 +0000 (20:09 +0100)
committerArnd Bergmann <arnd@arndb.de>
Fri, 3 Jan 2020 08:33:02 +0000 (09:33 +0100)
commit957cce48aa7772fb431a0a09edea90227bf0d6b9
treef0595ee13b6491166311105dd0259db1b2df1b9f
parent999fe59b68abec302cb8956994f041cea8c30c75
compat_ioctl: ubd, aoe: use blkdev_compat_ptr_ioctl

These drivers implement the HDIO_GET_IDENTITY and CDROMVOLREAD ioctl
commands, which are compatible between 32-bit and 64-bit user space and
traditionally handled by compat_blkdev_driver_ioctl().

As a prerequisite to removing that function, make both drivers use
blkdev_compat_ptr_ioctl() as their .compat_ioctl callback.

Reviewed-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/um/drivers/ubd_kern.c
drivers/block/aoe/aoeblk.c