diff options
| author | Alexander Kuleshov <kuleshovmail@gmail.com> | 2015-04-16 15:47:24 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-04-17 09:04:06 -0400 |
| commit | 58932ef7f2f28e89ee37c6e2be94885e5078ba77 (patch) | |
| tree | 081998d8a8d81d1a131e7120227be65ccf754698 | |
| parent | a40a7d9d07b818ce9aa9f6ddf86076a5eef2d8f9 (diff) | |
fs/fat: remove unnecessary includes
'fat.h' includes <linux/buffer_head.h> which includes <linux/fs.h> which
includes all the header files required for all *.c files fat filesystem.
[akpm@linux-foundation.org: fs/fat/iode.c needs seq_file.h]
[sfr@canb.auug.org.au: put one actually necessary include file back]
Signed-off-by: Alexander Kuleshov <kuleshovmail@gmail.com>
Acked-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
| -rw-r--r-- | fs/fat/cache.c | 2 | ||||
| -rw-r--r-- | fs/fat/dir.c | 4 | ||||
| -rw-r--r-- | fs/fat/fat.h | 3 | ||||
| -rw-r--r-- | fs/fat/fatent.c | 3 | ||||
| -rw-r--r-- | fs/fat/file.c | 4 | ||||
| -rw-r--r-- | fs/fat/inode.c | 10 | ||||
| -rw-r--r-- | fs/fat/misc.c | 4 | ||||
| -rw-r--r-- | fs/fat/namei_msdos.c | 2 | ||||
| -rw-r--r-- | fs/fat/namei_vfat.c | 2 |
9 files changed, 1 insertions, 33 deletions
diff --git a/fs/fat/cache.c b/fs/fat/cache.c index 91ad9e1c9441..93fc62232ec2 100644 --- a/fs/fat/cache.c +++ b/fs/fat/cache.c | |||
| @@ -8,9 +8,7 @@ | |||
| 8 | * May 1999. AV. Fixed the bogosity with FAT32 (read "FAT28"). Fscking lusers. | 8 | * May 1999. AV. Fixed the bogosity with FAT32 (read "FAT28"). Fscking lusers. |
| 9 | */ | 9 | */ |
| 10 | 10 | ||
| 11 | #include <linux/fs.h> | ||
| 12 | #include <linux/slab.h> | 11 | #include <linux/slab.h> |
| 13 | #include <linux/buffer_head.h> | ||
| 14 | #include "fat.h" | 12 | #include "fat.h" |
| 15 | 13 | ||
| 16 | /* this must be > 0. */ | 14 | /* this must be > 0. */ |
diff --git a/fs/fat/dir.c b/fs/fat/dir.c index c5d6bb939d19..4afc4d9d2e41 100644 --- a/fs/fat/dir.c +++ b/fs/fat/dir.c | |||
| @@ -13,13 +13,9 @@ | |||
| 13 | * Short name translation 1999, 2001 by Wolfram Pienkoss <wp@bszh.de> | 13 | * Short name translation 1999, 2001 by Wolfram Pienkoss <wp@bszh.de> |
| 14 | */ | 14 | */ |
| 15 | 15 | ||
| 16 | #include <linux/module.h> | ||
| 17 | #include <linux/slab.h> | 16 | #include <linux/slab.h> |
| 18 | #include <linux/time.h> | ||
| 19 | #include <linux/buffer_head.h> | ||
| 20 | #include <linux/compat.h> | 17 | #include <linux/compat.h> |
| 21 | #include <linux/uaccess.h> | 18 | #include <linux/uaccess.h> |
| 22 | #include <linux/kernel.h> | ||
| 23 | #include "fat.h" | 19 | #include "fat.h" |
| 24 | 20 | ||
| 25 | /* | 21 | /* |
diff --git a/fs/fat/fat.h b/fs/fat/fat.h index 64e295e8ff38..fe65a7d5688b 100644 --- a/fs/fat/fat.h +++ b/fs/fat/fat.h | |||
| @@ -2,11 +2,8 @@ | |||
| 2 | #define _FAT_H | 2 | #define _FAT_H |
| 3 | 3 | ||
| 4 | #include <linux/buffer_head.h> | 4 | #include <linux/buffer_head.h> |
| 5 | #include <linux/string.h> | ||
| 6 | #include <linux/nls.h> | 5 | #include <linux/nls.h> |
| 7 | #include <linux/fs.h> | ||
| 8 | #include <linux/hash.h> | 6 | #include <linux/hash.h> |
| 9 | #include <linux/mutex.h> | ||
| 10 | #include <linux/ratelimit.h> | 7 | #include <linux/ratelimit.h> |
| 11 | #include <linux/msdos_fs.h> | 8 | #include <linux/msdos_fs.h> |
| 12 | 9 | ||
diff --git a/fs/fat/fatent.c b/fs/fat/fatent.c index 260705c58062..8226557130a2 100644 --- a/fs/fat/fatent.c +++ b/fs/fat/fatent.c | |||
| @@ -3,9 +3,6 @@ | |||
| 3 | * Released under GPL v2. | 3 | * Released under GPL v2. |
| 4 | */ | 4 | */ |
| 5 | 5 | ||
| 6 | #include <linux/module.h> | ||
| 7 | #include <linux/fs.h> | ||
| 8 | #include <linux/msdos_fs.h> | ||
| 9 | #include <linux/blkdev.h> | 6 | #include <linux/blkdev.h> |
| 10 | #include "fat.h" | 7 | #include "fat.h" |
| 11 | 8 | ||
diff --git a/fs/fat/file.c b/fs/fat/file.c index 1e98d333879f..cf50d93565a2 100644 --- a/fs/fat/file.c +++ b/fs/fat/file.c | |||
| @@ -10,10 +10,6 @@ | |||
| 10 | #include <linux/module.h> | 10 | #include <linux/module.h> |
| 11 | #include <linux/compat.h> | 11 | #include <linux/compat.h> |
| 12 | #include <linux/mount.h> | 12 | #include <linux/mount.h> |
| 13 | #include <linux/time.h> | ||
| 14 | #include <linux/buffer_head.h> | ||
| 15 | #include <linux/writeback.h> | ||
| 16 | #include <linux/backing-dev.h> | ||
| 17 | #include <linux/blkdev.h> | 13 | #include <linux/blkdev.h> |
| 18 | #include <linux/fsnotify.h> | 14 | #include <linux/fsnotify.h> |
| 19 | #include <linux/security.h> | 15 | #include <linux/security.h> |
diff --git a/fs/fat/inode.c b/fs/fat/inode.c index b3a2a0e1ef9b..d1a26c2de919 100644 --- a/fs/fat/inode.c +++ b/fs/fat/inode.c | |||
| @@ -11,20 +11,12 @@ | |||
| 11 | */ | 11 | */ |
| 12 | 12 | ||
| 13 | #include <linux/module.h> | 13 | #include <linux/module.h> |
| 14 | #include <linux/init.h> | ||
| 15 | #include <linux/time.h> | ||
| 16 | #include <linux/slab.h> | ||
| 17 | #include <linux/seq_file.h> | ||
| 18 | #include <linux/pagemap.h> | 14 | #include <linux/pagemap.h> |
| 19 | #include <linux/mpage.h> | 15 | #include <linux/mpage.h> |
| 20 | #include <linux/buffer_head.h> | ||
| 21 | #include <linux/mount.h> | ||
| 22 | #include <linux/vfs.h> | 16 | #include <linux/vfs.h> |
| 17 | #include <linux/seq_file.h> | ||
| 23 | #include <linux/parser.h> | 18 | #include <linux/parser.h> |
| 24 | #include <linux/uio.h> | 19 | #include <linux/uio.h> |
| 25 | #include <linux/writeback.h> | ||
| 26 | #include <linux/log2.h> | ||
| 27 | #include <linux/hash.h> | ||
| 28 | #include <linux/blkdev.h> | 20 | #include <linux/blkdev.h> |
| 29 | #include <asm/unaligned.h> | 21 | #include <asm/unaligned.h> |
| 30 | #include "fat.h" | 22 | #include "fat.h" |
diff --git a/fs/fat/misc.c b/fs/fat/misc.c index d8da2d2e30ae..c4589e981760 100644 --- a/fs/fat/misc.c +++ b/fs/fat/misc.c | |||
| @@ -6,10 +6,6 @@ | |||
| 6 | * and date_dos2unix for date==0 by Igor Zhbanov(bsg@uniyar.ac.ru) | 6 | * and date_dos2unix for date==0 by Igor Zhbanov(bsg@uniyar.ac.ru) |
| 7 | */ | 7 | */ |
| 8 | 8 | ||
| 9 | #include <linux/module.h> | ||
| 10 | #include <linux/fs.h> | ||
| 11 | #include <linux/buffer_head.h> | ||
| 12 | #include <linux/time.h> | ||
| 13 | #include "fat.h" | 9 | #include "fat.h" |
| 14 | 10 | ||
| 15 | /* | 11 | /* |
diff --git a/fs/fat/namei_msdos.c b/fs/fat/namei_msdos.c index a783b0e1272a..cc6a8541b668 100644 --- a/fs/fat/namei_msdos.c +++ b/fs/fat/namei_msdos.c | |||
| @@ -7,8 +7,6 @@ | |||
| 7 | */ | 7 | */ |
| 8 | 8 | ||
| 9 | #include <linux/module.h> | 9 | #include <linux/module.h> |
| 10 | #include <linux/time.h> | ||
| 11 | #include <linux/buffer_head.h> | ||
| 12 | #include "fat.h" | 10 | #include "fat.h" |
| 13 | 11 | ||
| 14 | /* Characters that are undesirable in an MS-DOS file name */ | 12 | /* Characters that are undesirable in an MS-DOS file name */ |
diff --git a/fs/fat/namei_vfat.c b/fs/fat/namei_vfat.c index b8b92c2f9683..7e0974eebd8e 100644 --- a/fs/fat/namei_vfat.c +++ b/fs/fat/namei_vfat.c | |||
| @@ -16,10 +16,8 @@ | |||
| 16 | */ | 16 | */ |
| 17 | 17 | ||
| 18 | #include <linux/module.h> | 18 | #include <linux/module.h> |
| 19 | #include <linux/jiffies.h> | ||
| 20 | #include <linux/ctype.h> | 19 | #include <linux/ctype.h> |
| 21 | #include <linux/slab.h> | 20 | #include <linux/slab.h> |
| 22 | #include <linux/buffer_head.h> | ||
| 23 | #include <linux/namei.h> | 21 | #include <linux/namei.h> |
| 24 | #include "fat.h" | 22 | #include "fat.h" |
| 25 | 23 | ||
