summaryrefslogtreecommitdiff
path: root/arch/arm/mach-oxnas/platsmp.c
diff options
context:
space:
mode:
authorMa Feng <mafeng.ma@huawei.com>2020-05-12 09:46:13 +0800
committerNeil Armstrong <narmstrong@baylibre.com>2020-05-12 10:29:33 +0200
commitbd84dff0217414d9f9b829a3b75b2487aff857b7 (patch)
tree799d99561ef1904b10232eb42b2158997d5e88b5 /arch/arm/mach-oxnas/platsmp.c
parent8f3d9f354286745c751374f5f1fcafee6b3f3136 (diff)
ARM: oxnas: make ox820_boot_secondary static
Fix sparse warning: arch/arm/mach-oxnas/platsmp.c:30:12: warning: symbol 'ox820_boot_secondary' was not declared. Should it be static? Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Ma Feng <mafeng.ma@huawei.com> Acked-by: Neil Armstrong <narmstrong@baylibre.com> Fixes: af76e806b5b7 ("ARM: oxnas: Add OX820 SMP support") Signed-off-by: Neil Armstrong <narmstrong@baylibre.com> Link: https://lore.kernel.org/r/1589247973-29728-1-git-send-email-mafeng.ma@huawei.com
Diffstat (limited to 'arch/arm/mach-oxnas/platsmp.c')
-rw-r--r--arch/arm/mach-oxnas/platsmp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/mach-oxnas/platsmp.c b/arch/arm/mach-oxnas/platsmp.c
index ab35275b7ee3..f0a50b9e61df 100644
--- a/arch/arm/mach-oxnas/platsmp.c
+++ b/arch/arm/mach-oxnas/platsmp.c
@@ -27,7 +27,8 @@ static void __iomem *gic_cpu_ctrl;
#define GIC_CPU_CTRL 0x00
#define GIC_CPU_CTRL_ENABLE 1
-int __init ox820_boot_secondary(unsigned int cpu, struct task_struct *idle)
+static int __init ox820_boot_secondary(unsigned int cpu,
+ struct task_struct *idle)
{
/*
* Write the address of secondary startup into the