Skip to content

Commit 09ca62f

Browse files
bjdooks-ctjoyxu
authored andcommitted
ARM: hisi: make unexported symbols static
The two functions hix5hd2_set_scu_boot_addr() and hip01_set_boot_addr() are not declared or exported outside arch/arm/mach-hisi/platsmp.c file. Avoid the following warnings by making them static: arch/arm/mach-hisi/platsmp.c:142:6: warning: symbol 'hip01_set_boot_addr' was not declared. Should it be static? arch/arm/mach-hisi/platsmp.c:106:6: warning: symbol 'hix5hd2_set_scu_boot_addr' was not declared. Should it be static? Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk> Signed-off-by: Wei Xu <xuwei5@hisilicon.com>
1 parent 1a695a9 commit 09ca62f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/arm/mach-hisi/platsmp.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ static void __init hisi_common_smp_prepare_cpus(unsigned int max_cpus)
103103
hisi_enable_scu_a9();
104104
}
105105

106-
void hix5hd2_set_scu_boot_addr(phys_addr_t start_addr, phys_addr_t jump_addr)
106+
static void hix5hd2_set_scu_boot_addr(phys_addr_t start_addr, phys_addr_t jump_addr)
107107
{
108108
void __iomem *virt;
109109

@@ -139,7 +139,7 @@ static const struct smp_operations hix5hd2_smp_ops __initconst = {
139139
#define HIP01_BOOT_ADDRESS 0x80000000
140140
#define REG_SC_CTRL 0x000
141141

142-
void hip01_set_boot_addr(phys_addr_t start_addr, phys_addr_t jump_addr)
142+
static void hip01_set_boot_addr(phys_addr_t start_addr, phys_addr_t jump_addr)
143143
{
144144
void __iomem *virt;
145145

0 commit comments

Comments
 (0)