From patchwork Fri Jan 9 16:04:36 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 5601651 Return-Path: X-Original-To: patchwork-linux-samsung-soc@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 38B75C058D for ; Fri, 9 Jan 2015 16:04:57 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5E151205DA for ; Fri, 9 Jan 2015 16:04:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 42703204FC for ; Fri, 9 Jan 2015 16:04:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754893AbbAIQEy (ORCPT ); Fri, 9 Jan 2015 11:04:54 -0500 Received: from mailout3.w1.samsung.com ([210.118.77.13]:36283 "EHLO mailout3.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752293AbbAIQEx (ORCPT ); Fri, 9 Jan 2015 11:04:53 -0500 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout3.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NHX00NJ43IV44A0@mailout3.w1.samsung.com>; Fri, 09 Jan 2015 16:08:55 +0000 (GMT) X-AuditID: cbfec7f4-b7f126d000001e9a-a8-54affc220cdf Received: from eusync1.samsung.com ( [203.254.199.211]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id 30.66.07834.22CFFA45; Fri, 09 Jan 2015 16:04:50 +0000 (GMT) Received: from AMDC1943.digital.local ([106.116.151.171]) by eusync1.samsung.com (Oracle Communications Messaging Server 7u4-23.01(7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTPA id <0NHX00CXI3BVCD60@eusync1.samsung.com>; Fri, 09 Jan 2015 16:04:50 +0000 (GMT) From: Krzysztof Kozlowski To: Kukjin Kim , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [RESEND PATCH] ARM: EXYNOS: Add missing static to file-scope declarations Date: Fri, 09 Jan 2015 17:04:36 +0100 Message-id: <1420819476-23344-1-git-send-email-k.kozlowski@samsung.com> X-Mailer: git-send-email 1.9.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrHJMWRmVeSWpSXmKPExsVy+t/xy7pKf9aHGCyYZm3x+oWhRf/j18wW mx5fY7W4vGsOm8WM8/uYHFg9Nq3qZPPYvKTeo2/LKkaPz5vkAliiuGxSUnMyy1KL9O0SuDJe nTjNVHCOt+LhisMsDYyXubsYOTkkBEwk3rw7xgxhi0lcuLeerYuRi0NIYCmjxL3n+5khnD4m iS2da9lBqtgEjCU2L18CViUi0MUoMWvLbzaQBLOAocTPd3/AioQFQiTWTF8PFmcRUJV4cmU+ I4jNK+Au0fH8NxPEOjmJk8cms05g5F7AyLCKUTS1NLmgOCk911CvODG3uDQvXS85P3cTIyQM vuxgXHzM6hCjAAejEg/vDtX1IUKsiWXFlbmHGCU4mJVEeBs2A4V4UxIrq1KL8uOLSnNSiw8x MnFwSjUwCmrdlJn2QtY03LCyliEyfOvVNzt4jP5WL4g6kPxKoTvTzX7CzGkzzpi9kbLrn3+E rdVg8dZ9k558DfCU5Toq/WHZQUUpA1HVoqSD1y95ZO7Jje1XfHW/1XF707ZlG56YOj5vy/0W V/bjZWX1lXUJRYu2X0gtSmUU1pCoKNFo5J2vXzw3a1uoEktxRqKhFnNRcSIAZn4ihOEBAAA= 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=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_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 The 'pm_data', 'exynos_release_ret_regs' and 'exynos5420_release_ret_regs' are not exported nor used outside of suspend.c file. Make them static. This fixes following sparse warnings: arch/arm/mach-exynos/suspend.c:83:23: warning: symbol 'pm_data' was not declared. Should it be static? arch/arm/mach-exynos/suspend.c:106:14: warning: symbol 'exynos_release_ret_regs' was not declared. Should it be static? arch/arm/mach-exynos/suspend.c:117:14: warning: symbol 'exynos5420_release_ret_regs' was not declared. Should it be static? Signed-off-by: Krzysztof Kozlowski --- arch/arm/mach-exynos/suspend.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-exynos/suspend.c b/arch/arm/mach-exynos/suspend.c index 342797b9bf3b..fef091f8e59f 100644 --- a/arch/arm/mach-exynos/suspend.c +++ b/arch/arm/mach-exynos/suspend.c @@ -75,7 +75,7 @@ struct exynos_pm_data { int (*cpu_suspend)(unsigned long); }; -struct exynos_pm_data *pm_data; +static struct exynos_pm_data *pm_data; static int exynos5420_cpu_state; static unsigned int exynos_pmu_spare3; @@ -98,7 +98,7 @@ static const struct exynos_wkup_irq exynos5250_wkup_irq[] = { { /* sentinel */ }, }; -unsigned int exynos_release_ret_regs[] = { +static unsigned int exynos_release_ret_regs[] = { S5P_PAD_RET_MAUDIO_OPTION, S5P_PAD_RET_GPIO_OPTION, S5P_PAD_RET_UART_OPTION, @@ -109,7 +109,7 @@ unsigned int exynos_release_ret_regs[] = { REG_TABLE_END, }; -unsigned int exynos5420_release_ret_regs[] = { +static unsigned int exynos5420_release_ret_regs[] = { EXYNOS_PAD_RET_DRAM_OPTION, EXYNOS_PAD_RET_MAUDIO_OPTION, EXYNOS_PAD_RET_JTAG_OPTION,