Skip to content

Commit 2d07b25

Browse files
hharrisonIngo Molnar
authored andcommitted
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 Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
1 parent 67ca7bd commit 2d07b25

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

‎arch/um/kernel/process.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,6 @@ void *get_current(void)
128128
return current;
129129
}
130130

131-
extern void schedule_tail(struct task_struct *prev);
132-
133131
/*
134132
* This is called magically, by its address being stuffed in a jmp_buf
135133
* and being longjmp-d to.

‎include/linux/sched.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,7 @@ struct task_struct;
242242

243243
extern void sched_init(void);
244244
extern void sched_init_smp(void);
245+
extern asmlinkage void schedule_tail(struct task_struct *prev);
245246
extern void init_idle(struct task_struct *idle, int cpu);
246247
extern void init_idle_bootup_task(struct task_struct *idle);
247248

0 commit comments

Comments
 (0)