linux-rt-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [4.1.2-rt1] build failure
@ 2015-07-17 16:47 Grygorii Strashko
  2015-07-20 15:38 ` Sebastian Andrzej Siewior
  0 siblings, 1 reply; 2+ messages in thread
From: Grygorii Strashko @ 2015-07-17 16:47 UTC (permalink / raw)
  To: linux-rt-users; +Cc: Sekhar Nori

Hi All,

I've just tried v4.1.2-rt1 RT-patch set and got below build
failure:

  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);
   ^
  CC      drivers/base/regmap/regcache-flat.o
  CC      fs/lockd/xdr4.o
cc1: some warnings being treated as errors
  CC      drivers/base/regmap/regmap-debugfs.o
make[1]: *** [kernel/pid_namespace.o] Error 1
make: *** [kernel] Error 2
make: *** Waiting for unfinished jobs....


I identified that it's reproduced in case 
CONFIG_PROVE_LOCKING=n
CONFIG_DEBUG_SPINLOCK=n
CONFIG_DEBUG_MUTEXES=n
CONFIG_DEBUG_LOCK_ALLOC=n

The same is not reproduced without RT-patch set.

The below diff fixes an issue for me:
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
 {


[1] https://lkml.org/lkml/2015/7/14/389
-- 
regards,
-grygorii

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [4.1.2-rt1] build failure
  2015-07-17 16:47 [4.1.2-rt1] build failure Grygorii Strashko
@ 2015-07-20 15:38 ` Sebastian Andrzej Siewior
  0 siblings, 0 replies; 2+ messages in thread
From: Sebastian Andrzej Siewior @ 2015-07-20 15:38 UTC (permalink / raw)
  To: Grygorii Strashko; +Cc: linux-rt-users, Sekhar Nori

* Grygorii Strashko | 2015-07-17 19:47:30 [+0300]:

>  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);
>   ^
this is one of the patches I've thrown away because it looked not
needed. On vanilla this header gets sucked in via
include/linux/spinlock.h but on -RT we don't need it and we get this.

>The below diff fixes an issue for me:
>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
> {

If you manage so send me this as  a proper patch then I could include it
into the patchset.

Sebastian

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-07-20 15:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-17 16:47 [4.1.2-rt1] build failure Grygorii Strashko
2015-07-20 15:38 ` Sebastian Andrzej Siewior

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).