Message ID | 1456992221-26712-16-git-send-email-k.kozlowski@samsung.com (mailing list archive) |
---|---|
State | RFC |
Headers | show
Return-Path: <dmaengine-owner@kernel.org> X-Original-To: patchwork-dmaengine@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 56316C0553 for <patchwork-dmaengine@patchwork.kernel.org>; Thu, 3 Mar 2016 08:07:02 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9505E200E7 for <patchwork-dmaengine@patchwork.kernel.org>; Thu, 3 Mar 2016 08:06:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 69EBE20109 for <patchwork-dmaengine@patchwork.kernel.org>; Thu, 3 Mar 2016 08:06:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932545AbcCCIGX (ORCPT <rfc822;patchwork-dmaengine@patchwork.kernel.org>); Thu, 3 Mar 2016 03:06:23 -0500 Received: from mailout3.w1.samsung.com ([210.118.77.13]:55598 "EHLO mailout3.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932538AbcCCIGT (ORCPT <rfc822;dmaengine@vger.kernel.org>); Thu, 3 Mar 2016 03:06:19 -0500 MIME-version: 1.0 Content-type: text/plain; charset=UTF-8 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout3.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0O3G007KTEIF0X90@mailout3.w1.samsung.com>; Thu, 03 Mar 2016 08:06:16 +0000 (GMT) X-AuditID: cbfec7f4-f79026d00000418a-6f-56d7f077a903 Received: from eusync2.samsung.com ( [203.254.199.212]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id 57.45.16778.770F7D65; Thu, 3 Mar 2016 08:06:15 +0000 (GMT) Content-transfer-encoding: 8BIT Received: from localhost.localdomain ([10.113.63.52]) by eusync2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0O3G00LZ4EEDHR70@eusync2.samsung.com>; Thu, 03 Mar 2016 08:06:15 +0000 (GMT) From: Krzysztof Kozlowski <k.kozlowski@samsung.com> To: Daniel Lezcano <daniel.lezcano@linaro.org>, Thomas Gleixner <tglx@linutronix.de>, Dan Williams <dan.j.williams@intel.com>, Vinod Koul <vinod.koul@intel.com>, Jason Cooper <jason@lakedaemon.net>, Marc Zyngier <marc.zyngier@arm.com>, Mauro Carvalho Chehab <mchehab@osg.samsung.com>, Lee Jones <lee.jones@linaro.org>, Giuseppe Cavallaro <peppe.cavallaro@st.com>, Kishon Vijay Abraham I <kishon@ti.com>, Linus Walleij <linus.walleij@linaro.org>, Sebastian Reichel <sre@kernel.org>, Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>, David Woodhouse <dwmw2@infradead.org>, Alessandro Zummo <a.zummo@towertech.it>, Alexandre Belloni <alexandre.belloni@free-electrons.com>, Andy Gross <andy.gross@linaro.org>, David Brown <david.brown@linaro.org>, Laurent Pinchart <laurent.pinchart@ideasonboard.com>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org, linux-media@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, netdev@vger.kernel.org, linux-gpio@vger.kernel.org, linux-pm@vger.kernel.org, rtc-linux@googlegroups.com, linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, devel@driverdev.osuosl.org, linux-usb@vger.kernel.org Cc: Krzysztof Kozlowski <k.kozlowski@samsung.com> Subject: [RFC 15/15] mfd: syscon: Fix build of missing ioremap on UM Date: Thu, 03 Mar 2016 17:03:41 +0900 Message-id: <1456992221-26712-16-git-send-email-k.kozlowski@samsung.com> X-Mailer: git-send-email 2.5.0 In-reply-to: <1456992221-26712-1-git-send-email-k.kozlowski@samsung.com> References: <1456992221-26712-1-git-send-email-k.kozlowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA01SaUiTcRzuv/fdu3fa4G2Z/jM6GGZlZA398FOygopesA9FIuUXW/qi4TU2 ryJoMjQ1NadZudQ85q1Zm4ab5sI8sMOzPNKMyMQ7QaXLI6dFfnt4jt/zfPjRhFjDt6evhoZz ilBZsISyIl8vt747FDXb530kb3wP6LreCyC+t4AHK20ucD+jE0HO3E6YzE1GkDbyjYD6N78E UJ6xxAdNaToB6oIqCmJ0PSRMjkmh82sSBQkanQA+LTQjuLtYzAP9l95Vr/mtAAyPFhH0mLIo SHpSw4e55CYEDzoaeDBR9AVBflEsAUtDyxSUj0ZDS64trEzWIDAnxCN4XRcOBn0GAeMpZvKE hK3IqUDscMNLkh3RdyHWqP0oYOs1bRT7MD6TzxpKnNiC+nEeqy9LoFjViw6SHeqtp9iZ9nYB a86uELAG3U22+s5qKKW6DJ2z8bE66s8FX43kFIePXbYK7P5QyJO3W0cP1N0iVWhcmIiENGZc 8dTsPH8d2+LO4SoqEVnRYqYQYc1sFrIIImYL/pE+TCYimiaY3bipO8hCE8w+nJaTT6z7VxCO jWugLALFuGBDsW7tkA0zLcTDxlTeekKKf84sCix4K3MKp9YWrhWQzF5ccW/qbxmLRwdeUZYy zOzCuZ0BFlq4SvdmN62dETNn8OhcJZWKGO2Gedr/87Qb5uUiogxt4yL85MorASFSZ6UsRBkR GuDsFxaiR+uPMl+LClrcGxFDI8lmUb+qz1vMl0Uqr4U0IkwTEhtR68gqJfKXXbvOKcJ8FRHB nLIR7aBJiZ0o2/TNS8wEyMK5II6Tc4p/Ko8W2qtQyWe154STWu0hfBroXmjq/6rxNWZ5VAa5 umUONjs7FF+6W1Jm6on2dMVuPs/LZ0+Wltz2b1nw7rtw1sEUaMtXdE1/XPK6eF6u8nwcE9Ns zGvu9jpgN7bJVTq4fdTpu5/m9Gm59fRi3EG7RvVv43GZo9ezNzfC4iKj7FPNjjrtwn4JqQyU SZ0IhVL2B2l2iCAkAwAA Sender: dmaengine-owner@vger.kernel.org Precedence: bulk List-ID: <dmaengine.vger.kernel.org> X-Mailing-List: dmaengine@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig index aa21dc55eb15..2e5b1e525a1d 100644 --- a/drivers/mfd/Kconfig +++ b/drivers/mfd/Kconfig @@ -1034,6 +1034,7 @@ config MFD_SUN6I_PRCM config MFD_SYSCON bool "System Controller Register R/W Based on Regmap" + depends on HAS_IOMEM select REGMAP_MMIO help Select this option to enable accessing system control registers
Since commit c89c0114955a ("mfd: syscon: Set regmap max_register in of_syscon_register") the syscon uses ioremap so it fails on COMPILE_TEST without HAS_IOMEM: drivers/mfd/syscon.c: In function ‘of_syscon_register’: drivers/mfd/syscon.c:67:9: error: implicit declaration of function ‘ioremap’ [-Werror=implicit-function-declaration] base = ioremap(res.start, resource_size(&res)); ^ drivers/mfd/syscon.c:67:7: warning: assignment makes pointer from integer without a cast [-Wint-conversion] base = ioremap(res.start, resource_size(&res)); ^ drivers/mfd/syscon.c:109:2: error: implicit declaration of function ‘iounmap’ [-Werror=implicit-function-declaration] iounmap(base); When selecting MFD_SYSCON, depend on HAS_IOMEM to avoid unmet direct dependencies. Reported-by: kbuild test robot <lkp@intel.com> Fixes: c89c0114955a ("mfd: syscon: Set regmap max_register in of_syscon_register") Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com> --- drivers/mfd/Kconfig | 1 + 1 file changed, 1 insertion(+)