Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1066585rwd; Tue, 16 May 2023 11:14:54 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ74GQIt84LYNWDYqmiNoUmTNZTKlbtACP/0S4RB0Zae8+rNBFYjOEEcxRNJ8Vzpb29Bq4K7 X-Received: by 2002:a05:6a20:748a:b0:105:a24f:cff1 with SMTP id p10-20020a056a20748a00b00105a24fcff1mr12515895pzd.24.1684260893907; Tue, 16 May 2023 11:14:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684260893; cv=none; d=google.com; s=arc-20160816; b=m4vChfn0SXm0KPdkLVCLr/510sZanhHYFo+IDg3jED5pxbpLpKmX4E+vm6K9mGzMH9 /AaD+Nx9913AnzAcX9mROwIiQ3i315yeUvwmcJmvzTxTttpBbZfcUJlmi1LrhI3q97pZ OFc3V8pXPWhkEJiXO6MzCru98kA1TW7iln7ZRsKc1Qov6tgiK897qiQaOteR+UPBk9sn G/G4ejVEdflzVeS+d1OFpYb6kLG8+icPaw0NmmYQWQnRsdTfh4muMa2/xpddxDWIJYKo QuFPuIRC4kwPGG2pQzzKf4TVCHIGlv/5Y3HPMWfDncC7ssELW2vP84Pyc2Bh0orf7Pu0 tw5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=l0YG26SggnMgqFK6GAegkgTGvSL84G04qHiNLpaBIYI=; b=ktthxnFv0invUSirK7LAYiRNgl0EWumjDF/KVQfnWibMwkyfej44gLKz3go4Sqx/7Q q0kSo1hJ4FotHpFAbqG36svjA6ANrQDa6j33xzZ0U6uQIe2jyPRIiy44KX2+7Pn6XRzM NtKR2CDIq1/fEuGgDOc3qvsoJbunVRz72sCZoFJTi2YA45Af0XjqIbcIj87z7p+lqsm9 zQxg1hnC2jOK5KEboDkycAJhzgIPl/VwG66Z5Lf4JEpHyilVkSG0drXchBXBzM1kaY0N AqauOWYWxl+yQHUFE+wsqZpfd48yMEvoB7Ov7jG2Sgh8a8/gCegSof4a6d6mz8FzHk3i kXiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SAyDZvq3; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i186-20020a6387c3000000b0051b5fc497e9si19854993pge.739.2023.05.16.11.14.32; Tue, 16 May 2023 11:14:53 -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=@kernel.org header.s=k20201202 header.b=SAyDZvq3; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232093AbjEPR46 (ORCPT + 99 others); Tue, 16 May 2023 13:56:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232083AbjEPR4t (ORCPT ); Tue, 16 May 2023 13:56:49 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 30B199B; Tue, 16 May 2023 10:56:45 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id B906463625; Tue, 16 May 2023 17:56:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9498FC433D2; Tue, 16 May 2023 17:56:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684259804; bh=7ULD3yxJaogVlKiE5g0T5dzK9aiAn4kF1SV1cudf0a0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=SAyDZvq3aI7/IDGeV2SK+xROv4K/jTU2+ZB3sCeAk+zcBLZcL0uYl7DxSR6UkmAbc GiL70Fl1igazasLe7Nfh1eye/vhD7JlpTfEwFNZa4V3mJ7oWobs3KJAybvXJUm9Z1s jmqTpuxy/tY3W9o/cVEo2kiZ1ONxXb6ZX3MTypvUR7cVMr2kykDqZgrrAQO0fn0BK7 +bi2nP6QdG1CyxxfjVNbIRJ9UZ5OX2/Tqf04H+Q2pzva0bfJi1FstVkdad04QkvTNF DQVh1PrLL/V+pmjguWD+nhXThIs7nitRkmHAwu9uwJ2r5hL9SVV0HT/H3jT/f/tTql zJ9h3Yz63kG0A== Date: Tue, 16 May 2023 23:26:39 +0530 From: Vinod Koul To: Baoquan He Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, schnelle@linux.ibm.com, linux-s390@vger.kernel.org, Andy Gross , Bjorn Andersson , Konrad Dybcio , linux-arm-msm@vger.kernel.org, dmaengine@vger.kernel.org Subject: Re: [PATCH RESEND 2/2] dmaengine: make QCOM_HIDMA depend on HAS_IOMEM Message-ID: References: <20230506111628.712316-1-bhe@redhat.com> <20230506111628.712316-3-bhe@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230506111628.712316-3-bhe@redhat.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,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: X-Mailing-List: linux-kernel@vger.kernel.org On 06-05-23, 19:16, Baoquan He wrote: > 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 QCOM_HIDMA depend on HAS_IOMEM so that it won't be built to > cause below compiling error if PCI is unset. I have 2/2 patch here, where is patch 1 of 2..? > > -------------------------------------------------------- > ld: drivers/dma/qcom/hidma.o: in function `hidma_probe': > hidma.c:(.text+0x4b46): undefined reference to `devm_ioremap_resource' > ld: hidma.c:(.text+0x4b9e): undefined reference to `devm_ioremap_resource' > make[1]: *** [scripts/Makefile.vmlinux:35: vmlinux] Error 1 > make: *** [Makefile:1264: vmlinux] Error 2 > > Signed-off-by: Baoquan He > Reviewed-by: Niklas Schnelle > Cc: Andy Gross > Cc: Bjorn Andersson > Cc: Konrad Dybcio > Cc: Vinod Koul > Cc: linux-arm-msm@vger.kernel.org > Cc: dmaengine@vger.kernel.org > --- > drivers/dma/qcom/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/dma/qcom/Kconfig b/drivers/dma/qcom/Kconfig > index 3f926a653bd8..ace75d7b835a 100644 > --- a/drivers/dma/qcom/Kconfig > +++ b/drivers/dma/qcom/Kconfig > @@ -45,6 +45,7 @@ config QCOM_HIDMA_MGMT > > config QCOM_HIDMA > tristate "Qualcomm Technologies HIDMA Channel support" > + depends on HAS_IOMEM > select DMA_ENGINE > help > Enable support for the Qualcomm Technologies HIDMA controller. > -- > 2.34.1 -- ~Vinod