[PATCH 3.14 34/42] sched: declare pid_alive as inline
From: Greg Kroah-Hartman
Date: Sun Apr 26 2015 - 10:10:28 EST
3.14-stable review patch. If anyone has any objections, please let me know.
From: Richard Guy Briggs <rgb@xxxxxxxxxx>
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!
include/linux/sched.h:1718: warning: 'pid_alive' declared inline after
Signed-off-by: Richard Guy Briggs <rgb@xxxxxxxxxx>
Signed-off-by: Eric Paris <eparis@xxxxxxxxxx>
Signed-off-by: hujianyang <hujianyang@xxxxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
include/linux/sched.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -1695,7 +1695,7 @@ static inline pid_t task_tgid_vnr(struct
-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;
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/