Received: by 10.213.65.68 with SMTP id h4csp406906imn; Fri, 16 Mar 2018 06:55:04 -0700 (PDT) X-Google-Smtp-Source: AG47ELvuHyoOl7/GTbX96D+yIaFZo+R4UQdy4D/ZvKUwBOIrBUzlBABTxHcsJeSKql1khS4/hIGz X-Received: by 10.167.131.199 with SMTP id j7mr1642739pfn.99.1521208504830; Fri, 16 Mar 2018 06:55:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521208504; cv=none; d=google.com; s=arc-20160816; b=zbut2VchE7jf6Yio85fOEFx+U0uImoBeexZIn2LkUfrxCv5XXzgY7mZ/hc4Txc80O/ 5Bw8CxQNtMb6KAayiPYyl+AE8PYQytwDs9hHuRaxvPJj8quEqFuclMIphB2y3pgwsOWu NESwjI+JFsDsOup9S8Ju0XGnFkCLi0NnTfkEDxtG8CPOkTWcvtRMJzaM72CukZhCoHbd 3MIBreo0eAmnslDZSRwS6ZH/oXUdRAlYbrGqs31pSKuRVDRjRzDj6Hmo1n/bM4q1gLR9 gnhx295J926Xo2L9tLHLzuWHFCY7WlzeNOF/t8j1Lj+rQaSRXClLnLz1XxkPIslUckNY zUJw== 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=kMYNLYxD/KxU6vvZ2Ow3TIevdnXtBOdkF7e/uMBQQ0k=; b=SEwVUeyojsr5O1FkN1bBziy9js4a4NntS+bKTlgDXnECfRdmj/zzN67lckdTZR2wi4 Vi0dcm+XF8LmB9pB+AL5RixxabJD6dygxyYpzBqPw819qlIPnnYiqU83/8pfenMn+KBI dngyRgEsuMdXDw2BPGt6+X91I52RfrYYTbQ34gNRmhRfvoG0nzvNLJpbs08CfNiWREYV DePg9POmEScdmUynDAJ5cQFu758gRCWN0aW4oRD6lxQgnAAxIlIIok/62dlmycSt+O3q 8VVKiaF8j5Am05iXbpyWWTwTeFLwj3bce+tCGkT0pBwECgV66DcMrFzfp5x1N97qin/C rG9A== 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 f5-v6si6333333plf.223.2018.03.16.06.54.50; Fri, 16 Mar 2018 06:55:04 -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 S1753445AbeCPNxm (ORCPT + 99 others); Fri, 16 Mar 2018 09:53:42 -0400 Received: from andre.telenet-ops.be ([195.130.132.53]:58552 "EHLO andre.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753316AbeCPNxb (ORCPT ); Fri, 16 Mar 2018 09:53:31 -0400 Received: from ayla.of.borg ([84.194.111.163]) by andre.telenet-ops.be with bizsmtp id Ndse1x00V3XaVaC01dsenq; Fri, 16 Mar 2018 14:53:30 +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-0000Qt-Pl; Fri, 16 Mar 2018 14:51:57 +0100 Received: from geert by ramsan with local (Exim 4.86_2) (envelope-from ) id 1ewpm1-0001Ha-Di; 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 17/21] scsi: hisi_sas: Remove depends on HAS_DMA in case of platform dependency Date: Fri, 16 Mar 2018 14:51:50 +0100 Message-Id: <1521208314-4783-18-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/scsi/hisi_sas/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/hisi_sas/Kconfig b/drivers/scsi/hisi_sas/Kconfig index d42f29a5eb65046d..57183fce70fb6355 100644 --- a/drivers/scsi/hisi_sas/Kconfig +++ b/drivers/scsi/hisi_sas/Kconfig @@ -1,6 +1,6 @@ config SCSI_HISI_SAS tristate "HiSilicon SAS" - depends on HAS_DMA && HAS_IOMEM + depends on HAS_IOMEM depends on ARM64 || COMPILE_TEST select SCSI_SAS_LIBSAS select BLK_DEV_INTEGRITY -- 2.7.4