Skip to content

Commit

Permalink
fs/fat: remove unnecessary includes
Browse files Browse the repository at this point in the history
'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.

[[email protected]: fs/fat/iode.c needs seq_file.h]
[[email protected]: put one actually necessary include file back]
Signed-off-by: Alexander Kuleshov <[email protected]>
Acked-by: OGAWA Hirofumi <[email protected]>
Signed-off-by: Stephen Rothwell <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
0xAX authored and torvalds committed Apr 17, 2015
1 parent a40a7d9 commit 58932ef
Show file tree
Hide file tree
Showing 9 changed files with 1 addition and 33 deletions.
2 changes: 0 additions & 2 deletions fs/fat/cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@
* May 1999. AV. Fixed the bogosity with FAT32 (read "FAT28"). Fscking lusers.
*/

#include <linux/fs.h>
#include <linux/slab.h>
#include <linux/buffer_head.h>
#include "fat.h"

/* this must be > 0. */
Expand Down
4 changes: 0 additions & 4 deletions fs/fat/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,9 @@
* Short name translation 1999, 2001 by Wolfram Pienkoss <[email protected]>
*/

#include <linux/module.h>
#include <linux/slab.h>
#include <linux/time.h>
#include <linux/buffer_head.h>
#include <linux/compat.h>
#include <linux/uaccess.h>
#include <linux/kernel.h>
#include "fat.h"

/*
Expand Down
3 changes: 0 additions & 3 deletions fs/fat/fat.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,8 @@
#define _FAT_H

#include <linux/buffer_head.h>
#include <linux/string.h>
#include <linux/nls.h>
#include <linux/fs.h>
#include <linux/hash.h>
#include <linux/mutex.h>
#include <linux/ratelimit.h>
#include <linux/msdos_fs.h>

Expand Down
3 changes: 0 additions & 3 deletions fs/fat/fatent.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
* Released under GPL v2.
*/

#include <linux/module.h>
#include <linux/fs.h>
#include <linux/msdos_fs.h>
#include <linux/blkdev.h>
#include "fat.h"

Expand Down
4 changes: 0 additions & 4 deletions fs/fat/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@
#include <linux/module.h>
#include <linux/compat.h>
#include <linux/mount.h>
#include <linux/time.h>
#include <linux/buffer_head.h>
#include <linux/writeback.h>
#include <linux/backing-dev.h>
#include <linux/blkdev.h>
#include <linux/fsnotify.h>
#include <linux/security.h>
Expand Down
10 changes: 1 addition & 9 deletions fs/fat/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,12 @@
*/

#include <linux/module.h>
#include <linux/init.h>
#include <linux/time.h>
#include <linux/slab.h>
#include <linux/seq_file.h>
#include <linux/pagemap.h>
#include <linux/mpage.h>
#include <linux/buffer_head.h>
#include <linux/mount.h>
#include <linux/vfs.h>
#include <linux/seq_file.h>
#include <linux/parser.h>
#include <linux/uio.h>
#include <linux/writeback.h>
#include <linux/log2.h>
#include <linux/hash.h>
#include <linux/blkdev.h>
#include <asm/unaligned.h>
#include "fat.h"
Expand Down
4 changes: 0 additions & 4 deletions fs/fat/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@
* and date_dos2unix for date==0 by Igor Zhbanov([email protected])
*/

#include <linux/module.h>
#include <linux/fs.h>
#include <linux/buffer_head.h>
#include <linux/time.h>
#include "fat.h"

/*
Expand Down
2 changes: 0 additions & 2 deletions fs/fat/namei_msdos.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
*/

#include <linux/module.h>
#include <linux/time.h>
#include <linux/buffer_head.h>
#include "fat.h"

/* Characters that are undesirable in an MS-DOS file name */
Expand Down
2 changes: 0 additions & 2 deletions fs/fat/namei_vfat.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,8 @@
*/

#include <linux/module.h>
#include <linux/jiffies.h>
#include <linux/ctype.h>
#include <linux/slab.h>
#include <linux/buffer_head.h>
#include <linux/namei.h>
#include "fat.h"

Expand Down

0 comments on commit 58932ef

Please sign in to comment.