ARM: sti: Staticize local variables
Subsystems (6)
PATCH RESEND 1/8 ARM: sti: Staticize local variables
From: Sachin Kamat <[email protected]>
Symbols local to this file are made static.
--- arch/arm/mach-sti/platsmp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
arch/arm/mach-sti/platsmp.c +3 -3
@@ -36,7 +36,7 @@ static void write_pen_release(int val)static DEFINE_SPINLOCK (boot_lock); -void sti_secondary_init (unsigned int cpu) +static void sti_secondary_init (unsigned int cpu) {trace_hardirqs_off ();
@@ -53,7 +53,7 @@ void sti_secondary_init(unsigned int cpu)spin_unlock (&boot_lock); } -int sti_boot_secondary (unsigned int cpu,struct task_struct *idle) +static int sti_boot_secondary (unsigned int cpu,struct task_struct *idle) {unsigned long timeout;
@@ -97,7 +97,7 @@ int sti_boot_secondary(unsigned int cpu, struct task_struct *idle)return pen_release !=-1 ? -ENOSYS :0 ; } -void __init sti_smp_prepare_cpus (unsigned int max_cpus) +static void __init sti_smp_prepare_cpus (unsigned int max_cpus) {void __iomem *scu_base =NULL ; struct device_node *np = of_find_compatible_node(
Signature · 1 line
1.7.9.5
PATCH RESEND 2/8 ARM: mvebu: Staticize armada_375_smp_cpu1_enable_wa
From: Sachin Kamat <[email protected]>
'armada_375_smp_cpu1_enable_wa' is local to this file.
--- arch/arm/mach-mvebu/platsmp-a9.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-mvebu/platsmp-a9.c +1 -1
@@ -33,7 +33,7 @@extern unsigned char armada_375_smp_cpu1_enable_code_end;extern unsigned char armada_375_smp_cpu1_enable_code_start; -void armada_375_smp_cpu1_enable_wa (void ) +static void armada_375_smp_cpu1_enable_wa (void ) {void __iomem *sram_virt_base;
Signature · 1 line
1.7.9.5
PATCH RESEND 2/8 ARM: mvebu: Staticize armada_375_smp_cpu1_enable_wa
Quoted 10 lines · Sachin Kamat
From: Sachin Kamat <[email protected]>
'
armada_375_smp_cpu1_enable_wa' is local to this file.Signed-off-by Sachin Kamat <[email protected]>Signed-off-by Sachin Kamat <[email protected]>Cc Jason Cooper <[email protected]>Cc Andrew Lunn <[email protected]>Cc Gregory Clement <[email protected]>Cc Sebastian Hesselbarth <[email protected]>
Quoted 3 lines
--- arch/arm/mach-mvebu/platsmp-a9.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
patches 2, 3, and 4 applied to mvebu/soc
thx,
Jason.
PATCH 3/8 ARM: mvebu: Staticize armada_370_xp_cpu_pm_init
In reply to Sachin KamatFrom: Sachin Kamat <[email protected]>
'armada_370_xp_cpu_pm_init' is local to this file.
--- arch/arm/mach-mvebu/pmsu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-mvebu/pmsu.c +1 -1
@@ -258,7 +258,7 @@ static struct notifier_block armada_370_xp_cpu_pm_notifier = { .notifier_call = armada_370_xp_cpu_pm_notify, }; -int __init armada_370_xp_cpu_pm_init (void ) +static int __init armada_370_xp_cpu_pm_init (void ) {struct device_node *np;
Signature · 1 line
1.7.9.5
PATCH 4/8 ARM: mvebu: Staticize mvebu_cpu_reset_init
In reply to Sachin KamatFrom: Sachin Kamat <[email protected]>
'mvebu_cpu_reset_init' is local to this file.
--- arch/arm/mach-mvebu/cpu-reset.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-mvebu/cpu-reset.c +1 -1
@@ -67,7 +67,7 @@ static int mvebu_cpu_reset_map(struct device_node *np, int res_idx)return 0 ; } -int __init mvebu_cpu_reset_init (void ) +static int __init mvebu_cpu_reset_init (void ) {struct device_node *np;int res_idx;
Signature · 1 line
1.7.9.5
PATCH 5/8 ARM: vt8500: Staticize local symbols
In reply to Sachin KamatFrom: Sachin Kamat <[email protected]>
Variables local to this file are made static.
--- arch/arm/mach-vt8500/vt8500.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
arch/arm/mach-vt8500/vt8500.c +3 -3
@@ -44,7 +44,7 @@static void __iomem *pmc_base; -void vt8500_restart (enum reboot_mode mode,const char *cmd) +static void vt8500_restart (enum reboot_mode mode,const char *cmd) {if (pmc_base)writel (1 , pmc_base +VT8500_PMSR_REG );
@@ -60,7 +60,7 @@ static struct map_desc vt8500_io_desc[] __initdata = { }, }; -void __init vt8500_map_io (void ) +static void __init vt8500_map_io (void ) {iotable_init (vt8500_io_desc,ARRAY_SIZE (vt8500_io_desc)); }
@@ -72,7 +72,7 @@ static void vt8500_power_off(void) asm("mcr%? p15, 0, %0, c7, c0, 4" : :"r" (0 )); } -void __init vt8500_init (void ) +static void __init vt8500_init (void ) {struct device_node *np;#if defined(CONFIG_FB_VT8500 ) || defined(CONFIG_FB_WM8505 )
Signature · 1 line
1.7.9.5
PATCH 6/8 ARM: spear: Staticize spear13xx_io_desc
In reply to Sachin KamatFrom: Sachin Kamat <[email protected]>
'spear13xx_io_desc' is used only in this file.
--- arch/arm/mach-spear/spear13xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-spear/spear13xx.c +1 -1
@@ -57,7 +57,7 @@ void __init spear13xx_l2x0_init(void)* 0xEC000000 0xFC000000 * 0xED000000 0xFB000000 */ -struct map_desc spear13xx_io_desc[]__initdata = { +static struct map_desc spear13xx_io_desc[]__initdata = { { .virtual = (unsigned long )VA_PERIP_GRP2_BASE , .pfn =__phys_to_pfn (PERIP_GRP2_BASE ),
Signature · 1 line
1.7.9.5
PATCH 7/8 ARM: spear: Staticize spear1310_io_desc in spear1310.c
In reply to Sachin KamatFrom: Sachin Kamat <[email protected]>
'spear1310_io_desc' is used only in this file.
--- arch/arm/mach-spear/spear1310.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-spear/spear1310.c +1 -1
@@ -42,7 +42,7 @@ static const char * const spear1310_dt_board_compat[] = {* PHYSICAL VIRTUAL * 0xD8000000 0xFA000000 */ -struct map_desc spear1310_io_desc[]__initdata = { +static struct map_desc spear1310_io_desc[]__initdata = { { .virtual =VA_SPEAR1310_RAS_GRP1_BASE , .pfn =__phys_to_pfn (SPEAR1310_RAS_GRP1_BASE ),
Signature · 1 line
1.7.9.5
PATCH 8/8 ARM: spear: Staticize local symbols in spear1340.c
In reply to Sachin KamatFrom: Sachin Kamat <[email protected]>
Symbols local to this file are made static.
--- arch/arm/mach-spear/spear1340.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
arch/arm/mach-spear/spear1340.c +3 -3
@@ -93,7 +93,7 @@ static int sata_miphy_init(struct device *dev, void __iomem *addr)return 0 ; } -void sata_miphy_exit (struct device *dev) +static void sata_miphy_exit (struct device *dev) {writel (0 ,SPEAR1340_PCIE_SATA_CFG );writel (0 ,SPEAR1340_PCIE_MIPHY_CFG );
@@ -107,7 +107,7 @@ void sata_miphy_exit(struct device *dev)msleep (20 ); } -int sata_suspend (struct device *dev) +static int sata_suspend (struct device *dev) {if (dev->power.power_state.event ==PM_EVENT_FREEZE )return 0 ;
@@ -117,7 +117,7 @@ int sata_suspend(struct device *dev)return 0 ; } -int sata_resume (struct device *dev) +static int sata_resume (struct device *dev) {if (dev->power.power_state.event ==PM_EVENT_THAW )return 0 ;
Signature · 1 line
1.7.9.5
PATCH RESEND 1/8 ARM: sti: Staticize local variables
In reply to Sachin KamatHi Arnd,
Quoted 46 lines · Sachin Kamat
From: Sachin Kamat <[email protected]>
Symbols local to this file are made static.
Signed-off-by Sachin Kamat <[email protected]>Signed-off-by Sachin Kamat <[email protected]>Acked-by Patrice Chotard <[email protected]>Cc kernel at stlinux.comCc Srinivas Kandagatla <[email protected]>Cc Maxime Coquelin <[email protected]>--- arch/arm/mach-sti/platsmp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)arch/arm/mach-sti/platsmp.c +3
-4@@ -36,7 +36,7 @@ static void write_pen_release(int val)static DEFINE_SPINLOCK (boot_lock); -void sti_secondary_init (unsigned int cpu) +static void sti_secondary_init (unsigned int cpu) {trace_hardirqs_off ();@@ -53,7 +53,7 @@ void sti_secondary_init(unsigned int cpu)spin_unlock (&boot_lock); } -int sti_boot_secondary (unsigned int cpu,struct task_struct *idle) +static int sti_boot_secondary (unsigned int cpu,struct task_struct *idle) {unsigned long timeout;@@ -97,7 +97,7 @@ int sti_boot_secondary(unsigned int cpu, struct task_struct *idle)return pen_release !=-1 ? -ENOSYS :0 ; } -void __init sti_smp_prepare_cpus (unsigned int max_cpus) +static void __init sti_smp_prepare_cpus (unsigned int max_cpus) {void __iomem *scu_base =NULL ; struct device_node *np = of_find_compatible_node( --
Quoted 2 lines
1.7.9.5
Gentle Ping.
Please note that patches 2, 3, and 4 have been applied to mvebu/soc tree.
Signature · 2 lines
Regards, Sachin.
PATCH RESEND 1/8 ARM: sti: Staticize local variables
Quoted 2 lines · Sachin Kamat
Gentle Ping.
Please note that patches 2, 3, and 4 have been applied to mvebu/soc tree.
Applied the others to next/cleanup. Thanks.
-Olof