nvme: simplify the compat ioctl handling
authorChristoph Hellwig <hch@lst.de>
Thu, 8 Apr 2021 12:04:42 +0000 (14:04 +0200)
committerChristoph Hellwig <hch@lst.de>
Thu, 15 Apr 2021 06:12:55 +0000 (08:12 +0200)
commit89b3d6e60550ded5a88ae69cd04d17558e948878
treee1499509fbbeb32ab45c8107472e740b5505f6cd
parenta5d737f10022bd5d2acf5127935ff813fc832f6e
nvme: simplify the compat ioctl handling

Don't bother defining a separate compat_ioctl handler, and just handle
the NVME_IOCTL_SUBMIT_IO32 case inline.  Also only defined it for those
ABIs (currently just i386 vs x86_64) that are affected.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Javier González <javier.gonz@samsung.com>
drivers/nvme/host/core.c