Received: by 10.213.65.68 with SMTP id h4csp416936imn; Fri, 16 Mar 2018 07:10:27 -0700 (PDT) X-Google-Smtp-Source: AG47ELtD4NbCsw3SpopAjCCWBKv0sVPOb0NwHrMF0S9IflWnP8/C7WgQz7sMhP1e7dAWQv5+tVgc X-Received: by 10.98.52.133 with SMTP id b127mr1736394pfa.17.1521209427813; Fri, 16 Mar 2018 07:10:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521209427; cv=none; d=google.com; s=arc-20160816; b=m8mAmwsYCNAChJXqFT+A2lKF4Lv74ouoJEzQmNViEdCodVHRJV03sXejVpt80FWSq+ npr5gcCmeYffas+msAMrQrxOFTAeAoglPOUOSAT8X5fH9zZi+vg0vq9dU02IBT64+DIM nj9z2AG+maqDIAlyfpzjQHxWFuOB03OT93pgXi7mdkwSPlk11a3HIUA1n3Y5S6Nr/e2l ii6CVq+RJSvQe10vdpg3i1GMtZaJRuY/Kt0PvOijv/vLZUOa5LkqEh4uuI0LSuf4dbZF fWA0ChEewk40mM8u2TOJQfOD5ax3TBgU9EtVUoCWmz9QY8K3Iii8anua3BHkAkBNaJIf fn9w== 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=rqhnFvcNjoT7F5fIX9MP8urI37AOXVEmhlS22UmDrOA=; b=iJE/iMrQzYOVqhFgOFved6zw777eedNcQtI/Jk1XKPnsXR3NfsKy50E9b2cSL/jnX4 OMQbPagB7rPL1tvXOOrorkyS1U7JTFbxOdCrRNpYUU9PRL/jdRRTo+Mbv1iBDca5Y6Hm IMmRIZq4XpjQFZzUO8PPkfHDqdvkHtfMkCFTZxPTBq3lcJXDV7dek3NIO0wb8gq8gKkM iz2DtqV2AXCH+4CPYl3zMIAkWIkH2aDjQHd9ArOPFseE0FEj596bzVH+5Z/to7HiKOQL yXOytg1MG4m8SQZC7EI73I2JrP7RbMXAszVy29BSIumyDozMzd0izt5jCBXSMf73Qa8G XBhw== 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 m10si812467pgd.103.2018.03.16.07.10.11; Fri, 16 Mar 2018 07:10:27 -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 S1752895AbeCPOIx (ORCPT + 99 others); Fri, 16 Mar 2018 10:08:53 -0400 Received: from newton.telenet-ops.be ([195.130.132.45]:46086 "EHLO newton.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752048AbeCPOBf (ORCPT ); Fri, 16 Mar 2018 10:01:35 -0400 X-Greylist: delayed 514 seconds by postgrey-1.27 at vger.kernel.org; Fri, 16 Mar 2018 10:01:33 EDT Received: from baptiste.telenet-ops.be (baptiste.telenet-ops.be [IPv6:2a02:1800:120:4::f00:13]) by newton.telenet-ops.be (Postfix) with ESMTPS id 402n3920XXzMqyt9 for ; Fri, 16 Mar 2018 14:52:53 +0100 (CET) Received: from ayla.of.borg ([84.194.111.163]) by baptiste.telenet-ops.be with bizsmtp id Ndrx1x00B3XaVaC01drxxe; Fri, 16 Mar 2018 14:52:52 +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 1ewpm0-0000Pz-TO; Fri, 16 Mar 2018 14:51:56 +0100 Received: from geert by ramsan with local (Exim 4.86_2) (envelope-from ) id 1ewpm0-0001GL-Qs; Fri, 16 Mar 2018 14:51:56 +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 02/21] ata: Remove depends on HAS_DMA in case of platform dependency Date: Fri, 16 Mar 2018 14:51:35 +0100 Message-Id: <1521208314-4783-3-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. 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/ata/Kconfig | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/ata/Kconfig b/drivers/ata/Kconfig index a7120d6211546949..9eaeed1fb237fa33 100644 --- a/drivers/ata/Kconfig +++ b/drivers/ata/Kconfig @@ -398,7 +398,6 @@ config SATA_DWC_VDEBUG config SATA_HIGHBANK tristate "Calxeda Highbank SATA support" - depends on HAS_DMA depends on ARCH_HIGHBANK || COMPILE_TEST help This option enables support for the Calxeda Highbank SoC's @@ -408,7 +407,6 @@ config SATA_HIGHBANK config SATA_MV tristate "Marvell SATA support" - depends on HAS_DMA depends on PCI || ARCH_DOVE || ARCH_MV78XX0 || \ ARCH_MVEBU || ARCH_ORION5X || COMPILE_TEST select GENERIC_PHY -- 2.7.4