summaryrefslogtreecommitdiffstats
path: root/drivers/block
diff options
context:
space:
mode:
authorMatthew Wilcox <matthew.r.wilcox@intel.com>2011-03-19 14:55:38 -0400
committerMatthew Wilcox <matthew.r.wilcox@intel.com>2011-11-04 15:53:01 -0400
commit4948168280b269a514045766ddd872cfac5968e1 (patch)
treef1a7dd83863bbd52010fac0badc303eb04b9896b /drivers/block
parent9ecdc946212f7cd592986b2c519b470404caa6b8 (diff)
downloadlinux-4948168280b269a514045766ddd872cfac5968e1.tar.gz
linux-4948168280b269a514045766ddd872cfac5968e1.tar.bz2
linux-4948168280b269a514045766ddd872cfac5968e1.zip
NVMe: Add compat_ioctl
Make ioctls work for 32-bit applications on 64-bit kernels. The structures are defined to be the same for both 32- and 64-bit applications, so we can use the same handler for both. Reported-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Matthew Wilcox <matthew.r.wilcox@intel.com>
Diffstat (limited to 'drivers/block')
-rw-r--r--drivers/block/nvme.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/block/nvme.c b/drivers/block/nvme.c
index f94f1731478f..d0b52622e261 100644
--- a/drivers/block/nvme.c
+++ b/drivers/block/nvme.c
@@ -1146,6 +1146,7 @@ static int nvme_ioctl(struct block_device *bdev, fmode_t mode, unsigned int cmd,
static const struct block_device_operations nvme_fops = {
.owner = THIS_MODULE,
.ioctl = nvme_ioctl,
+ .compat_ioctl = nvme_ioctl,
};
static void nvme_resubmit_bios(struct nvme_queue *nvmeq)