]> git.baikalelectronics.ru Git - kernel.git/commit
compat_ioctl: move HDIO ioctl handling into drivers/ide
authorArnd Bergmann <arnd@arndb.de>
Thu, 28 Nov 2019 16:14:59 +0000 (17:14 +0100)
committerArnd Bergmann <arnd@arndb.de>
Fri, 3 Jan 2020 08:42:52 +0000 (09:42 +0100)
commitb48d6581cdd6b5c7a48389f5f2f38bd2897e6552
treee371a8ed355a6abbf2e630f9712dedeeba5aa144
parentd95419e3c6a00c7a00a3b8ab6f28d4d9fa4edde3
compat_ioctl: move HDIO ioctl handling into drivers/ide

Most of the HDIO ioctls are only used by the obsolete drivers/ide
subsystem, these can be handled by changing ide_cmd_ioctl() to be aware
of compat mode and doing the correct transformations in place and using
it as both native and compat handlers for all drivers.

The SCSI drivers implementing the same commands are already doing
this in the drivers, so the compat_blkdev_driver_ioctl() function
is no longer needed now.

The BLKSECTSET and HDIO_GETGEO_BIG ioctls are not implemented
in any driver any more and no longer need any conversion.

Reviewed-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
block/compat_ioctl.c
drivers/ide/ide-cd.c
drivers/ide/ide-disk.c
drivers/ide/ide-floppy_ioctl.c
drivers/ide/ide-ioctls.c
drivers/ide/ide-tape.c