aboutsummaryrefslogtreecommitdiffstats
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
parent9ecdc946212f7cd592986b2c519b470404caa6b8 (diff)
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>
-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,
1146static const struct block_device_operations nvme_fops = { 1146static const struct block_device_operations nvme_fops = {
1147 .owner = THIS_MODULE, 1147 .owner = THIS_MODULE,
1148 .ioctl = nvme_ioctl, 1148 .ioctl = nvme_ioctl,
1149 .compat_ioctl = nvme_ioctl,
1149}; 1150};
1150 1151
1151static void nvme_resubmit_bios(struct nvme_queue *nvmeq) 1152static void nvme_resubmit_bios(struct nvme_queue *nvmeq)