Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3922958pxj; Mon, 21 Jun 2021 09:27:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwdx4S6wKq1ulYNgdzUfk7djlqSLvg5sN3tsruMcf2gRp+42eBcDJ9VZht5flVpjc5F9KGW X-Received: by 2002:aa7:cc19:: with SMTP id q25mr22574711edt.56.1624292824406; Mon, 21 Jun 2021 09:27:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624292824; cv=none; d=google.com; s=arc-20160816; b=URhA87uLKAH4OGGCM3LkkRvM3qTwUwq+QK50ihNbag+Z9VT3yS8Jz6rKYMXGEuJw3d mXDBG5emkzI+2Oxf9EjkOHn4pOKHg49Vl7M4+Z+FoDG1kOYPJQ/a8qWemlizVAqDocQl 9fylEOHKU3trNeiX9X5hLT9ZjKQdT0S1/ssYGGjKmWZH/iJCsqyguhSzOGTJGKZlaEIM JjKvn7oqJBbK/YlL2H5gmGYlfG21EDH7H76amAgTAgudOLjOrOyOm9dIVldlmpFojm6k GvtI8Xig+Ao/plg9XCmqzEEOZOt231zzu85bfbs5kMqnWQBXFftSILK4mM33INi75ES8 XHbw== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=hAIMTGAWA+c2SthubmQ0ZUVnhqnszLhrMQJIgWhrH4w=; b=gzy/wdy0oqBhDx6HKOrVVNTux3qlgaZwJn/GapDbkgYVXrKkpRFl3bmQhbIunrsGiq U8eb8Lvmg0jeyB2+lvffne74j94uAqrNgffPeDO6TlnhS+Cqput/tD62sp8aQJmUFBAx ZL0UlTNarAu00SLuX1aQsEZ/yp379f/hWCdy4YqusjxI3g3piyolnLWRwpC3daXDCgmv edHN3UmSMeDmiNdz3sDOqhGBMjmP3yQBQ/1JTflQpK0EPwC47as9M1Dk8BT8Nm2G64rh bYqmT81zaqrvqJ2A44mzpWfrSQKeC/NW3ZCIZhYHIXogYK0tEmVrgJau6V5OMUI4Px/6 H88Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=H9yb2jOJ; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v24si11723082ejv.518.2021.06.21.09.26.41; Mon, 21 Jun 2021 09:27:04 -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=@linuxfoundation.org header.s=korg header.b=H9yb2jOJ; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231404AbhFUQ0B (ORCPT + 99 others); Mon, 21 Jun 2021 12:26:01 -0400 Received: from mail.kernel.org ([198.145.29.99]:41712 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230232AbhFUQYX (ORCPT ); Mon, 21 Jun 2021 12:24:23 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3DE4B61261; Mon, 21 Jun 2021 16:21:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1624292474; bh=EVp8eR+0gFf3zeSAS4slZqlAbcbPp7AwdLvUmfBdaSE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=H9yb2jOJR3ZIJFGe/gF04nii4I+tXZ6vW0qb/zHv2cbsluimjL6i1DrUuz0tZGA7+ fMLuO2lUkdbkeEXqRtPsYWNAdGjM2qMqAIjdaxf6gBdnSAtnYMwEnZDfKM4cvifLyf pQ0r8FR9js29vv1f4LQmPhmT4FFcM+lCEnNw3Acg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Randy Dunlap , kernel test robot , Green Wan , Vinod Koul , dmaengine@vger.kernel.org, Sasha Levin Subject: [PATCH 5.10 006/146] dmaengine: SF_PDMA depends on HAS_IOMEM Date: Mon, 21 Jun 2021 18:13:56 +0200 Message-Id: <20210621154911.465543442@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210621154911.244649123@linuxfoundation.org> References: <20210621154911.244649123@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Randy Dunlap [ Upstream commit 8e2e4f3c58528c6040b5762b666734f8cceba568 ] 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. Mends this build error: s390-linux-ld: drivers/dma/sf-pdma/sf-pdma.o: in function `sf_pdma_probe': sf-pdma.c:(.text+0x1668): undefined reference to `devm_ioremap_resource' Fixes: 6973886ad58e ("dmaengine: sf-pdma: add platform DMA support for HiFive Unleashed A00") Signed-off-by: Randy Dunlap Reported-by: kernel test robot Cc: Green Wan Cc: Vinod Koul Cc: dmaengine@vger.kernel.org Link: https://lore.kernel.org/r/20210522021313.16405-4-rdunlap@infradead.org Signed-off-by: Vinod Koul Signed-off-by: Sasha Levin --- drivers/dma/sf-pdma/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/dma/sf-pdma/Kconfig b/drivers/dma/sf-pdma/Kconfig index f8ffa02e279f..ba46a0a15a93 100644 --- a/drivers/dma/sf-pdma/Kconfig +++ b/drivers/dma/sf-pdma/Kconfig @@ -1,5 +1,6 @@ config SF_PDMA tristate "Sifive PDMA controller driver" + depends on HAS_IOMEM select DMA_ENGINE select DMA_VIRTUAL_CHANNELS help -- 2.30.2