summaryrefslogtreecommitdiffstats
path: root/security/keys
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2017-02-02 17:54:15 +0100
committerIngo Molnar <mingo@kernel.org>2017-03-02 08:42:31 +0100
commit5b825c3af1d8a0af4deb4a5eb349d0d0050c62e5 (patch)
treea9b64c8ece7c544b3f4dc7179e6671a8fc2c12c9 /security/keys
parent7fce777cd4eacc0bdcb33017e5a4c495d28afed1 (diff)
downloadop-kernel-dev-5b825c3af1d8a0af4deb4a5eb349d0d0050c62e5.zip
op-kernel-dev-5b825c3af1d8a0af4deb4a5eb349d0d0050c62e5.tar.gz
sched/headers: Prepare to remove <linux/cred.h> inclusion from <linux/sched.h>
Add #include <linux/cred.h> dependencies to all .c files rely on sched.h doing that for them. Note that even if the count where we need to add extra headers seems high, it's still a net win, because <linux/sched.h> is included in over 2,200 files ... Acked-by: Linus Torvalds <torvalds@linux-foundation.org> Cc: Mike Galbraith <efault@gmx.de> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'security/keys')
-rw-r--r--security/keys/internal.h1
-rw-r--r--security/keys/keyctl.c1
-rw-r--r--security/keys/persistent.c2
3 files changed, 4 insertions, 0 deletions
diff --git a/security/keys/internal.h b/security/keys/internal.h
index a705a7d..a2f4c0a 100644
--- a/security/keys/internal.h
+++ b/security/keys/internal.h
@@ -13,6 +13,7 @@
#define _INTERNAL_H
#include <linux/sched.h>
+#include <linux/cred.h>
#include <linux/key-type.h>
#include <linux/task_work.h>
#include <linux/keyctl.h>
diff --git a/security/keys/keyctl.c b/security/keys/keyctl.c
index 04a764f..bcb0b59 100644
--- a/security/keys/keyctl.c
+++ b/security/keys/keyctl.c
@@ -18,6 +18,7 @@
#include <linux/keyctl.h>
#include <linux/fs.h>
#include <linux/capability.h>
+#include <linux/cred.h>
#include <linux/string.h>
#include <linux/err.h>
#include <linux/vmalloc.h>
diff --git a/security/keys/persistent.c b/security/keys/persistent.c
index 1edc1f0..d0cb5b3 100644
--- a/security/keys/persistent.c
+++ b/security/keys/persistent.c
@@ -10,6 +10,8 @@
*/
#include <linux/user_namespace.h>
+#include <linux/cred.h>
+
#include "internal.h"
unsigned persistent_keyring_expiry = 3 * 24 * 3600; /* Expire after 3 days of non-use */
OpenPOWER on IntegriCloud