Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp649394imp; Thu, 21 Feb 2019 08:27:24 -0800 (PST) X-Google-Smtp-Source: AHgI3IbRFwWMLlifx9qHIyLsizzhPT3rvYvPClSCGF/3u1GOsMQhQT90rpzbmZQvfpbC+gk3YpkZ X-Received: by 2002:a65:490e:: with SMTP id p14mr35091554pgs.373.1550766444098; Thu, 21 Feb 2019 08:27:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550766444; cv=none; d=google.com; s=arc-20160816; b=URkKDPy8pnU2AOzsvgrmesiKvT5jNL9Op0o7DARH0rApUBEkqJD6SAvCf+AXUHUuud dctcyfV0fVczaaSt0T3gZZP0C4RciQsbNpKLDE5cN/2AGp7vENPB5/9pTBKNcDHXfBDo DuTI89dnNI5vzaVhpzEFJh5QTa6E/nebhu9mWilbm9rfJLAZCAWOL3Oiz2m1j+wWn/jX UpJl5jl1Ra9Z4OnRxBY+67a1a+o2xLLa1+tdHkzN01xY/73NyPePWvbAtz1f/ToZr+sz FqnsikIuReH/+bqUxFAEZ0yRhDAjSVoJDeN/zV63ZrJswCTIP7MxyCKl5MBgaNeVsdsa 6tTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=8jHASHFNH575gLKJTx/QV3Be+6VBLAjZakfImVWb2z0=; b=sT1LiXfJuz3kjgg99lZ+JNnabQi4sBZTr2hygTsNOSZXCPBAVbYr6e4PEi9sepqmVw TgOYSYyf2yPAP49uBPmfpVc2VoiR/damO1DhhOZYtAZQu57bt61+ZbA1SdrclkEA03ZT dreANdnsc0nSAaWXnHyx5eurs6A/S3WbJW7svmEsbHDc3t2htST6SN/oveYLvkxeYkTn xXZp+iYsEu1frhe21mnUBJwbxR112qorZelXJUDr1FwrtOHiFeVRJ7QCRbCvxd7XUC/v Npog7SlpTblwFfHqJlVcoxwKXP/KybADLL7NTjd2iuA9t9SDSSiGQd7nY+R2mXZit2Dh JeFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=ImAtQQdQ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j9si20065317pgp.410.2019.02.21.08.27.08; Thu, 21 Feb 2019 08:27:24 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=ImAtQQdQ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727017AbfBUQ0f (ORCPT + 99 others); Thu, 21 Feb 2019 11:26:35 -0500 Received: from mail-wr1-f67.google.com ([209.85.221.67]:36132 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726220AbfBUQ0f (ORCPT ); Thu, 21 Feb 2019 11:26:35 -0500 Received: by mail-wr1-f67.google.com with SMTP id o17so31310240wrw.3 for ; Thu, 21 Feb 2019 08:26:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=8jHASHFNH575gLKJTx/QV3Be+6VBLAjZakfImVWb2z0=; b=ImAtQQdQOA0M3o5PZRBMkyh3A2WDkOTaHF/PqvUiRg8ZMYfcmsJspdCMRpOBW7xocf 1MPLnLax0RauNFkqZTMAHyAfzuR/ALPDvHOjUHzU5EU7T3GKUA1EbX0oRn/O9iDePNtG kgGXsjC8BBfLqaPRaLHVL7i8vxXo2O1x5nEpgwevco0WIpFStjVbjQKY4tpb39TiiNdz rW8+mCRvAQuaGXIBYi9jTyfLqW0MDU7XPwUNhpAEkGlqVjDVzfsj4n1PYabvZA5hthte ey+cAs+IA5I+dwmrMcpcefWEW692AkamOw1I7l0M9X+PygkZt0SF00kj1WKgpWEuWSK0 txkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=8jHASHFNH575gLKJTx/QV3Be+6VBLAjZakfImVWb2z0=; b=CHH/wpXKUIPUtyXvX2pwr1vad1vjIF85FeGAlKLdZPzc77ekL9UBdU5pobc8s6FfZI cpJDUKWiW9wb8f14byv4xVHqq1yexMOfpUE4nISMQaYJ6bmdFJqMNgC9aTKNOqQCuD7v Zvhz2l1aOXcozbl5TT1DFuGxbpQnaycvOklWHKSuu+d8UMnxc0hw7QWRAsHZSpq92uGu cUQkRuIgUK40wZdXum1+9jclhV1wHbFLHovx6DIRx0G5dsk+Z5pitcZOdSDCf5wFYO+w P4HZPiDBjdklJl7PleR4wPmICV4I4AauB3Av0EvPLMVQ6u0Z96VKPlgLzHpJgWx2xMoQ RbFw== X-Gm-Message-State: AHQUAuadJI743N5WcIR1YbAuYi6d8NoDDzTVI9b9zwqgiR/0WdN2XER0 QCtvspf3CRtYcQ0vj62ua4W6SFClqFE= X-Received: by 2002:adf:ea88:: with SMTP id s8mr20881816wrm.127.1550766393089; Thu, 21 Feb 2019 08:26:33 -0800 (PST) Received: from localhost.localdomain (aputeaux-684-1-31-195.w90-86.abo.wanadoo.fr. [90.86.86.195]) by smtp.gmail.com with ESMTPSA id a8sm14688007wmh.26.2019.02.21.08.26.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Feb 2019 08:26:32 -0800 (PST) From: Bartosz Golaszewski To: Greg Kroah-Hartman , "Rafael J . Wysocki" , Keerthy , Linus Walleij , Andy Shevchenko Cc: linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH] drivers: depend on HAS_IOMEM for devm_platform_ioremap_resource() Date: Thu, 21 Feb 2019 17:26:27 +0100 Message-Id: <20190221162627.3476-1-brgl@bgdev.pl> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bartosz Golaszewski We only build devm_ioremap_resource() if HAS_IOMEM is selected, so this dependency must cascade down to devm_platform_ioremap_resource(). Signed-off-by: Bartosz Golaszewski --- drivers/base/platform.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/base/platform.c b/drivers/base/platform.c index f82691e1c26c..5f837f2e4f41 100644 --- a/drivers/base/platform.c +++ b/drivers/base/platform.c @@ -87,6 +87,7 @@ EXPORT_SYMBOL_GPL(platform_get_resource); * resource managemend * @index: resource index */ +#ifdef CONFIG_HAS_IOMEM void __iomem *devm_platform_ioremap_resource(struct platform_device *pdev, unsigned int index) { @@ -96,6 +97,7 @@ void __iomem *devm_platform_ioremap_resource(struct platform_device *pdev, return devm_ioremap_resource(&pdev->dev, res); } EXPORT_SYMBOL_GPL(devm_platform_ioremap_resource); +#endif /* CONFIG_HAS_IOMEM */ /** * platform_get_irq - get an IRQ for a device -- 2.20.1