Skip to contentSkip to conversation

Linux 3.14.5

DISCUSSION Nick Warne 1 participant 2 messages Jun 1, 2014

lore
Share & tools
lore

Nick Warne

author
#0 lore raw

I am getting hundreds of the same build warnings on this release - usually I get none - typical warnings:

include/linux/sched.h:1691: warning: ‘pid_alive’ declared inline after being called include/linux/sched.h:1691: warning: previous declaration of ‘pid_alive’ was here

Info:

Machine AMD64
gcc version 4.2.4

Any more info required please CC me.

Nick

Signature · 4 lines
"A bug in the code is worth two in the documentation."
FSF Associate Member 5508
http://linicks.net/
http://pi.linicks.net/
author
#1 lore raw
Quoted 8 lines · Nick Warne

I am getting hundreds of the same build warnings on this release - usually I get none - typical warnings:

include/linux/sched.h:1691: warning: ‘pid_alive’ declared inline after being called
include/linux/sched.h:1691: warning: previous declaration of ‘pid_alive’ was here

Quoted 6 lines

Info:

Machine AMD64
gcc version 4.2.4

Any more info required please CC me.

OK, revisiting this between decorating, changing line 1691 in include/linux/sched.h to reflect 'inline':

from:
static int pid_alive(const struct task_struct *p);

to:
static inline int pid_alive(const struct task_struct *p);

stops GCC yelling at me.

Nick

Signature · 4 lines
"A bug in the code is worth two in the documentation."
FSF Associate Member 5508
http://linicks.net/
http://pi.linicks.net/