Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932587AbcCCIG1 (ORCPT ); Thu, 3 Mar 2016 03:06:27 -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 ); Thu, 3 Mar 2016 03:06:19 -0500 MIME-version: 1.0 Content-type: text/plain; charset=UTF-8 X-AuditID: cbfec7f4-f79026d00000418a-6f-56d7f077a903 Content-transfer-encoding: 8BIT From: Krzysztof Kozlowski To: Daniel Lezcano , Thomas Gleixner , Dan Williams , Vinod Koul , Jason Cooper , Marc Zyngier , Mauro Carvalho Chehab , Lee Jones , Giuseppe Cavallaro , Kishon Vijay Abraham I , Linus Walleij , Sebastian Reichel , Dmitry Eremin-Solenikov , David Woodhouse , Alessandro Zummo , Alexandre Belloni , Andy Gross , David Brown , Laurent Pinchart , Greg Kroah-Hartman , 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 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: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1446 Lines: 38 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 Fixes: c89c0114955a ("mfd: syscon: Set regmap max_register in of_syscon_register") Signed-off-by: Krzysztof Kozlowski --- drivers/mfd/Kconfig | 1 + 1 file changed, 1 insertion(+) 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 -- 2.5.0