fscrypto: remove unnecessary includes
authorEric Biggers <ebiggers@google.com>
Thu, 15 Sep 2016 20:41:09 +0000 (16:41 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 15 Sep 2016 20:41:09 +0000 (16:41 -0400)
This patch removes some #includes that are clearly not needed, such as a
reference to ecryptfs, which is unrelated to the new filesystem
encryption code.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/crypto/crypto.c
fs/crypto/fname.c
fs/crypto/keyinfo.c

index c502c116924ca1bd603184089bff67be8f5100a5..7c39eab47bdf58fbedb2842bbfee01e26ba9f379 100644 (file)
@@ -28,7 +28,6 @@
 #include <linux/dcache.h>
 #include <linux/namei.h>
 #include <linux/fscrypto.h>
-#include <linux/ecryptfs.h>
 
 static unsigned int num_prealloc_crypto_pages = 32;
 static unsigned int num_prealloc_crypto_ctxs = 128;
index 5d6d49113efa12e974c1aa682e925a12a655306b..31088061db17052d188d93f743324b9181b0d695 100644 (file)
@@ -10,8 +10,6 @@
  * This has not yet undergone a rigorous security audit.
  */
 
-#include <keys/encrypted-type.h>
-#include <keys/user-type.h>
 #include <linux/scatterlist.h>
 #include <linux/ratelimit.h>
 #include <linux/fscrypto.h>
index b5374efc4ae357f5d58315d2f3156a29428315c8..82f0285f5d084934d0c13d98d684fbbd3f69f3ed 100644 (file)
@@ -8,11 +8,8 @@
  * Written by Michael Halcrow, Ildar Muslukhov, and Uday Savagaonkar, 2015.
  */
 
-#include <keys/encrypted-type.h>
 #include <keys/user-type.h>
-#include <linux/random.h>
 #include <linux/scatterlist.h>
-#include <uapi/linux/keyctl.h>
 #include <linux/fscrypto.h>
 
 static void derive_crypt_complete(struct crypto_async_request *req, int rc)