Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp2096094rwr; Sat, 6 May 2023 05:00:18 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4ZQtjtZNEvLvHuIb0lT6JopAxSwcBmX7Cps6bXL/ns9a9NQXm0AoLwdqEiqOKYMeUTK5DL X-Received: by 2002:a05:6a20:440c:b0:ff:7ebe:279a with SMTP id ce12-20020a056a20440c00b000ff7ebe279amr1882167pzb.41.1683374418194; Sat, 06 May 2023 05:00:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683374418; cv=none; d=google.com; s=arc-20160816; b=uvM8dh+3vwbPHIf2SAoS7gSs9h4VTC4v7RzPFB/EaskGHpLygn4ZTAN+uLkU6oGWc4 9K4kIUUK4OhnB7kWacR29hfCpcHp85LbDa51K6DgB4Qq8b6HdlTHWZGqHIWV5g1mmRPQ 2cSBX6t69JoC8XkgiXGkPd80fU5Ls26NaiViBjKcwjLe50DllUTazM5d3PQNIRBy0wjN lLkYZnYGpwsrNup4YojeSdztktmyGOoGGx4a+z2C54CKikTKXssGiDwXl3tJfT5PbScs gh+KkjWS9KAeOU5G6+9P8E9JY3e28P+mli9oG2mVmJhL1PFfMrLs0I9hb7SdLWZGNs5F 90NQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=W0CQW1o+U6+NILna+LXJ6vdvZ0BkUTno5y+llmnMQyo=; b=p6Q5T+zKECL5XeF+yjxAF3s/K+Q9UEmT35bTCRq6N3AZrVE9iNpa9DUkbrpgTRjKim enPW2rL4HfHtWxes5WxOVnld21gA1+OYLh6HvTFZfrbh75oh8/uoOK3wYOatvfvQ+bdC d6l3zqVHbm6BPIlyL7IQXtPYy54EiWBS9WrAo+2XhFyVls8y4NhJv3Upi/t453CwE9bE m8goZtB7kMc5SI+SyHPwST/ixun9RrnYlCsRpJTkvVWSVLV5VmXtTzLlHa0LRkEZpngi hOPe/aj+z7cQzPdezEr3o+JtbFe2U7oMLbguzIdirjea3griz6valeZwdVuGY9GjO2N+ DROA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dPe2CSLo; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s1-20020a63dc01000000b00519a3fb282esi4508422pgg.864.2023.05.06.04.59.59; Sat, 06 May 2023 05:00:18 -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=@linaro.org header.s=google header.b=dPe2CSLo; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232391AbjEFLuJ (ORCPT + 99 others); Sat, 6 May 2023 07:50:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60890 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232390AbjEFLuH (ORCPT ); Sat, 6 May 2023 07:50:07 -0400 Received: from mail-yw1-x1129.google.com (mail-yw1-x1129.google.com [IPv6:2607:f8b0:4864:20::1129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E8EC19036 for ; Sat, 6 May 2023 04:50:04 -0700 (PDT) Received: by mail-yw1-x1129.google.com with SMTP id 00721157ae682-55a829411b5so25207067b3.1 for ; Sat, 06 May 2023 04:50:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683373804; x=1685965804; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=W0CQW1o+U6+NILna+LXJ6vdvZ0BkUTno5y+llmnMQyo=; b=dPe2CSLoV7+FcVOrSoBizhbLXI/ZLBJ7RTaokfwOtGBTZeSTeYLGxR5uo9fELcry5s LjhkhKLm24iZteGxoktGLRgmELDQgh5dNlcPeyGuk5sDq1G+uRRCrDjHus72ClJr/jlN Ygj8wwQxJkpI0NiUvyWR8zSEsmn7rI8HLRq7PX54EoRwn1p+A3gFgHEi+yB4uztdr1JV /96WWH4Ph/4/DsPGZSncbenn9NXikntnF6iXN69jEyqz0Zn+JG/vxusicCalOspcWmzA pyHRt+NJNNIdW6RHALL/qgR/rI2RWyrjE1x52v0lj5qHj31p4GSzyvfrDe74ngZyKJ/8 RRdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683373804; x=1685965804; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=W0CQW1o+U6+NILna+LXJ6vdvZ0BkUTno5y+llmnMQyo=; b=cmFHZFlUwGHQi6iO7Fz4iQVvhfJoRrZZXaO4pHAaJwRxnoNwaB155KHe/YWhgEOrBq NvHtZamoi2uKlSwWfsXcBlovVoSn7nNK/n/L2Pa7c2VMFsk+XBUN8+NAvU2h4Xq/A8hN DLMCMDPVDAbV8SQhZfo6eie9NMPJD8pbKob1FOuGv2bNpnz+q+UQRNDPplrr+3Qz6wbx L7TQKxKLsno05xdA0O76BE+TWIeN93rXbJXcgZrYdNlqwH7aKqUi/q8dRjqCXUXyu9qX QK5u08NW2ykpPAc8YJkvPbANtdT/0ljFuUFDJNl3ZPnuhVKBkOx69mUZfcKZI8QSDla1 SHfw== X-Gm-Message-State: AC+VfDzuqcogDUgpfRliOlRBfVmV6ijVDR23VclCprjzfGxtE7wJWMEi quY+RM6+7cxchSsuWfhJXx+T1+7yBbjpbvSdG7+eKQ== X-Received: by 2002:a81:6d04:0:b0:55a:abf7:636e with SMTP id i4-20020a816d04000000b0055aabf7636emr4510017ywc.24.1683373804150; Sat, 06 May 2023 04:50:04 -0700 (PDT) MIME-Version: 1.0 References: <20230506111628.712316-1-bhe@redhat.com> <20230506111628.712316-3-bhe@redhat.com> In-Reply-To: <20230506111628.712316-3-bhe@redhat.com> From: Dmitry Baryshkov Date: Sat, 6 May 2023 14:49:53 +0300 Message-ID: Subject: Re: [PATCH RESEND 2/2] dmaengine: make QCOM_HIDMA depend on HAS_IOMEM 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 , Vinod Koul , linux-arm-msm@vger.kernel.org, dmaengine@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable 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 Sat, 6 May 2023 at 14:17, 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. > > -------------------------------------------------------- > 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(+) Reviewed-by: Dmitry Baryshkov -- With best wishes Dmitry