aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpiutil.c
diff options
context:
space:
mode:
authorArnd Bergmann <[email protected]>2018-09-07 16:49:43 +0200
committerArnd Bergmann <[email protected]>2019-10-23 17:23:44 +0200
commit1207045da5a7c94344e0ea9a9e7495985eef499a (patch)
treea7f6028469b50532252bbdd7b71b0f06e293a90e /lib/mpi/mpiutil.c
parent01b8bca81e181ccca475e1fdb92ebb00d9d9b547 (diff)
compat_ioctl: move tape handling into drivers
MTIOCPOS and MTIOCGET are incompatible between 32-bit and 64-bit user space, and traditionally have been translated in fs/compat_ioctl.c. To get rid of that translation handler, move a corresponding implementation into each of the four drivers implementing those commands. The interesting part of that is now in a new linux/mtio.h header that wraps the existing uapi/linux/mtio.h header and provides an abstraction to let drivers handle both cases easily. Using an in_compat_syscall() check, the caller does not have to keep track of whether this was called through .unlocked_ioctl() or .compat_ioctl(). Acked-by: Heiko Carstens <[email protected]> Cc: "Kai Mäkisara" <[email protected]> Cc: [email protected] Cc: "James E.J. Bottomley" <[email protected]> Cc: "Martin K. Petersen" <[email protected]> Cc: "David S. Miller" <[email protected]> Signed-off-by: Arnd Bergmann <[email protected]>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions