From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753271AbcAOOS1 (ORCPT ); Fri, 15 Jan 2016 09:18:27 -0500 Received: from arroyo.ext.ti.com ([192.94.94.40]:58037 "EHLO arroyo.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752183AbcAOOSZ (ORCPT ); Fri, 15 Jan 2016 09:18:25 -0500 Subject: Re: [4.1.2-rt1 PATCH] include/linux/pid.h: fix build error To: , Russell King , References: <1452867255-1121-1-git-send-email-grygorii.strashko@ti.com> CC: , , Sekhar Nori , Grygorii Strashko From: Grygorii Strashko Message-ID: <5698FF8D.2030708@ti.com> Date: Fri, 15 Jan 2016 16:17:49 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <1452867255-1121-1-git-send-email-grygorii.strashko@ti.com> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Sorry- ignore this e-mail pls On 01/15/2016 04:14 PM, Grygorii Strashko wrote: > From: Grygorii Strashko > > 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 > --- > 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 > +#include > > enum pid_type > { > -- regards, -grygorii