Skip to content

Commit 635e958

Browse files
masahir0yarndb
authored andcommitted
ARM: hisi: do not export smp_operations structures
These three structures are only defined and referenced in mach-hisi/platsmp.c. Drop the declarations from the header and add static qualifier to the definitions. Signed-off-by: Masahiro Yamada <[email protected]> Signed-off-by: Arnd Bergmann <[email protected]> Acked-by: Wei Xu <[email protected]>
1 parent 31ade3b commit 635e958

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

arch/arm/mach-hisi/core.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,14 @@
66
extern void hi3xxx_set_cpu_jump(int cpu, void *jump_addr);
77
extern int hi3xxx_get_cpu_jump(int cpu);
88
extern void secondary_startup(void);
9-
extern struct smp_operations hi3xxx_smp_ops;
109

1110
extern void hi3xxx_cpu_die(unsigned int cpu);
1211
extern int hi3xxx_cpu_kill(unsigned int cpu);
1312
extern void hi3xxx_set_cpu(int cpu, bool enable);
1413

15-
extern struct smp_operations hix5hd2_smp_ops;
1614
extern void hix5hd2_set_cpu(int cpu, bool enable);
1715
extern void hix5hd2_cpu_die(unsigned int cpu);
1816

19-
extern struct smp_operations hip01_smp_ops;
2017
extern void hip01_set_cpu(int cpu, bool enable);
2118
extern void hip01_cpu_die(unsigned int cpu);
2219
#endif

arch/arm/mach-hisi/platsmp.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ static int hi3xxx_boot_secondary(unsigned int cpu, struct task_struct *idle)
8989
return 0;
9090
}
9191

92-
struct smp_operations hi3xxx_smp_ops __initdata = {
92+
static struct smp_operations hi3xxx_smp_ops __initdata = {
9393
.smp_prepare_cpus = hi3xxx_smp_prepare_cpus,
9494
.smp_boot_secondary = hi3xxx_boot_secondary,
9595
#ifdef CONFIG_HOTPLUG_CPU
@@ -126,7 +126,7 @@ static int hix5hd2_boot_secondary(unsigned int cpu, struct task_struct *idle)
126126
}
127127

128128

129-
struct smp_operations hix5hd2_smp_ops __initdata = {
129+
static struct smp_operations hix5hd2_smp_ops __initdata = {
130130
.smp_prepare_cpus = hisi_common_smp_prepare_cpus,
131131
.smp_boot_secondary = hix5hd2_boot_secondary,
132132
#ifdef CONFIG_HOTPLUG_CPU
@@ -176,7 +176,7 @@ static int hip01_boot_secondary(unsigned int cpu, struct task_struct *idle)
176176
return 0;
177177
}
178178

179-
struct smp_operations hip01_smp_ops __initdata = {
179+
static struct smp_operations hip01_smp_ops __initdata = {
180180
.smp_prepare_cpus = hisi_common_smp_prepare_cpus,
181181
.smp_boot_secondary = hip01_boot_secondary,
182182
};

0 commit comments

Comments
 (0)