Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4069827pxk; Tue, 8 Sep 2020 09:54:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw25jPo1cJIhGDtAVXmEXQsV6/hnJliohVpDmpvbFOd3EwpubGO11YVfmcKCUSl9FsC8j0i X-Received: by 2002:a17:906:6993:: with SMTP id i19mr14703085ejr.26.1599584058993; Tue, 08 Sep 2020 09:54:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599584058; cv=none; d=google.com; s=arc-20160816; b=lz2lQqRdWg9Xn06uhjkG33TjKX70SKg6V1Cr/4yeYiR/7YuBLnIqcXmsG8VSJ7HD6H XZug2bVPzpuk8vw6+eA6r3Qgx9bW8K4Nh9SlqaBdi7y0ORDMS85uRIE1ZXtob9mNR87H TW9JF4XWx+Q8kkelYzEaTekzLnvjmwAGNTut+xRcH3lTtFkBAh6yA7FrQRqSJeeWbXak siSr/DowN0iNT1601GokGfaGH9KmiYw4gP5z9MVUDK2n2nLB55Zt5UWRjReXNNtYs9Um CUYxwfLLSGQWrdq27OUFXa28uM+r8arK+/WyDERU3ApSiBJttZRVpr+UpIkPI+BuYZl4 oPKg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=qqLaTPZucw5oDcARbFfOdxVBbFJKkf1DfCLZzjkn6K0=; b=c+GflU99XxHbI73lAONyzz2UUL60/H0VupV5x9XVaapq/7IHCz6w+Ihu24f0TCtvcG /p9fdZWW0kwrkPLzx6/OM7rNz8CEZ5mVgQuCPGDrPda5plXdvrzWsJYuZlYfgSKRceKA tZh4HQcWLttDM9CEFvUX1t1MNaXRqQmEzUDCE4f44iX9pDLmZ9j5iNetwIB/OZXtyldz /WyhCSAzmXCilA9SUWAsx3VxDDowriJ8Ge2st0YaBNiNDdXWGSgUqv+9AvDL5I7vfcV9 NsrOfXLj4W41zXSXCp0EIc80tk5+k49u4ID4knuAIYhEhBY6trV7QQ8l8sX2bSRNMy0Q hq/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=QOaAUIFr; 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 p16si11859998edm.382.2020.09.08.09.53.56; Tue, 08 Sep 2020 09:54:18 -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=fail header.i=@infradead.org header.s=casper.20170209 header.b=QOaAUIFr; 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 S1732004AbgIHQxR (ORCPT + 99 others); Tue, 8 Sep 2020 12:53:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34168 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732028AbgIHQsj (ORCPT ); Tue, 8 Sep 2020 12:48:39 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 321FAC061797; Tue, 8 Sep 2020 09:48:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=qqLaTPZucw5oDcARbFfOdxVBbFJKkf1DfCLZzjkn6K0=; b=QOaAUIFrVFFBjMiPtBwShGGSii AfLQaagJtB8aVjJw7OhF/Ht9ngdo/gAEWUZUrTiEDBn5xZqgk3w8MSBaImeDG9le0FkFftx+M/b88 qssTqDexo3PO80Q3S7qztIKVdBmgkb/baXG9Av7oUJf/02ZCS2Lvw+L7VqIqAALTlNALU4Pfft2Ve RFt4zfGcQp9UNTeuOAC0r9EQciwD+CL2DHdEZsveYr5VD9UoSn+f2I21TZ19GLqfRy8JQCans4QVs v2wwDl1U6SNwJDAsoMj1LV5zwhr6oyQSFPXRATwoHHL5F0x1X/BjmCvsw2pOhy/FthSuwoOzN6uO9 wc+KTwuA==; Received: from [2001:4bb8:184:af1:3dc3:9c83:fc6c:e0f] (helo=localhost) by casper.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1kFgmq-0001Ry-1W; Tue, 08 Sep 2020 16:48:04 +0000 From: Christoph Hellwig To: Tony Luck , Fenghua Yu , Thomas Bogendoerfer , iommu@lists.linux-foundation.org Cc: Tomasz Figa , Joerg Roedel , Robin Murphy , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-ia64@vger.kernel.org, linux-mips@vger.kernel.org Subject: [PATCH 04/12] dma-mapping: fix DMA_OPS dependencies Date: Tue, 8 Sep 2020 18:47:50 +0200 Message-Id: <20200908164758.3177341-5-hch@lst.de> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200908164758.3177341-1-hch@lst.de> References: <20200908164758.3177341-1-hch@lst.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Driver that select DMA_OPS need to depend on HAS_DMA support to work. The vop driver was missing that dependency, so add it, and also add a nother depends in DMA_OPS itself. That won't fix the issue due to how the Kconfig dependencies work, but at least produce a warning about unmet dependencies. Signed-off-by: Christoph Hellwig --- drivers/misc/mic/Kconfig | 1 + kernel/dma/Kconfig | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/misc/mic/Kconfig b/drivers/misc/mic/Kconfig index b9bb086785db48..8a7c2c5711d5f4 100644 --- a/drivers/misc/mic/Kconfig +++ b/drivers/misc/mic/Kconfig @@ -35,6 +35,7 @@ config SCIF_BUS config VOP_BUS tristate "VOP Bus Driver" + depends on HAS_DMA select DMA_OPS help This option is selected by any driver which registers a diff --git a/kernel/dma/Kconfig b/kernel/dma/Kconfig index 0ddfb5510fe45f..e7b801649f6574 100644 --- a/kernel/dma/Kconfig +++ b/kernel/dma/Kconfig @@ -9,6 +9,7 @@ config HAS_DMA default y config DMA_OPS + depends on HAS_DMA bool # -- 2.28.0