From: Richard Guy Briggs Date: Sun, 16 Mar 2014 18:00:19 +0000 (-0400) Subject: sched: declare pid_alive as inline X-Git-Tag: sz_173~85 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=pandora-kernel.git;a=commitdiff_plain;h=c42262d5ee077451897ca56f8e4fbccd1c0c164e;hp=f7c3ff94a296f2daf8f5f2e8be3e459636c3fdfd sched: declare pid_alive as inline We accidentally declared pid_alive without any extern/inline connotation. Some platforms were fine with this, some like ia64 and mips were very angry. If the function is inline, the prototype should be inline! on ia64: include/linux/sched.h:1718: warning: 'pid_alive' declared inline after being called Signed-off-by: Richard Guy Briggs Signed-off-by: Eric Paris --- diff --git a/include/linux/sched.h b/include/linux/sched.h index cb34ff42e4c3..95d15ce6a148 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -1690,7 +1690,7 @@ static inline pid_t task_tgid_vnr(struct task_struct *tsk) } -static int pid_alive(const struct task_struct *p); +static inline int pid_alive(const struct task_struct *p); static inline pid_t task_ppid_nr_ns(const struct task_struct *tsk, struct pid_namespace *ns) { pid_t pid = 0;