Skip to content

Commit

Permalink
autofs: clean up includes
Browse files Browse the repository at this point in the history
Remove includes that aren't needed from autofs (and fs/compat_ioctl.c).

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ian Kent <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
raven-au authored and torvalds committed Jun 8, 2018
1 parent 8240b71 commit 6471e93
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 30 deletions.
2 changes: 1 addition & 1 deletion fs/autofs/autofs_i.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
13 changes: 0 additions & 13 deletions fs/autofs/dev-ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
6 changes: 1 addition & 5 deletions fs/autofs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
6 changes: 0 additions & 6 deletions fs/autofs/root.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
4 changes: 0 additions & 4 deletions fs/autofs/waitq.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion fs/compat_ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
#include <linux/ppp-ioctl.h>
#include <linux/if_pppox.h>
#include <linux/mtio.h>
#include <linux/auto_fs.h>
#include <linux/tty.h>
#include <linux/vt_kern.h>
#include <linux/fb.h>
Expand Down

0 comments on commit 6471e93

Please sign in to comment.