Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3812541pxv; Mon, 28 Jun 2021 13:33:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyfRZpYHWNN2znptemuyHa/G0kl+NbpMIGSohq0eriJUEPbKXA1vrrgvNda4JK0iFayBcxn X-Received: by 2002:a92:da0e:: with SMTP id z14mr1374407ilm.239.1624912434038; Mon, 28 Jun 2021 13:33:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624912434; cv=none; d=google.com; s=arc-20160816; b=LytbXjtoHahSBdZ462vVtgp8PVANvYVqJBD3nEYGw7ZJYi1KutzqKGh9Pm6p+FYiEh hsKHRazesVkzrLU3bA1UZQLlnJJ9HCmz6Kf4rOz/47sGpaQOWnqs4vc82OM8VFHw7rQY HZ1j1VoR59nPM25t9GyVyDG/9KvfPbIazKRK+TCrLZGyqc1z1M9G9ea7NRdYh4gp2o8g UcXDK1u4tHW/rdw5eMearrYCdcmx95tuXnJ4LJ8IcKCBA3IphyIS6gBvQqtbz81VdQ2+ CSjTGypA7W4LXmS3Qyu6giadkLrHZzm1fRhX0JyjY2gFOR9ZI+q7+Hd9dADb4QJgW9Nf RPtg== 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=do244dTm6oEEYQ+Ox7Y3MDbPNd7YACZWWv+KxhUeOdg=; b=BXSsOYa1yIlSsCQWoDqql7hapGY0lOGA46Hbu7kNEm3WMlvtk2CBF2/4uX5BW2szr/ wqNMVqLdC7fqJrsvTBbXBNlFNqEs7BUvxVlVxwdx9K9hOQCNvYXAC3mwDZuOz7jf/3fO 5zqG1Jn464TE3l6nr1o7rFZVq+dld5uAU+h2F6O6guOifZ3EyDgyPRXF6w2EDX4u1nX0 FjSdDEHAKfBufcIBpv9bbnjaJDz+HU2p2sLPoW3e4WEIQh8SYHHXI6cgfmIdq6YZd8qH nVYLG89bbY4vSKgaBAN6QrLyo8T2qsf9vt0pj9zoYwm+GzW7Rhgmpu4arQRR0RaTLmaU KPrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=q48xDBUf; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k6si18935107ilu.56.2021.06.28.13.33.40; Mon, 28 Jun 2021 13:33:54 -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=pass header.i=@kernel.org header.s=k20201202 header.b=q48xDBUf; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236810AbhF1PJd (ORCPT + 99 others); Mon, 28 Jun 2021 11:09:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:54444 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233820AbhF1Osy (ORCPT ); Mon, 28 Jun 2021 10:48:54 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3F30E61CB5; Mon, 28 Jun 2021 14:36:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1624891007; bh=FMYvws+kWjH2cfK0q5IZM3N/gw5nFfC7NZ3ZH7gG+kc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=q48xDBUfh+X8HugwVT9rwcYrbmb3TE2S8VQGC+E9EchIJ4ByAYbROwatXF+FW5pzi XrXMcmRMhBKOavfMiXXHicaigCaZq24dtbNqevbv0DFsZr/5T6+CE+FD3M+eJXS5PD UBZvjBk9xShxYgnjp2icSbNglRRKOmcTDWCm0H+wYIm0vc3lyPbpdj1bVFlD9bswxU C8cF3OMXCqzkMcLUzjkh1sUO0Aq7rB5Z61B/WvY+I0gd/NQEyTGYYjcTE2h02GJOfb QDBtdbcdf7O3OvJy10XpK+4Cd4MKfBv7OsvcY4pWgWWcNcFbeH8I2So3zX6uhv3g+O 71/x7gQp2L8UA== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Randy Dunlap , kernel test robot , Sinan Kaya , Vinod Koul , dmaengine@vger.kernel.org, Sasha Levin Subject: [PATCH 4.14 19/88] dmaengine: QCOM_HIDMA_MGMT depends on HAS_IOMEM Date: Mon, 28 Jun 2021 10:35:19 -0400 Message-Id: <20210628143628.33342-20-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210628143628.33342-1-sashal@kernel.org> References: <20210628143628.33342-1-sashal@kernel.org> MIME-Version: 1.0 X-KernelTest-Patch: http://kernel.org/pub/linux/kernel/v4.x/stable-review/patch-4.14.238-rc1.gz X-KernelTest-Tree: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git X-KernelTest-Branch: linux-4.14.y X-KernelTest-Patches: git://git.kernel.org/pub/scm/linux/kernel/git/stable/stable-queue.git X-KernelTest-Version: 4.14.238-rc1 X-KernelTest-Deadline: 2021-06-30T14:36+00:00 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Randy Dunlap [ Upstream commit 0cfbb589d67f16fa55b26ae02b69c31b52e344b1 ] When CONFIG_HAS_IOMEM is not set/enabled, certain iomap() family functions [including ioremap(), devm_ioremap(), etc.] are not available. Drivers that use these functions should depend on HAS_IOMEM so that they do not cause build errors. Rectifies these build errors: s390-linux-ld: drivers/dma/qcom/hidma_mgmt.o: in function `hidma_mgmt_probe': hidma_mgmt.c:(.text+0x780): undefined reference to `devm_ioremap_resource' s390-linux-ld: drivers/dma/qcom/hidma_mgmt.o: in function `hidma_mgmt_init': hidma_mgmt.c:(.init.text+0x126): undefined reference to `of_address_to_resource' s390-linux-ld: hidma_mgmt.c:(.init.text+0x16e): undefined reference to `of_address_to_resource' Fixes: 67a2003e0607 ("dmaengine: add Qualcomm Technologies HIDMA channel driver") Signed-off-by: Randy Dunlap Reported-by: kernel test robot Cc: Sinan Kaya Cc: Vinod Koul Cc: dmaengine@vger.kernel.org Link: https://lore.kernel.org/r/20210522021313.16405-3-rdunlap@infradead.org Signed-off-by: Vinod Koul Signed-off-by: Sasha Levin --- drivers/dma/qcom/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/dma/qcom/Kconfig b/drivers/dma/qcom/Kconfig index a7761c4025f4..a97c7123d913 100644 --- a/drivers/dma/qcom/Kconfig +++ b/drivers/dma/qcom/Kconfig @@ -9,6 +9,7 @@ config QCOM_BAM_DMA config QCOM_HIDMA_MGMT tristate "Qualcomm Technologies HIDMA Management support" + depends on HAS_IOMEM select DMA_ENGINE help Enable support for the Qualcomm Technologies HIDMA Management. -- 2.30.2