Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757703AbaD3HRg (ORCPT ); Wed, 30 Apr 2014 03:17:36 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:41602 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751426AbaD3HRe convert rfc822-to-8bit (ORCPT ); Wed, 30 Apr 2014 03:17:34 -0400 X-AuditID: cbfee690-b7fcd6d0000026e0-36-5360a38c983e MIME-version: 1.0 Content-type: text/plain; charset=UTF-8; format=flowed Content-transfer-encoding: 8BIT Message-id: <5360A7C8.1080407@samsung.com> Date: Wed, 30 Apr 2014 16:35:36 +0900 From: Pankaj Dubey User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130308 Thunderbird/17.0.4 To: Sachin Kamat Cc: linux-samsung-soc , LKML , linux-arm-kernel , Kukjin Kim , Russell King , Tomasz Figa , chow.kim@samsung.com, Young-Gun Jang , VIKAS SAJJANC Subject: Re: [PATCH v3 01/12] ARM: EXYNOS: Make exynos machine_ops as static References: <1398835057-3860-1-git-send-email-pankaj.dubey@samsung.com> <1398835057-3860-2-git-send-email-pankaj.dubey@samsung.com> In-reply-to: X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrCIsWRmVeSWpSXmKPExsVy+t8zI92exQnBBovmGVosm3SXzaJ3wVU2 i02Pr7FaXN41h81ixvl9TBa3L/NanPzTy2ixfsZrFoubz7YzWexoWc3iwOXR0tzD5nHn2h42 j81L6j36tqxi9Pi8SS6ANYrLJiU1J7MstUjfLoEro3vTVsaCPRIVX1e+ZWpgPCLcxcjJISFg ItHb+ZgNwhaTuHBvPZDNxSEksIxRYtGEHhaYottXv7JDJBYxShzeeYsdJMErICjxY/I9sCJm ATOJRy3rmLsYOYBsEYl/NyQhwtoSyxa+Zobofc0ocWlOOwtEr5ZEX1sHE4jNIqAqsebAHrCZ bAK6Ek/ez2UGsUUFwiQ2Te9jBbFFgOpfdi9n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1g3Flg8UhRgEORiUeXoGt8cFCrIllxZW5hxglOJiVRHgzOhKChXhTEiurUovy 44tKc1KLDzEmA703kVlKNDkfmIzySuINjU3MjCyNzCyMTMzNSRNWEuc90GodKCSQnliSmp2a WpBaBLOFiYNTqoFR4/fV1f2Gj292HBPaGjr9W0XTxXpbNYE1M+d8WXRYRjwrevIDn/tNkber QgLfiHz3NS2+0dcaOel29IfjNQ7zSpdIuFrtuTJDtW3DTS/R1O2WnRWvBZp7Yl/FXErdxXqM 553y2ZCX2ce9bPpi++p+ntNaa7suSHZt60dfmfftxzepcIko2H5XYinOSDTUYi4qTgQAjEep LzwDAAA= 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 Hi Sachin, On 04/30/2014 03:00 PM, Sachin Kamat wrote: > Hi Pankaj, > > On 30 April 2014 10:47, Pankaj Dubey wrote: >> As machine function ops are used only in this file let's make >> them static. >> >> Signed-off-by: Pankaj Dubey >> --- >> arch/arm/mach-exynos/exynos.c | 6 +++--- >> 1 file changed, 3 insertions(+), 3 deletions(-) >> >> diff --git a/arch/arm/mach-exynos/exynos.c b/arch/arm/mach-exynos/exynos.c >> index 3d69e8d..06dcce5 100644 >> --- a/arch/arm/mach-exynos/exynos.c >> +++ b/arch/arm/mach-exynos/exynos.c >> @@ -198,7 +198,7 @@ static struct map_desc exynos5_iodesc[] __initdata = { >> }, >> }; >> >> -void exynos_restart(enum reboot_mode mode, const char *cmd) >> +static void exynos_restart(enum reboot_mode mode, const char *cmd) >> { >> struct device_node *np; >> u32 val = 0x1; >> @@ -239,7 +239,7 @@ void __init exynos_cpufreq_init(void) >> platform_device_register_simple("exynos-cpufreq", -1, NULL, 0); >> } >> >> -void __init exynos_init_late(void) >> +static void __init exynos_init_late(void) >> { >> if (of_machine_is_compatible("samsung,exynos5440")) >> /* to be supported later */ >> @@ -300,7 +300,7 @@ static void __init exynos_map_io(void) >> iotable_init(exynos5250_iodesc, ARRAY_SIZE(exynos5250_iodesc)); >> } >> >> -void __init exynos_init_io(void) >> +static void __init exynos_init_io(void) >> { >> debug_ll_io_init(); > > The declarations from common.h should also be removed in this patch to > avoid the below > build errors: Thanks. I will merge changes in common.h in this patch itself. > > arch/arm/mach-exynos/exynos.c:198:13: error: static declaration of > ‘exynos_restart’ follows non-static declaration > static void exynos_restart(enum reboot_mode mode, const char *cmd) > ^ > In file included from arch/arm/mach-exynos/exynos.c:31:0: > arch/arm/mach-exynos/common.h:22:6: note: previous declaration of > ‘exynos_restart’ was here > void exynos_restart(enum reboot_mode mode, const char *cmd); > ^ > arch/arm/mach-exynos/exynos.c:235:20: error: static declaration of > ‘exynos_init_late’ follows non-static declaration > static void __init exynos_init_late(void) > ^ > In file included from arch/arm/mach-exynos/exynos.c:31:0: > arch/arm/mach-exynos/common.h:25:6: note: previous declaration of > ‘exynos_init_late’ was here > void exynos_init_late(void); > ^ > arch/arm/mach-exynos/exynos.c:296:20: error: static declaration of > ‘exynos_init_io’ follows non-static declaration > static void __init exynos_init_io(void) > ^ > In file included from arch/arm/mach-exynos/exynos.c:31:0: > arch/arm/mach-exynos/common.h:21:6: note: previous declaration of > ‘exynos_init_io’ was here > void exynos_init_io(void); > > -- Best Regards, Pankaj Dubey -- 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/