summaryrefslogtreecommitdiffstats
path: root/include/linux/sched.h
diff options
context:
space:
mode:
authorRichard Guy Briggs <rgb@redhat.com>2014-03-16 14:00:19 -0400
committerEric Paris <eparis@redhat.com>2014-03-20 10:12:00 -0400
commit80e0b6e8a001361316a2d62b748fe677ec46b860 (patch)
tree385aea722a69dd83447b164383b57c4de380aec6 /include/linux/sched.h
parent579ec9e1ab0bdca2dbc3c942aa1a530a6ec8c349 (diff)
downloadblackbird-op-linux-80e0b6e8a001361316a2d62b748fe677ec46b860.tar.gz
blackbird-op-linux-80e0b6e8a001361316a2d62b748fe677ec46b860.zip
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 <rgb@redhat.com> Signed-off-by: Eric Paris <eparis@redhat.com>
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r--include/linux/sched.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h
index 116e301fb13f..0f72548732f1 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -1561,7 +1561,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;
OpenPOWER on IntegriCloud