The patch titled Subject: autofs: clean up includes has been added to the -mm tree. Its filename is autofs-clean-up-includes.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/autofs-clean-up-includes.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/autofs-clean-up-includes.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Ian Kent <raven@xxxxxxxxxx> Subject: 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@xxxxxxxxxxxxxxxx Signed-off-by: Ian Kent <raven@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- fs/autofs/autofs_i.h | 2 +- fs/autofs/dev-ioctl.c | 13 ------------- fs/autofs/inode.c | 6 +----- fs/autofs/root.c | 6 ------ fs/autofs/waitq.c | 4 ---- fs/compat_ioctl.c | 1 - 6 files changed, 2 insertions(+), 30 deletions(-) diff -puN fs/autofs/autofs_i.h~autofs-clean-up-includes fs/autofs/autofs_i.h --- a/fs/autofs/autofs_i.h~autofs-clean-up-includes +++ a/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 -puN fs/autofs/dev-ioctl.c~autofs-clean-up-includes fs/autofs/dev-ioctl.c --- a/fs/autofs/dev-ioctl.c~autofs-clean-up-includes +++ a/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 -puN fs/autofs/inode.c~autofs-clean-up-includes fs/autofs/inode.c --- a/fs/autofs/inode.c~autofs-clean-up-includes +++ a/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 -puN fs/autofs/root.c~autofs-clean-up-includes fs/autofs/root.c --- a/fs/autofs/root.c~autofs-clean-up-includes +++ a/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 -puN fs/autofs/waitq.c~autofs-clean-up-includes fs/autofs/waitq.c --- a/fs/autofs/waitq.c~autofs-clean-up-includes +++ a/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 diff -puN fs/compat_ioctl.c~autofs-clean-up-includes fs/compat_ioctl.c --- a/fs/compat_ioctl.c~autofs-clean-up-includes +++ a/fs/compat_ioctl.c @@ -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> _ Patches currently in -mm which might be from raven@xxxxxxxxxx are autofs4-merge-auto_fsh-and-auto_fs4h.patch autofs4-use-autofs-instead-of-autofs4-everywhere.patch autofs-copy-autofs4-to-autofs.patch autofs-create-autofs-kconfig-and-makefile.patch autofs-update-fs-autofs4-kconfig.patch autofs-update-fs-autofs4-makefile.patch autofs-delete-fs-autofs4-source-files.patch autofs-rename-autofs-documentation-files.patch autofs-use-autofs-instead-of-autofs4-in-documentation.patch autofs-update-maintainers-entry-for-autofs.patch autofs-clean-up-includes.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html