Skip to content

Commit b8417de

Browse files
sravnborgdavem330
authored andcommitted
sparc32: fix sparse warnings in sun4m_smp.c
Fix following warnings: sun4m_smp.c:72:13: warning: symbol 'smp4m_boot_cpus' was not declared. Should it be static? sun4m_smp.c:78:5: warning: symbol 'smp4m_boot_one_cpu' was not declared. Should it be static? sun4m_smp.c:120:13: warning: symbol 'smp4m_smp_done' was not declared. Should it be static? sun4m_smp.c:230:6: warning: symbol 'smp4m_cross_call_irq' was not declared. Should it be static? sun4m_smp.c:240:6: warning: symbol 'smp4m_percpu_timer_interrupt' was not declared. Should it be static? Add proper declarations. Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 8b45c79 commit b8417de

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

‎arch/sparc/kernel/kernel.h‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@ extern void sun4m_clear_profile_irq(int cpu);
5151
/* sun4m_smp.c */
5252
void sun4m_cpu_pre_starting(void *arg);
5353
void sun4m_cpu_pre_online(void *arg);
54+
void __init smp4m_boot_cpus(void);
55+
int smp4m_boot_one_cpu(int i, struct task_struct *idle);
56+
void __init smp4m_smp_done(void);
57+
void smp4m_cross_call_irq(void);
58+
void smp4m_percpu_timer_interrupt(struct pt_regs *regs);
5459

5560
/* sun4d_irq.c */
5661
extern spinlock_t sun4d_imsk_lock;

‎arch/sparc/kernel/smp_32.c‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ void smp_store_cpu_info(int id)
7575

7676
void __init smp_cpus_done(unsigned int max_cpus)
7777
{
78-
extern void smp4m_smp_done(void);
7978
extern void smp4d_smp_done(void);
8079
unsigned long bogosum = 0;
8180
int cpu, num = 0;
@@ -183,7 +182,6 @@ int setup_profiling_timer(unsigned int multiplier)
183182

184183
void __init smp_prepare_cpus(unsigned int max_cpus)
185184
{
186-
extern void __init smp4m_boot_cpus(void);
187185
extern void __init smp4d_boot_cpus(void);
188186
int i, cpuid, extra;
189187

@@ -261,7 +259,6 @@ void __init smp_prepare_boot_cpu(void)
261259

262260
int __cpu_up(unsigned int cpu, struct task_struct *tidle)
263261
{
264-
extern int smp4m_boot_one_cpu(int, struct task_struct *);
265262
extern int smp4d_boot_one_cpu(int, struct task_struct *);
266263
int ret=0;
267264

0 commit comments

Comments
 (0)