2020-10-12 12:52:06 +00:00
|
|
|
From 37d9448e73791c1d15bdbd914a228972dff7bba9 Mon Sep 17 00:00:00 2001
|
|
|
|
Message-Id: <37d9448e73791c1d15bdbd914a228972dff7bba9.1601675152.git.zanussi@kernel.org>
|
|
|
|
In-Reply-To: <5b5a156f9808b1acf1205606e03da117214549ea.1601675151.git.zanussi@kernel.org>
|
|
|
|
References: <5b5a156f9808b1acf1205606e03da117214549ea.1601675151.git.zanussi@kernel.org>
|
2018-08-27 14:32:32 +00:00
|
|
|
From: Grygorii Strashko <Grygorii.Strashko@linaro.org>
|
|
|
|
Date: Tue, 21 Jul 2015 19:43:56 +0300
|
2020-09-04 20:10:21 +00:00
|
|
|
Subject: [PATCH 132/333] pid.h: include atomic.h
|
2020-10-12 12:52:06 +00:00
|
|
|
Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.19/older/patches-4.19.148-rt64.tar.xz
|
2018-08-27 14:32:32 +00:00
|
|
|
|
|
|
|
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>
|
|
|
|
---
|
2019-04-08 23:49:20 +00:00
|
|
|
include/linux/pid.h | 1 +
|
2018-08-27 14:32:32 +00:00
|
|
|
1 file changed, 1 insertion(+)
|
|
|
|
|
2019-04-08 23:49:20 +00:00
|
|
|
diff --git a/include/linux/pid.h b/include/linux/pid.h
|
|
|
|
index 14a9a39da9c7..a9026a5da196 100644
|
2018-08-27 14:32:32 +00:00
|
|
|
--- a/include/linux/pid.h
|
|
|
|
+++ b/include/linux/pid.h
|
|
|
|
@@ -3,6 +3,7 @@
|
|
|
|
#define _LINUX_PID_H
|
|
|
|
|
|
|
|
#include <linux/rculist.h>
|
|
|
|
+#include <linux/atomic.h>
|
|
|
|
|
|
|
|
enum pid_type
|
|
|
|
{
|
2020-01-03 23:36:11 +00:00
|
|
|
--
|
2020-06-22 13:14:16 +00:00
|
|
|
2.17.1
|
2020-01-03 23:36:11 +00:00
|
|
|
|