Skip to content

Commit

Permalink
sched: add declaration of sched_tail to sched.h
Browse files Browse the repository at this point in the history
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

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Harvey Harrison authored and Ingo Molnar committed Feb 25, 2008
1 parent 67ca7bd commit 2d07b25
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 0 additions & 2 deletions arch/um/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 1 addition & 0 deletions include/linux/sched.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 2d07b25

Please sign in to comment.