Skip to content

Commit

Permalink
NVMe: Add compat_ioctl
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Matthew Wilcox committed Nov 4, 2011
1 parent 9ecdc94 commit 4948168
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/block/nvme.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4948168

Please sign in to comment.