diff options
author | Arnd Bergmann <arnd@arndb.de> | 2019-03-15 16:45:16 +0100 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2020-01-03 09:33:18 +0100 |
commit | 7eafd1373b6a389b9859660e0d9c6d23a3c8aee5 (patch) | |
tree | ecac90083879bc4b6d38a85c3c37aabfb099176f /include/scsi | |
parent | 9452b1a3ed8792e0e8909512ea1d21aefe6cf53f (diff) | |
download | linux-7eafd1373b6a389b9859660e0d9c6d23a3c8aee5.tar.gz linux-7eafd1373b6a389b9859660e0d9c6d23a3c8aee5.tar.bz2 linux-7eafd1373b6a389b9859660e0d9c6d23a3c8aee5.zip |
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>
Diffstat (limited to 'include/scsi')
-rw-r--r-- | include/scsi/scsi_ioctl.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/scsi/scsi_ioctl.h b/include/scsi/scsi_ioctl.h index 5101e987c0ef..4fe69d863b5d 100644 --- a/include/scsi/scsi_ioctl.h +++ b/include/scsi/scsi_ioctl.h @@ -44,6 +44,7 @@ typedef struct scsi_fctargaddress { int scsi_ioctl_block_when_processing_errors(struct scsi_device *sdev, int cmd, bool ndelay); extern int scsi_ioctl(struct scsi_device *, int, void __user *); +extern int scsi_compat_ioctl(struct scsi_device *sdev, int cmd, void __user *arg); #endif /* __KERNEL__ */ #endif /* _SCSI_IOCTL_H */ |