Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp775326ybt; Fri, 19 Jun 2020 13:26:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzH1aolPbkxQKXYkO5MazVU8BeFZfr0pBPQw38LYOT6Xg/OsJHKZtxUhtN0gcOljXuJGaQj X-Received: by 2002:a05:6402:3052:: with SMTP id bu18mr4989911edb.323.1592598415020; Fri, 19 Jun 2020 13:26:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592598415; cv=none; d=google.com; s=arc-20160816; b=w5vRbekVcXRms9chZzlq+vA0zYBKrcgkEbKgLVgqKnYXOGxWXvhw/erERaWwHD/p/S xV9iIXiwjFWQgo1hEoYxZvLRgMVXy6otnaqXFAjkNcP+EoJjLKqZhGUh2R9KbxFXrMqf laMhy/NBhde8RfvEfjjhNca2Veju8pGdILTjMLOFh/Q1i37odTHyc7su6sQt6xy0KDSo 4KN6tcZzcaV6N2H92ZBuqw+KM0qOY+lWmsTD+Tk2WInhlfQhQhVt9S2DQuVAcgOUAkYO G5OyVXw8lMpVpPsp5rXXwCW8zjj73BlY/KEZEKY7p/0LtggMNIId50beB/sGjMWrN407 W81g== 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=NlScLkTB7LR02UpbWS4G1vr8Lnup/kHFrE7hL/NeePk=; b=hby4D3T4+Fgi5SXCvYN54XSLBQj7o/iwENV2BqNkAZG2d1/JiZ7FJIxmN67SVkZJL8 p3d6nfCv/vh1T3OQNbJ8UVFMafuezc8ZCrUzcxWWZeBJoqC/slKGbsllmeNMuTcssWwu W1akiqKV3q7PcChGMTNmgNLGJsXuN3LEDgwSQxffNWSoynoU1bYaSmRS/N8YbU9kXeCF 1QPIO8ZpfLCanKEcf9JejhmATVGe0CLUVo2M1RJdcNzXEewR3QeOxDfFxZJTmUsAf9RJ EqJNuKhEvUzwQByZwkiw1kRrQOP55OezoLhBMN7vUJmml/f1WFzWtO4l4SW4tRBA65AB seRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=SID9elaY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jo23si576242ejb.752.2020.06.19.13.26.32; Fri, 19 Jun 2020 13:26:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=SID9elaY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390250AbgFSO5c (ORCPT + 99 others); Fri, 19 Jun 2020 10:57:32 -0400 Received: from mail.kernel.org ([198.145.29.99]:52368 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389814AbgFSO5I (ORCPT ); Fri, 19 Jun 2020 10:57:08 -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 0CB44217D8; Fri, 19 Jun 2020 14:57:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1592578627; bh=yKkzUylOknIwecsv8r1l0CYmrdBOv5/1gOFSrHKSh6k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SID9elaY/sT1R3TMBFrFgtt7IVyWZAwuY/znCyMI/xgEkiZ/DxgEp8sLL/PMPehTU tKDmUi+X37S5XPCI7m9WnETzJlNMmTx5EQUz4QCVO2Mg4/n70GrCQW5/EIyaepkImx ZgdQqcGKr/04q063O/6P91E1TJxFJNcwI8Qlahxk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arnd Bergmann , Tom Lendacky , Herbert Xu , Sasha Levin Subject: [PATCH 4.19 095/267] crypto: ccp -- dont "select" CONFIG_DMADEVICES Date: Fri, 19 Jun 2020 16:31:20 +0200 Message-Id: <20200619141653.427883679@linuxfoundation.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200619141648.840376470@linuxfoundation.org> References: <20200619141648.840376470@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 From: Arnd Bergmann [ Upstream commit eebac678556d6927f09a992872f4464cf3aecc76 ] DMADEVICES is the top-level option for the slave DMA subsystem, and should not be selected by device drivers, as this can cause circular dependencies such as: drivers/net/ethernet/freescale/Kconfig:6:error: recursive dependency detected! drivers/net/ethernet/freescale/Kconfig:6: symbol NET_VENDOR_FREESCALE depends on PPC_BESTCOMM drivers/dma/bestcomm/Kconfig:6: symbol PPC_BESTCOMM depends on DMADEVICES drivers/dma/Kconfig:6: symbol DMADEVICES is selected by CRYPTO_DEV_SP_CCP drivers/crypto/ccp/Kconfig:10: symbol CRYPTO_DEV_SP_CCP depends on CRYPTO crypto/Kconfig:16: symbol CRYPTO is selected by LIBCRC32C lib/Kconfig:222: symbol LIBCRC32C is selected by LIQUIDIO drivers/net/ethernet/cavium/Kconfig:65: symbol LIQUIDIO depends on PTP_1588_CLOCK drivers/ptp/Kconfig:8: symbol PTP_1588_CLOCK is implied by FEC drivers/net/ethernet/freescale/Kconfig:23: symbol FEC depends on NET_VENDOR_FREESCALE The LIQUIDIO driver causing this problem is addressed in a separate patch, but this change is needed to prevent it from happening again. Using "depends on DMADEVICES" is what we do for all other implementations of slave DMA controllers as well. Fixes: b3c2fee5d66b ("crypto: ccp - Ensure all dependencies are specified") Signed-off-by: Arnd Bergmann Acked-by: Tom Lendacky Signed-off-by: Herbert Xu Signed-off-by: Sasha Levin --- drivers/crypto/ccp/Kconfig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/crypto/ccp/Kconfig b/drivers/crypto/ccp/Kconfig index b9dfae47aefd..7f5fc705503d 100644 --- a/drivers/crypto/ccp/Kconfig +++ b/drivers/crypto/ccp/Kconfig @@ -9,10 +9,9 @@ config CRYPTO_DEV_CCP_DD config CRYPTO_DEV_SP_CCP bool "Cryptographic Coprocessor device" default y - depends on CRYPTO_DEV_CCP_DD + depends on CRYPTO_DEV_CCP_DD && DMADEVICES select HW_RANDOM select DMA_ENGINE - select DMADEVICES select CRYPTO_SHA1 select CRYPTO_SHA256 help -- 2.25.1