From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7B26FC4727C for ; Tue, 29 Sep 2020 11:52:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 39302206DB for ; Tue, 29 Sep 2020 11:52:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601380352; bh=a+cN+gIUhdPZcV3j3N5s51FPo3tZbR21cGfXS6VKWhc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=gDYOQ94BwMZcrrVoro17t6sa8YCobwYWkGn7vmxB2FPssxaFIH0WcmDxCRQ7cMMS9 6/XgnXTswOziXE8Os6aCp2asPY67KYLJqp46AeIX0UBgR/Z8iOmPbgMWtR0/7MhyaO gwhtb+WSfKi/QVvTkc10Qyb3L5dBlON/DtwdShwg= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731107AbgI2Lwa (ORCPT ); Tue, 29 Sep 2020 07:52:30 -0400 Received: from mail.kernel.org ([198.145.29.99]:49362 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731082AbgI2Lri (ORCPT ); Tue, 29 Sep 2020 07:47:38 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (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 B668120702; Tue, 29 Sep 2020 11:47:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601380058; bh=a+cN+gIUhdPZcV3j3N5s51FPo3tZbR21cGfXS6VKWhc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Z8JVY/kRNNFkR0I3njNV+5RhGXQyXshO+VKzX+CsgE5ElM5HN1c1mLAKMIOZw500A dl5izuLbupC7/8b3Oa4lGgxk2gjVGRJiQin9NTUGwVHHyD4/6NhRS1VNNSMsYmuh/N 0ATPO3NVCz21+LPj4J020n1SB3Jis87UUBpG3r9I= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Necip Fazil Yildiran , Sagi Grimberg , Christoph Hellwig , Sasha Levin Subject: [PATCH 5.8 48/99] nvme-tcp: fix kconfig dependency warning when !CRYPTO Date: Tue, 29 Sep 2020 13:01:31 +0200 Message-Id: <20200929105932.092189273@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200929105929.719230296@linuxfoundation.org> References: <20200929105929.719230296@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Necip Fazil Yildiran [ Upstream commit af5ad17854f96a6d3c9775e776bd01ab262672a1 ] When NVME_TCP is enabled and CRYPTO is disabled, it results in the following Kbuild warning: WARNING: unmet direct dependencies detected for CRYPTO_CRC32C Depends on [n]: CRYPTO [=n] Selected by [y]: - NVME_TCP [=y] && INET [=y] && BLK_DEV_NVME [=y] The reason is that NVME_TCP selects CRYPTO_CRC32C without depending on or selecting CRYPTO while CRYPTO_CRC32C is subordinate to CRYPTO. Honor the kconfig menu hierarchy to remove kconfig dependency warnings. Fixes: 79fd751d61aa ("nvme: tcp: selects CRYPTO_CRC32C for nvme-tcp") Signed-off-by: Necip Fazil Yildiran Reviewed-by: Sagi Grimberg Signed-off-by: Christoph Hellwig Signed-off-by: Sasha Levin --- drivers/nvme/host/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/nvme/host/Kconfig b/drivers/nvme/host/Kconfig index 3ed9786b88d8e..a44d49d63968a 100644 --- a/drivers/nvme/host/Kconfig +++ b/drivers/nvme/host/Kconfig @@ -73,6 +73,7 @@ config NVME_TCP depends on INET depends on BLK_DEV_NVME select NVME_FABRICS + select CRYPTO select CRYPTO_CRC32C help This provides support for the NVMe over Fabrics protocol using -- 2.25.1