diff options
author | Grygorii Strashko <Grygorii.Strashko@linaro.org> | 2015-07-21 19:43:56 +0300 |
---|---|---|
committer | Sebastian Andrzej Siewior <bigeasy@linutronix.de> | 2016-02-13 00:35:27 +0100 |
commit | e5076645b1b0cee4dfad7ad948413aaee2f7b110 (patch) | |
tree | d6b65742709498247177b325a3eb34e5dd1c7c06 | |
parent | 301fb1cbf6b103f3f772d5efae2ff111d155f617 (diff) | |
download | rt-linux-e5076645b1b0cee4dfad7ad948413aaee2f7b110.tar.gz |
wait.h: include atomic.h
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
CONFIG_PID_NS=y
Vanilla gets this via spinlock.h.
Signed-off-by: Grygorii Strashko <Grygorii.Strashko@linaro.org>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
-rw-r--r-- | include/linux/pid.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/pid.h b/include/linux/pid.h index 23705a53abbaad..2cc64b779f03db 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 { |