Skip to contentSkip to conversation

sched: add declaration of sched_tail to sched.h

PATCH Applied Harvey Harrison 2 participants 2 messages Feb 15, 2008 – Feb 17, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/3 sched: add declaration of sched_tail to sched.h

Avoids sparse warnings:
kernel/sched.c:2170:17: warning: symbol 'schedule_tail' was not declared. Should it be static?

Avoids the need for an external declaration in arch/um/process.c

---
 arch/um/kernel/process.c |    2 --
 include/linux/sched.h    |    1 +
 2 files changed, 1 insertions(+), 2 deletions(-)
arch/um/kernel/process.c +0 -2
index fc50d2f..e8cb9ff 100644
@@ -128,8 +128,6 @@ void *get_current(void)
 	return current;
 }
 
-extern void schedule_tail(struct task_struct *prev);
-
 /*
  * This is called magically, by its address being stuffed in a jmp_buf
  * and being longjmp-d to.
include/linux/sched.h +1 -0
index e217d18..f1d20c0 100644
@@ -242,6 +242,7 @@ struct task_struct;
 
 extern void sched_init(void);
 extern void sched_init_smp(void);
+extern asmlinkage void schedule_tail(struct task_struct *prev);
 extern void init_idle(struct task_struct *idle, int cpu);
 extern void init_idle_bootup_task(struct task_struct *idle);
 
Signature · 1 line
1.5.4.1.1278.gc75be
Applied
#1 lore raw
Quoted 4 lines · Harvey Harrison

Avoids sparse warnings: kernel/sched.c:2170:17: warning: symbol 'schedule_tail' was not declared. Should it be static?

Avoids the need for an external declaration in arch/um/process.c

thanks, applied.

Ingo