diff options
author | Ian Kent <raven@themaw.net> | 2018-06-07 17:11:48 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2018-06-07 17:34:40 -0700 |
commit | 6471e93863d6494e74e99ae2bdffac9c46571f81 (patch) | |
tree | d56eaf9e2fa0da377280f08fec1b0d9e746c7aa2 /fs/autofs | |
parent | 8240b716e200b3da215ea5a22a49f76f2c846a78 (diff) | |
download | linux-6471e93863d6494e74e99ae2bdffac9c46571f81.tar.bz2 |
autofs: clean up includes
Remove includes that aren't needed from autofs (and fs/compat_ioctl.c).
Link: http://lkml.kernel.org/r/152635085258.5968.9743527195522188148.stgit@pluto.themaw.net
Signed-off-by: Ian Kent <raven@themaw.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/autofs')
-rw-r--r-- | fs/autofs/autofs_i.h | 2 | ||||
-rw-r--r-- | fs/autofs/dev-ioctl.c | 13 | ||||
-rw-r--r-- | fs/autofs/inode.c | 6 | ||||
-rw-r--r-- | fs/autofs/root.c | 6 | ||||
-rw-r--r-- | fs/autofs/waitq.c | 4 |
5 files changed, 2 insertions, 29 deletions
diff --git a/fs/autofs/autofs_i.h b/fs/autofs/autofs_i.h index 9110b66c7ef1..9400a9f6318a 100644 --- a/fs/autofs/autofs_i.h +++ b/fs/autofs/autofs_i.h @@ -25,7 +25,7 @@ #include <linux/spinlock.h> #include <linux/list.h> #include <linux/completion.h> -#include <asm/current.h> +#include <linux/file.h> /* This is the range of ioctl() numbers we claim as ours */ #define AUTOFS_IOC_FIRST AUTOFS_IOC_READY diff --git a/fs/autofs/dev-ioctl.c b/fs/autofs/dev-ioctl.c index a2281ab2b957..ea4ca1445ab7 100644 --- a/fs/autofs/dev-ioctl.c +++ b/fs/autofs/dev-ioctl.c @@ -7,23 +7,10 @@ * option, any later version, incorporated herein by reference. */ -#include <linux/module.h> -#include <linux/vmalloc.h> #include <linux/miscdevice.h> -#include <linux/init.h> -#include <linux/wait.h> -#include <linux/namei.h> -#include <linux/fcntl.h> -#include <linux/file.h> -#include <linux/fdtable.h> -#include <linux/sched.h> -#include <linux/cred.h> #include <linux/compat.h> #include <linux/syscalls.h> #include <linux/magic.h> -#include <linux/dcache.h> -#include <linux/uaccess.h> -#include <linux/slab.h> #include "autofs_i.h" diff --git a/fs/autofs/inode.c b/fs/autofs/inode.c index 6262819ede45..b51980fc274e 100644 --- a/fs/autofs/inode.c +++ b/fs/autofs/inode.c @@ -7,16 +7,12 @@ * option, any later version, incorporated herein by reference. */ -#include <linux/kernel.h> -#include <linux/slab.h> -#include <linux/file.h> #include <linux/seq_file.h> #include <linux/pagemap.h> #include <linux/parser.h> -#include <linux/bitops.h> #include <linux/magic.h> + #include "autofs_i.h" -#include <linux/module.h> struct autofs_info *autofs_new_ino(struct autofs_sb_info *sbi) { diff --git a/fs/autofs/root.c b/fs/autofs/root.c index a4b36e44f73c..a3d414150578 100644 --- a/fs/autofs/root.c +++ b/fs/autofs/root.c @@ -9,13 +9,7 @@ */ #include <linux/capability.h> -#include <linux/errno.h> -#include <linux/stat.h> -#include <linux/slab.h> -#include <linux/param.h> -#include <linux/time.h> #include <linux/compat.h> -#include <linux/mutex.h> #include "autofs_i.h" diff --git a/fs/autofs/waitq.c b/fs/autofs/waitq.c index 8a566fa66afe..8c858126c751 100644 --- a/fs/autofs/waitq.c +++ b/fs/autofs/waitq.c @@ -7,11 +7,7 @@ * option, any later version, incorporated herein by reference. */ -#include <linux/slab.h> -#include <linux/time.h> -#include <linux/signal.h> #include <linux/sched/signal.h> -#include <linux/file.h> #include "autofs_i.h" /* We make this a static variable rather than a part of the superblock; it |