Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3010050ybi; Mon, 17 Jun 2019 14:36:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqxIIZm8inIrxVtlgBEHoZHkRUNSLAKXnJ3+Fn4Zbv6rVknrotm8ufqa64OKOznLEYDQBO9j X-Received: by 2002:a17:90a:9503:: with SMTP id t3mr1205199pjo.47.1560807406287; Mon, 17 Jun 2019 14:36:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560807406; cv=none; d=google.com; s=arc-20160816; b=DOml7HFtabaFleqSsCj2suMIZYncWkvmCirk5MdW4nagP60K1GG5/d0U8AqrYWWW5W 5stIlk2wLw6ko1wClcnHklhSqRIqmlQvRiSroKYBwgiEaTaDxCPkbovr4LkEsL7b2K5T Or9jc3UMi+50xCya7OqHjLfWMZcRnWdD1wrBDXqL1NejRNFvrDD9nZXsNiHfiKwJ9Cns UOISsB/Ic5803kdoYWP3JQT7Z3kzQ/5vZVKHgcMuzA7PvnES99ajTohcJs+20GEodGit CCpP1U3P+5L1om1WSBEZERk9BK0WS51s5IShyRLTVe/ruigxaLFJfPLJvp+K4oF96W8F n6VQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=64fu81zXS6jkE0GxYL7tianLJnf3Cw/ucb/I12bksDQ=; b=OnZhiG9+dBh3OpteZtouWr6Ovw5MuhCqAhgwb166yq9GGoRv+8/SBdGyBc/lPTn6QP EszVBZL1w9npFVQVpS7BjP3Zq/UaST6/QFAf4+JPLyTOpLDOUqQuIjsPgnOEC+xMfJnK jRPpMOvq/e66OS+lLSJAv4wOSddIO8ANwUFKmBSq9dctxHKaFmccqcOOsaf4UUoJCPCh Ra9jeHgY+DHJs8X2z1IKwqIBq/mBE1vCCUW9tfAr+3DyXOnsKFxNrBrvVnAekowrL1HZ /z4gsQINb1k4R75A/RLXeZ6aJF/g/uYc2eHNfvlfp2NNWjOSp2UiTlyAqAE3VoRK8btI B9Cg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=iIDs7Tyq; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u23si6615999pfh.177.2019.06.17.14.36.31; Mon, 17 Jun 2019 14:36:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=iIDs7Tyq; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726819AbfFQVVZ (ORCPT + 99 others); Mon, 17 Jun 2019 17:21:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:45910 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726427AbfFQVVW (ORCPT ); Mon, 17 Jun 2019 17:21:22 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C912E20652; Mon, 17 Jun 2019 21:21:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1560806482; bh=LrKsTihjQHV9cAQ8nPfhHje9OKoxZbhk79uJdJxwCoo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iIDs7Tyqq78tV34gMYfakJUnYP2iMCJLSisGOMxH184mq322CD9J9x162SLHAC4Is Q68zqEFy2CPQHzzfA3cWhx5Yo842UBtqlc5znMvquLnzMX9SeNQgFQKm/iOtKI72AV zfHZTQmaq35EO9GHYYRWdrmmAiAQdzsli7ut7RL0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Christoph Hellwig , Keith Busch , Chaitanya Kulkarni , Sasha Levin Subject: [PATCH 5.1 067/115] nvme: remove the ifdef around nvme_nvm_ioctl Date: Mon, 17 Jun 2019 23:09:27 +0200 Message-Id: <20190617210803.556722878@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190617210759.929316339@linuxfoundation.org> References: <20190617210759.929316339@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ Upstream commit 3f98bcc58cd5f1e4668db289dcab771874cc0920 ] We already have a proper stub if lightnvm is not enabled, so don't bother with the ifdef. Signed-off-by: Christoph Hellwig Reviewed-by: Keith Busch Reviewed-by: Chaitanya Kulkarni Signed-off-by: Sasha Levin --- drivers/nvme/host/core.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c index e29c395f44d2..decc0b3a3854 100644 --- a/drivers/nvme/host/core.c +++ b/drivers/nvme/host/core.c @@ -1396,10 +1396,8 @@ static int nvme_ns_ioctl(struct nvme_ns *ns, unsigned cmd, unsigned long arg) case NVME_IOCTL_SUBMIT_IO: return nvme_submit_io(ns, (void __user *)arg); default: -#ifdef CONFIG_NVM if (ns->ndev) return nvme_nvm_ioctl(ns, cmd, arg); -#endif if (is_sed_ioctl(cmd)) return sed_ioctl(ns->ctrl->opal_dev, cmd, (void __user *) arg); -- 2.20.1