sched: declare pid_alive as inline
authorRichard Guy Briggs <rgb@redhat.com>
Sun, 16 Mar 2014 18:00:19 +0000 (14:00 -0400)
committerJiri Slaby <jslaby@suse.cz>
Fri, 23 May 2014 09:01:38 +0000 (11:01 +0200)
commit 80e0b6e8a001361316a2d62b748fe677ec46b860 upstream.

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 <rgb@redhat.com>
Signed-off-by: Eric Paris <eparis@redhat.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
include/linux/sched.h

index 62b89d2f9c0198651ef49ee05c939d30bbbb7972..8594b065d3a807c24ade2c80838a7ee860649327 100644 (file)
@@ -1501,7 +1501,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;