compat_ioctl: add scsi_compat_ioctl
authorArnd Bergmann <arnd@arndb.de>
Fri, 15 Mar 2019 15:45:16 +0000 (16:45 +0100)
committerArnd Bergmann <arnd@arndb.de>
Fri, 3 Jan 2020 08:33:18 +0000 (09:33 +0100)
commit7eafd1373b6a389b9859660e0d9c6d23a3c8aee5
treeecac90083879bc4b6d38a85c3c37aabfb099176f
parent9452b1a3ed8792e0e8909512ea1d21aefe6cf53f
compat_ioctl: add scsi_compat_ioctl

In order to move the compat handling for SCSI ioctl commands out of
fs/compat_ioctl.c into the individual drivers, we need a helper function
first to match the native ioctl handler called by sd, sr, st, etc.

Reviewed-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
drivers/scsi/scsi_ioctl.c
include/scsi/scsi_ioctl.h