From patchwork Fri Jul 10 10:20:58 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 6764581 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id ED2049F319 for ; Fri, 10 Jul 2015 10:21:08 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1F2E520721 for ; Fri, 10 Jul 2015 10:21:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D022A20715 for ; Fri, 10 Jul 2015 10:21:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753372AbbGJKVE (ORCPT ); Fri, 10 Jul 2015 06:21:04 -0400 Received: from mailout3.w1.samsung.com ([210.118.77.13]:22218 "EHLO mailout3.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752920AbbGJKVD (ORCPT ); Fri, 10 Jul 2015 06:21:03 -0400 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 <0NR900C59OR0M290@mailout3.w1.samsung.com>; Fri, 10 Jul 2015 11:21:00 +0100 (BST) X-AuditID: cbfec7f4-f79c56d0000012ee-8c-559f9c8b281d Received: from eusync4.samsung.com ( [203.254.199.214]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id B5.E6.04846.B8C9F955; Fri, 10 Jul 2015 11:20:59 +0100 (BST) Received: from localhost.localdomain ([10.252.80.64]) by eusync4.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0NR900BDCOQT4BA0@eusync4.samsung.com>; Fri, 10 Jul 2015 11:20:59 +0100 (BST) From: Krzysztof Kozlowski To: Kukjin Kim , Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] ARM: EXYNOS: Use IOMEM_ERR_PTR when function returns iomem Date: Fri, 10 Jul 2015 19:20:58 +0900 Message-id: <1436523658-11182-1-git-send-email-k.kozlowski@samsung.com> X-Mailer: git-send-email 1.9.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrLJMWRmVeSWpSXmKPExsVy+t/xa7o9c+aHGjQxWbx+YWjR//g1s8Wm x9dYLS7vmsNmMeP8PiYHVo9NqzrZPDYvqffo27KK0ePzJrkAligum5TUnMyy1CJ9uwSujFOP zjIX/GKvuLe2qoHxMVsXIyeHhICJxKMXPcwQtpjEhXvrweJCAksZJc4+Eepi5AKy/wPZuy6z gCTYBIwlNi9fwgaSEBHYyyhxbvN7JpCEsIC3xJ4Jb8AmsQioSmx+NA9sEq+Au8S6V7NYIDbI SZw8Npl1AiPXAkaGVYyiqaXJBcVJ6bmGesWJucWleel6yfm5mxghnv6yg3HxMatDjAIcjEo8 vAFs80OFWBPLiitzDzFKcDArifAmtgCFeFMSK6tSi/Lji0pzUosPMUpzsCiJ887d9T5ESCA9 sSQ1OzW1ILUIJsvEwSnVwDjjacxM9lT5ZPlUrR6DOfPnv5/xfoFNz+qbF5eaG078cmblrJLv eUfFWP9096Wz1d5OCXbJfndq7+HLG+puNaW3a3/j/V4/daXbFqWFVQJPbvA86rDy//z3yU1m r01WN8yCzUXUw57GXGL+v3P/LLl7qke2uoqmxC3Pnf1Jf9GWpcVzHNzkn6YosRRnJBpqMRcV JwIASWw9+PABAAA= Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-7.5 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 Function returns 'void __iomem *' so use IOMEM_ERR_PTR for returning an error. This fixes sparse warning: arch/arm/mach-exynos/platsmp.c:185:31: warning: incorrect type in return expression (different address spaces) arch/arm/mach-exynos/platsmp.c:185:31: expected void [noderef] * arch/arm/mach-exynos/platsmp.c:185:31: got void * Signed-off-by: Krzysztof Kozlowski --- arch/arm/mach-exynos/platsmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-exynos/platsmp.c b/arch/arm/mach-exynos/platsmp.c index 58e05a2eae57..98a2c0cbb833 100644 --- a/arch/arm/mach-exynos/platsmp.c +++ b/arch/arm/mach-exynos/platsmp.c @@ -182,7 +182,7 @@ static inline void __iomem *cpu_boot_reg(int cpu) boot_reg = cpu_boot_reg_base(); if (!boot_reg) - return ERR_PTR(-ENODEV); + return IOMEM_ERR_PTR(-ENODEV); if (soc_is_exynos4412()) boot_reg += 4*cpu; else if (soc_is_exynos5420() || soc_is_exynos5800())