浏览代码

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>
Harvey Harrison 17 年之前
父节点
当前提交
2d07b255c7
共有 2 个文件被更改,包括 1 次插入2 次删除
  1. 0 2
      arch/um/kernel/process.c
  2. 1 0
      include/linux/sched.h

+ 0 - 2
arch/um/kernel/process.c

@@ -128,8 +128,6 @@ void *get_current(void)
 	return current;
 	return current;
 }
 }
 
 
-extern void schedule_tail(struct task_struct *prev);
-
 /*
 /*
  * This is called magically, by its address being stuffed in a jmp_buf
  * This is called magically, by its address being stuffed in a jmp_buf
  * and being longjmp-d to.
  * and being longjmp-d to.

+ 1 - 0
include/linux/sched.h

@@ -242,6 +242,7 @@ struct task_struct;
 
 
 extern void sched_init(void);
 extern void sched_init(void);
 extern void sched_init_smp(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(struct task_struct *idle, int cpu);
 extern void init_idle_bootup_task(struct task_struct *idle);
 extern void init_idle_bootup_task(struct task_struct *idle);