Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp712133imm; Fri, 22 Jun 2018 04:08:19 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLykysoOv2TGephtHuca9/U0LgIiH+MYEZyNbrxF1U2XxvwKQzQsO1LkG5+pis7iHnm/70X X-Received: by 2002:a17:902:b706:: with SMTP id d6-v6mr1208718pls.105.1529665699372; Fri, 22 Jun 2018 04:08:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529665699; cv=none; d=google.com; s=arc-20160816; b=KCouvBp+/fXArvk+7lq7XaK7r69s8QHRoVQgGrlklF5dHjLjpI3QEJn84S1WUwCzva cLV9oz9fJviuXcAeXU6D1eSLCrVfXEhrxc729S+D9zWLiNurxOaz8p0Ec5QK2oAGFj+R nLu79wNOHrQ2ygqJaTl21wCZKajXtRK+Ib7uHMbR39Rn+OQKna7v/ClFHmjbpyR3mSki CfgFVbnH7WBi3FyjBkMUhPkfqG4ijhiW9EtU6nPBxzXu49OTiOZDWYcA/A0Bv0sDDkJw AyBDNYUaOsAAawythRH2KMWqw0CDT27c/KgrP85Nt/2I3t/pt0tRskdHyNJGcfZ838Dk unag== 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 :message-id:date:subject:cc:to:from:arc-authentication-results; bh=vDxr66kb8yTJAYC4L5hhlE9Q0ia2Fjjd2fAzDXn3uzQ=; b=kll31E2nRuD4D9K4pWSsUZECwa4O63OO0NrPAqtag319ajtnDdjSM1op325A0p3INJ l1LhrZIClf3c6rFvT8vsgmKO9/GZ+IkRBOR+sbE5vaMLBoL9T5qMC7WUfn1arCmEJ4w3 CPad+SYkgZp0UUao1XmN4/llGApxqFC39Ref+Wi6u4+qfTu3YZmslL2oSTrFpcOM03az ITG93w6ucKJBOFOW5qeL6OKOppaUQ5EnOvdob1emtZxD7Nynxw1kC+rhWoiFiq5WnHYO 2NdEKMrYKscNn4QqEd8ZRSyGsbhYUq9PVsdV8werCEOQnqzmU4n4yckjgEZj+8eyx9Zt Ud8w== ARC-Authentication-Results: i=1; mx.google.com; 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 b12-v6si7990399pla.201.2018.06.22.04.08.04; Fri, 22 Jun 2018 04:08:19 -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; 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 S1754580AbeFVLFj (ORCPT + 99 others); Fri, 22 Jun 2018 07:05:39 -0400 Received: from albert.telenet-ops.be ([195.130.137.90]:52252 "EHLO albert.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754207AbeFVLFh (ORCPT ); Fri, 22 Jun 2018 07:05:37 -0400 Received: from ayla.of.borg ([84.194.111.163]) by albert.telenet-ops.be with bizsmtp id 1n5c1y00a3XaVaC06n5ca9; Fri, 22 Jun 2018 13:05:36 +0200 Received: from rox.of.borg ([192.168.97.57]) by ayla.of.borg with esmtp (Exim 4.86_2) (envelope-from ) id 1fWJsm-0002Mp-Jj; Fri, 22 Jun 2018 13:05:36 +0200 Received: from geert by rox.of.borg with local (Exim 4.90_1) (envelope-from ) id 1fWJsm-0008Ha-IG; Fri, 22 Jun 2018 13:05:36 +0200 From: Geert Uytterhoeven To: Matias Bjorling Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH v4] lightnvm: Remove depends on HAS_DMA in case of platform dependency Date: Fri, 22 Jun 2018 13:05:35 +0200 Message-Id: <20180622110535.31796-1-geert@linux-m68k.org> X-Mailer: git-send-email 2.17.1 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 Remove dependencies on HAS_DMA where a Kconfig symbol depends on another symbol that implies HAS_DMA, and, optionally, on "|| COMPILE_TEST". In most cases this other symbol is an architecture or platform specific symbol, or PCI. Generic symbols and drivers without platform dependencies keep their dependencies on HAS_DMA, to prevent compiling subsystems or drivers that cannot work anyway. This simplifies the dependencies, and allows to improve compile-testing. Signed-off-by: Geert Uytterhoeven Reviewed-by: Mark Brown Acked-by: Robin Murphy Reviewed-by: Matias Bjørling --- v4: - Rebase to v4.18-rc1 (applies to next-20180622, too), v3: - Add Reviewed-by, - Rebase to v4.17-rc1, - Removed bogus notes, v2: - Add Reviewed-by, Acked-by, - Drop RFC state, - Split per subsystem. --- drivers/lightnvm/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/lightnvm/Kconfig b/drivers/lightnvm/Kconfig index 10c08982185a572f..9c03f35d9df113c6 100644 --- a/drivers/lightnvm/Kconfig +++ b/drivers/lightnvm/Kconfig @@ -4,7 +4,7 @@ menuconfig NVM bool "Open-Channel SSD target support" - depends on BLOCK && HAS_DMA && PCI + depends on BLOCK && PCI select BLK_DEV_NVME help Say Y here to get to enable Open-channel SSDs. -- 2.17.1