Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

nvme: remove the ifdef around nvme_nvm_ioctl

We already have a proper stub if lightnvm is not enabled, so don't bother
with the ifdef.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Keith Busch <keith.busch@intel.com>
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>

authored by

Christoph Hellwig and committed by
Keith Busch
3f98bcc5 100c815c

-2
-2
drivers/nvme/host/core.c
··· 1395 1395 case NVME_IOCTL_SUBMIT_IO: 1396 1396 return nvme_submit_io(ns, (void __user *)arg); 1397 1397 default: 1398 - #ifdef CONFIG_NVM 1399 1398 if (ns->ndev) 1400 1399 return nvme_nvm_ioctl(ns, cmd, arg); 1401 - #endif 1402 1400 if (is_sed_ioctl(cmd)) 1403 1401 return sed_ioctl(ns->ctrl->opal_dev, cmd, 1404 1402 (void __user *) arg);