Re: Linux 3.14.5

Nick Warne
2014-06-01T15:46:54Z

On 01/06/14 13:04, Nick Warne wrote:
> 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.

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
--
"A bug in the code is worth two in the documentation."
FSF Associate Member 5508