Message ID | 20230707135852.24292-2-bhe@redhat.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp3291635vqx; Fri, 7 Jul 2023 07:04:10 -0700 (PDT) X-Google-Smtp-Source: APBJJlHZQsPW8kh97ClAWd2ZLrFXTQmzsDZctlbPxFnmGjJRajweR8POehG6Iq+/2g4nhtkO6a5j X-Received: by 2002:a17:903:249:b0:1b5:642e:139d with SMTP id j9-20020a170903024900b001b5642e139dmr5393128plh.10.1688738650312; Fri, 07 Jul 2023 07:04:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688738650; cv=none; d=google.com; s=arc-20160816; b=DkMdgPfuj+0KOL86drBMMjw2dqeUu2HhhTWy52b34JlEpfLXhfyqTeL1W4RiGbGzK0 W9SOGccSdBQ8mmGhCv6g5X1WgmD8w52Ov6bcx6c5Uy80bGVIWtgMaE0g+5WdTU/WfJDr HfyEtuTKk4/bj1cs7BYQK3cUdsZJlHCsGpHr31rizKGjgQq4XZHxxvhP3XcoFwpUtbg/ F3BGNLVEU80Tr673qCv/4pRMUuPQIFzs79elAW8SKX7lorVjkWfoJW2lMAoTgVDkK7Vt 06VVkMj0X+JIO8SM687lIxd4LgVwpGN9nNtDcUD7EDrtzbmSwxNnzuzeRk9Th3MWctOb jlRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=MGtpw5Ijohgjr845woqe5tjbTFDfrclnX+uXDY4qJTo=; fh=iJCXvx/q4VcaO+2Is+LEQyK9cldWNVVgSrYDuvcEfV0=; b=jShsUPcppXgkZAvHWn6n4oj5WdOuHUmy/srOYlY7e1ALJB+afOg3wywwnyC20dmKjB 8wv5qhKGketn0UlCb+1qBeBbFoGQ3JD5poetSae2SWAdh56JmD3yWNiq/iH3HheIZ0u7 c3qFFUdWhg89SCaCboxK8IVaRDOt56IdYqJBH7tEVSSjKckWpIptlrOQ6go+w7EviZvP l5v7ZPwxn1+KmNNVDKCrk9wgHGkwJ653IkH+WNN/mueYfEOnmIXMZu9Ju9v5bLh2Q9oI Isvs3urzBW5WwFuli5+270xL6HqBX0AycLOZcklg667bZBnxuhUEsPGma+y+H6t6YUN7 VEZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=BJBZAcSi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lg15-20020a170902fb8f00b001b69bc74fd7si2830151plb.157.2023.07.07.07.03.49; Fri, 07 Jul 2023 07:04:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=BJBZAcSi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229747AbjGGOAV (ORCPT <rfc822;daweilics@gmail.com> + 99 others); Fri, 7 Jul 2023 10:00:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36382 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232505AbjGGOAR (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 7 Jul 2023 10:00:17 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DB2B71FE6 for <linux-kernel@vger.kernel.org>; Fri, 7 Jul 2023 06:59:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1688738370; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=MGtpw5Ijohgjr845woqe5tjbTFDfrclnX+uXDY4qJTo=; b=BJBZAcSiy+0owhFXivnV6MZ0Fl7AmIiZxe/1Bn2g2ze82cMhIBNusJ3+WPlITRJehjDarU fGe/lLCENMxpuyzMRquPIyRJrhqRc6q0DhY8wlIWaRnE4HT+e8/YKfvF4FAQ9OkQlUIXpt Bs4d0k7KGge7mV+MT082soqDOBjHi2o= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-91-jdBeycFfMpWPcS0WdIfb0g-1; Fri, 07 Jul 2023 09:59:27 -0400 X-MC-Unique: jdBeycFfMpWPcS0WdIfb0g-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 7A140185A791; Fri, 7 Jul 2023 13:59:26 +0000 (UTC) Received: from MiWiFi-R3L-srv.redhat.com (ovpn-12-39.pek2.redhat.com [10.72.12.39]) by smtp.corp.redhat.com (Postfix) with ESMTP id 3BEDF2166B25; Fri, 7 Jul 2023 13:59:10 +0000 (UTC) From: Baoquan He <bhe@redhat.com> To: linux-kernel@vger.kernel.org Cc: akpm@linux-foundation.org, linux-mm@kvack.org, schnelle@linux.ibm.com, vkoul@kernel.org, eli.billauer@gmail.com, arnd@arndb.de, gregkh@linuxfoundation.org, derek.kiernan@amd.com, dragan.cvetic@amd.com, linux@dominikbrodowski.net, Jonathan.Cameron@huawei.com, linus.walleij@linaro.org, tsbogend@alpha.franken.de, joyce.ooi@intel.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, tglx@linutronix.de, maz@kernel.org, mturquette@baylibre.com, sboyd@kernel.org, robh+dt@kernel.org, frowand.list@gmail.com, Baoquan He <bhe@redhat.com>, kernel test robot <lkp@intel.com>, dmaengine@vger.kernel.org Subject: [PATCH 1/8] idmaengine: make FSL_EDMA and INTEL_IDMA64 depends on HAS_IOMEM Date: Fri, 7 Jul 2023 21:58:45 +0800 Message-Id: <20230707135852.24292-2-bhe@redhat.com> In-Reply-To: <20230707135852.24292-1-bhe@redhat.com> References: <20230707135852.24292-1-bhe@redhat.com> MIME-Version: 1.0 Content-type: text/plain Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.1 on 10.11.54.6 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770770819015792577?= X-GMAIL-MSGID: =?utf-8?q?1770770819015792577?= |
Series |
Make several Kconfig options depend on HAS_IOMEM
|
|
Commit Message
Baoquan He
July 7, 2023, 1:58 p.m. UTC
On s390 systems (aka mainframes), it has classic channel devices for
networking and permanent storage that are currently even more common
than PCI devices. Hence it could have a fully functional s390 kernel
with CONFIG_PCI=n, then the relevant iomem mapping functions
[including ioremap(), devm_ioremap(), etc.] are not available.
Here let FSL_EDMA and INTEL_IDMA64 depend on HAS_IOMEM so that it
won't be built to cause below compiling error if PCI is unset.
--------
ERROR: modpost: "devm_platform_ioremap_resource" [drivers/dma/fsl-edma.ko] undefined!
ERROR: modpost: "devm_platform_ioremap_resource" [drivers/dma/idma64.ko] undefined!
--------
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202306211329.ticOJCSv-lkp@intel.com/
Signed-off-by: Baoquan He <bhe@redhat.com>
Cc: Vinod Koul <vkoul@kernel.org>
Cc: dmaengine@vger.kernel.org
---
drivers/dma/Kconfig | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/dma/Kconfig b/drivers/dma/Kconfig index 644c188d6a11..08fdd0e2ed1b 100644 --- a/drivers/dma/Kconfig +++ b/drivers/dma/Kconfig @@ -211,6 +211,7 @@ config FSL_DMA config FSL_EDMA tristate "Freescale eDMA engine support" depends on OF + depends on HAS_IOMEM select DMA_ENGINE select DMA_VIRTUAL_CHANNELS help @@ -280,6 +281,7 @@ config IMX_SDMA config INTEL_IDMA64 tristate "Intel integrated DMA 64-bit support" + depends on HAS_IOMEM select DMA_ENGINE select DMA_VIRTUAL_CHANNELS help