Skip to content

Commit ab0cf1e

Browse files
committed
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>
1 parent ee6a129 commit ab0cf1e

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

‎arch/um/drivers/ubd_kern.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ static const struct block_device_operations ubd_blops = {
113113
.open = ubd_open,
114114
.release = ubd_release,
115115
.ioctl = ubd_ioctl,
116+
.compat_ioctl = blkdev_compat_ptr_ioctl,
116117
.getgeo = ubd_getgeo,
117118
};
118119

‎drivers/block/aoe/aoeblk.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,7 @@ static const struct block_device_operations aoe_bdops = {
329329
.open = aoeblk_open,
330330
.release = aoeblk_release,
331331
.ioctl = aoeblk_ioctl,
332+
.compat_ioctl = blkdev_compat_ptr_ioctl,
332333
.getgeo = aoeblk_getgeo,
333334
.owner = THIS_MODULE,
334335
};

0 commit comments

Comments
 (0)