Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965920AbbBCEKI (ORCPT ); Mon, 2 Feb 2015 23:10:08 -0500 Received: from mailout1.samsung.com ([203.254.224.24]:33592 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964800AbbBCEKF (ORCPT ); Mon, 2 Feb 2015 23:10:05 -0500 X-AuditID: cbfee691-f79b86d000004a5a-84-54d04a1b22d6 From: Kukjin Kim To: "'Krzysztof Kozlowski'" , "'Kukjin Kim'" , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org References: <1420819476-23344-1-git-send-email-k.kozlowski@samsung.com> In-reply-to: <1420819476-23344-1-git-send-email-k.kozlowski@samsung.com> Subject: RE: [RESEND PATCH] ARM: EXYNOS: Add missing static to file-scope declarations Date: Tue, 03 Feb 2015 13:10:02 +0900 Message-id: <06c201d03f67$48da45b0$da8ed110$@kernel.org> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Mailer: Microsoft Outlook 14.0 Thread-index: AQKKlAoBmBNmNWpo7JPhagSmg87oX5tppB6A Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrEIsWRmVeSWpSXmKPExsVy+t8zA11prwshBhO+clm8fmFo0f/4NbPF psfXWC0u75rDZjHj/D4mB1aPTas62Tw2L6n36NuyitHj8ya5AJYoLpuU1JzMstQifbsEroxt Z/ewFjzgr5hyI7OBcRJvFyMnh4SAicSm3y+YIGwxiQv31rN1MXJxCAksY5SYtf0fSxcjB1jR yQ8SEPHpjBIn991lBmkQEvjLKHG7Vwikhk1AWaKxSR8kLCygJbFwSxMLSL2IwH5GiTM7vjNB 1LtLnHt8nB3E5hTwkJhzbRcTSK+wQITE7HcaIGEWAVWJHWfmsYDYvAIWEkc/rGGFsAUlfky+ BxZnBpq/fudxJghbXmLzmrfMEPcrSOw4+5oRxBYRMJJo+/eGDaJG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MZoCfTqRWUo0 OR+YkPJK4g2NTcyMLI3MLIxMzM2VxHmV7NtChATSE0tSs1NTC1KLYPqYODilGhj5j3m7WN5e 83RH/9+LxhGCsuw9Jw6J7eys+33sxvU4timZldePxz97zb728YygLbFvjqXPNXl++L3jk599 qidWukevdCg4nvpZb7Ho+oPps1xXpas7J057k9je2ZYu+LPv6m+pb9fuit6vVWd5EutswHbj Bff1HIuonPPTdBabMBfIRm9cuNhZiaU4I9FQi7moOBEA9C+hNRADAAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2201 Lines: 65 Krzysztof Kozlowski wrote: > > 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, > -- Looks ok to me, how about re-spin this patch including following? ... +static unsigned int exynos3250_release_ret_regs[] = { ... Thanks, Kukjin -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/