Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754557AbbBCIGV (ORCPT ); Tue, 3 Feb 2015 03:06:21 -0500 Received: from mailout3.w1.samsung.com ([210.118.77.13]:20578 "EHLO mailout3.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751591AbbBCIGT (ORCPT ); Tue, 3 Feb 2015 03:06:19 -0500 X-AuditID: cbfec7f4-b7f126d000001e9a-65-54d080e5654a Message-id: <1422950773.10086.1.camel@AMDC1943> Subject: Re: [RESEND PATCH] ARM: EXYNOS: Add missing static to file-scope declarations From: Krzysztof Kozlowski To: Kukjin Kim Cc: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Date: Tue, 03 Feb 2015 09:06:13 +0100 In-reply-to: <06c201d03f67$48da45b0$da8ed110$@kernel.org> References: <1420819476-23344-1-git-send-email-k.kozlowski@samsung.com> <06c201d03f67$48da45b0$da8ed110$@kernel.org> Content-type: text/plain; charset=UTF-8 X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-version: 1.0 Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrALMWRmVeSWpSXmKPExsVy+t/xy7pPGy6EGJw8LW7R//g1s8Wmx9dY LS7vmsNmMeP8PiYHFo9NqzrZPDYvqff4vEkugDmKyyYlNSezLLVI3y6BK2NT+z/2gouCFcca 3rM1MK7l62Lk5JAQMJFYd+s/E4QtJnHh3nq2LkYuDiGBpYwS269+ZgNJCAl8ZpT4tUscxOYV 0Jd4+/syI4gtLBAhcWHBBzCbTcBYYvPyJUD1HBwiAooSmxcogJjMAtkSW16BjWcRUJXY/nsm 2EROAUuJc39eM0NML5NYe6GVBcRmFlCXmDRvETNIq4SAskRjvxvEUkGJH5PvQZXIS2xe85Z5 AqPALCQds5CUzUJStoCReRWjaGppckFxUnquoV5xYm5xaV66XnJ+7iZGSKh+2cG4+JjVIUYB DkYlHt4VRhdChFgTy4orcw8xSnAwK4nw6uYDhXhTEiurUovy44tKc1KLDzEycXBKNTCK7bip WLX7bcS2I13/HoSanjfYJem+/O/7gD3iF1wVfpY2T97LNqOcO3vBe4n3CwU0HuZk9K99VcEg MZk98dayMO/MVp4ctQqjnG7xj2/PTXid3v5d5NiD+aGWO5a8/W4yf92JzpDLZ01/e5VNf+bE Ell7O9zMd8PvdS/Du8zKFplEfZ7AdlZGiaU4I9FQi7moOBEAnqVpojMCAAA= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2435 Lines: 72 On wto, 2015-02-03 at 13:10 +0900, Kukjin Kim wrote: > 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[] = { Sure, I'll resend extended version. Best regards, Krzysztof > ... > > 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/