Received: by 10.213.65.68 with SMTP id h4csp443317imn; Fri, 16 Mar 2018 07:57:39 -0700 (PDT) X-Google-Smtp-Source: AG47ELs3e/9X3EizJ3hOoxr9DhmssLzuI4e7+sT3xP9MGTAWSKrLHBNVuOBSCTTOBcuyrKdS5GRD X-Received: by 10.98.129.67 with SMTP id t64mr1819642pfd.137.1521212259575; Fri, 16 Mar 2018 07:57:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521212259; cv=none; d=google.com; s=arc-20160816; b=x/qsheRHQ8mm3ndUKRpgj2x1JRgONkGZxhzZqdVTLnwvPIkNHx7gzfo7Zg9p8IDedF yQCsuT02rgLV/DStBnV2lEFGey3P6kAXvVcqrGVmeJF8oXh8J6k4evA0FaLXFoeJIlpS RzqradFR6s2sCTZZYLWB8Ki9OpHb3T8ds5ujY2r3B1SVV4kYA9BqKTQTY1/eBzjSUZiN Mu2kLvpF9WgIXzYrvzRR8vb0WYiP+PItpOH4tbj5QUYnTPxixH82znerby+Jg+nwbVRE 5bs2yuCc1oBcPJ4AajP0pxnjYP59DTPVA7kIyBn7V6Wjj2Y0J9bBhO8Ubr0GDRV0xNVZ 27Xw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=juGuFox3oX9Zza07aOIjT3f4Aqc+Eppi8TXAEGm3YfU=; b=AcowdjoOpd4KmEisKrlRmf92EiJ1x6VgDyiKAU/Pfb16GU5plWFM8IQvO06dK4EZ9H /sa7M0JzRnGMjAdqd1GevQKDcZ1ZPw0Z8SXAQMrMWClENK92z9YtW6RlJm2Ou1WSEbz7 SR131tWtIIvGfXRlUo2+y58TYH6LuyFSEarqUrWiRq4jn8cEwPhniayDFNrvzeHJ3s21 9fCBdB3vF+Gmam4qZCnB1gj33SJ6RpWl4NDuIj9RHwouo64LEM9vQrI3dv8QzM0gPPrA 47BVLvKo3DBoEtRA67F+yDv2iCjb8knpFl6oT22qfAQ48Q3VTMyzbj3+fOS/UnomTqGf TWFA== 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 i12-v6si6371505plk.508.2018.03.16.07.57.25; Fri, 16 Mar 2018 07:57:39 -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 S1754063AbeCPO4O (ORCPT + 99 others); Fri, 16 Mar 2018 10:56:14 -0400 Received: from andre.telenet-ops.be ([195.130.132.53]:48540 "EHLO andre.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753979AbeCPOyv (ORCPT ); Fri, 16 Mar 2018 10:54:51 -0400 Received: from ayla.of.borg ([84.194.111.163]) by andre.telenet-ops.be with bizsmtp id Nepk1x00b3XaVaC01eu0xo; Fri, 16 Mar 2018 15:54:50 +0100 Received: from ramsan.of.borg ([192.168.97.29] helo=ramsan) by ayla.of.borg with esmtp (Exim 4.86_2) (envelope-from ) id 1ewpm1-0000QS-D7; Fri, 16 Mar 2018 14:51:57 +0100 Received: from geert by ramsan with local (Exim 4.86_2) (envelope-from ) id 1ewpm1-0001H0-3w; Fri, 16 Mar 2018 14:51:57 +0100 From: Geert Uytterhoeven To: Christoph Hellwig , Marek Szyprowski , Robin Murphy , Felipe Balbi , Greg Kroah-Hartman , "James E . J . Bottomley" , "Martin K . Petersen" , Andrew Morton , Mark Brown , Liam Girdwood , Tejun Heo , Herbert Xu , "David S . Miller" , Bartlomiej Zolnierkiewicz , Stefan Richter , Alan Tull , Moritz Fischer , Wolfram Sang , Jonathan Cameron , Joerg Roedel , Matias Bjorling , Jassi Brar , Mauro Carvalho Chehab , Ulf Hansson , David Woodhouse , Brian Norris , Marek Vasut , Cyrille Pitchen , Boris Brezillon , Richard Weinberger , Kalle Valo , Ohad Ben-Cohen , Bjorn Andersson , Eric Anholt , Stefan Wahren Cc: iommu@lists.linux-foundation.org, linux-usb@vger.kernel.org, linux-scsi@vger.kernel.org, alsa-devel@alsa-project.org, linux-ide@vger.kernel.org, linux-crypto@vger.kernel.org, linux-fbdev@vger.kernel.org, linux1394-devel@lists.sourceforge.net, linux-fpga@vger.kernel.org, linux-i2c@vger.kernel.org, linux-iio@vger.kernel.org, linux-block@vger.kernel.org, linux-media@vger.kernel.org, linux-mmc@vger.kernel.org, linux-mtd@lists.infradead.org, netdev@vger.kernel.org, linux-remoteproc@vger.kernel.org, linux-serial@vger.kernel.org, linux-spi@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH v2 10/21] lightnvm: Remove depends on HAS_DMA in case of platform dependency Date: Fri, 16 Mar 2018 14:51:43 +0100 Message-Id: <1521208314-4783-11-git-send-email-geert@linux-m68k.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1521208314-4783-1-git-send-email-geert@linux-m68k.org> References: <1521208314-4783-1-git-send-email-geert@linux-m68k.org> 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. Notes: - FSL_FMAN keeps its dependency on HAS_DMA, as it calls set_dma_ops(), which does not exist if HAS_DMA=n (Do we need a dummy? The use of set_dma_ops() in this driver is questionable), - SND_SOC_LPASS_IPQ806X and SND_SOC_LPASS_PLATFORM loose their dependency on HAS_DMA, as they are selected from SND_SOC_APQ8016_SBC. Signed-off-by: Geert Uytterhoeven Reviewed-by: Mark Brown Acked-by: Robin Murphy --- 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.7.4