Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1310150 > unrolled thread

Re: [4.1.2-rt1 PATCH] include/linux/pid.h: fix build error

Started byGrygorii Strashko <grygorii.strashko@ti.com>
First post2016-01-15 15:20 +0100
Last post2016-01-15 15:20 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [4.1.2-rt1 PATCH] include/linux/pid.h: fix build error Grygorii Strashko <grygorii.strashko@ti.com> - 2016-01-15 15:20 +0100

#1310150 — Re: [4.1.2-rt1 PATCH] include/linux/pid.h: fix build error

FromGrygorii Strashko <grygorii.strashko@ti.com>
Date2016-01-15 15:20 +0100
SubjectRe: [4.1.2-rt1 PATCH] include/linux/pid.h: fix build error
Message-ID<qRdol-7gx-5@gated-at.bofh.it>
Sorry- ignore this e-mail pls

On 01/15/2016 04:14 PM, Grygorii Strashko wrote:
> From: Grygorii Strashko <Grygorii.Strashko@linaro.org>
>
> This patch fixes build error:
>    CC      kernel/pid_namespace.o
> In file included from kernel/pid_namespace.c:11:0:
> include/linux/pid.h: In function 'get_pid':
> include/linux/pid.h:78:3: error: implicit declaration of function 'atomic_inc' [-Werror=implicit-function-declaration]
>     atomic_inc(&pid->count);
>     ^
> which happens when
>   CONFIG_PROVE_LOCKING=n
>   CONFIG_DEBUG_SPINLOCK=n
>   CONFIG_DEBUG_MUTEXES=n
>   CONFIG_DEBUG_LOCK_ALLOC=n
>
> Signed-off-by: Grygorii Strashko <Grygorii.Strashko@linaro.org>
> ---
>   include/linux/pid.h | 1 +
>   1 file changed, 1 insertion(+)
>
> diff --git a/include/linux/pid.h b/include/linux/pid.h
> index 23705a53..2cc64b7 100644
> --- a/include/linux/pid.h
> +++ b/include/linux/pid.h
> @@ -2,6 +2,7 @@
>   #define _LINUX_PID_H
>
>   #include <linux/rcupdate.h>
> +#include <linux/atomic.h>
>
>   enum pid_type
>   {
>


-- 
regards,
-grygorii

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web