Commit 7fcfc2be authored by Christoph Hellwig's avatar Christoph Hellwig

[PATCH] pull even more crap out of fs.h

Don't include the following headers implicitly through fs.h:

  stddef.h, string.h, bitops.h, pipe_fs_i.h, ext3_fs_i.h, efs_fs_i.h

and fixup the fallout..
parent d3131293
......@@ -225,6 +225,7 @@
#include <linux/slab.h>
#include <linux/init.h>
#include <linux/miscdevice.h>
#include <linux/bitops.h>
/* The 3.0.0 version of sxboards/sxwindow.h uses BYTE and WORD.... */
#define BYTE u8
......
......@@ -33,6 +33,7 @@
#include <linux/tty.h>
#include <linux/sched.h>
#include <linux/init.h>
#include <linux/net.h>
#include <linux/irda.h>
#include <net/irda/irda.h>
......
......@@ -494,6 +494,7 @@
#include <linux/workqueue.h>
#include <linux/interrupt.h>
#include <linux/mm.h>
#include <linux/string.h>
#include <asm/pgtable.h>
#include <linux/sched.h>
......
......@@ -17,6 +17,7 @@
#include <linux/stat.h>
#include <linux/spinlock.h>
#include <linux/buffer_head.h>
#include <linux/string.h>
#include "adfs.h"
#include "dir_f.h"
......
......@@ -15,6 +15,7 @@
#include <linux/stat.h>
#include <linux/spinlock.h>
#include <linux/buffer_head.h>
#include <linux/string.h>
#include "adfs.h"
#include "dir_fplus.h"
......
......@@ -14,6 +14,7 @@
#include <linux/version.h>
#include <linux/slab.h>
#include <linux/buffer_head.h>
#include <linux/string.h>
#include "befs.h"
#include "datastream.h"
......
......@@ -8,6 +8,7 @@
#include <linux/init.h>
#include <linux/fs.h>
#include <linux/slab.h>
#include <linux/string.h>
#define HASH_BITS 6
#define HASH_SIZE (1UL << HASH_BITS)
......
......@@ -20,7 +20,7 @@
and to fit the cifs vfs by
Steve French sfrench@us.ibm.com */
#include <linux/fs.h>
#include <linux/string.h>
#include "md5.h"
static void MD5Transform(__u32 buf[4], __u32 const in[16]);
......
......@@ -13,6 +13,7 @@
#include <linux/slab.h>
#include <linux/smp_lock.h>
#include <linux/fs.h>
#include <linux/pipe_fs_i.h>
static void wait_for_partner(struct inode* inode, unsigned int* cnt)
{
......
......@@ -36,6 +36,7 @@
#include <linux/buffer_head.h>
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/string.h>
#include "vxfs.h"
#include "vxfs_inode.h"
......
......@@ -12,6 +12,7 @@
#include <linux/init.h>
#include <linux/fs.h>
#include <linux/mount.h>
#include <linux/pipe_fs_i.h>
#include <asm/uaccess.h>
#include <asm/ioctls.h>
......
......@@ -16,6 +16,7 @@
#include <linux/dirent.h>
#include <linux/smb_fs.h>
#include <linux/pagemap.h>
#include <linux/net.h>
#include <asm/page.h>
......
......@@ -12,6 +12,7 @@
#include <linux/kernel.h>
#include <linux/smp_lock.h>
#include <linux/ctype.h>
#include <linux/net.h>
#include <linux/smb_fs.h>
#include <linux/smb_mount.h>
......
......@@ -16,6 +16,7 @@
#include <linux/slab.h>
#include <linux/pagemap.h>
#include <linux/smp_lock.h>
#include <linux/net.h>
#include <asm/uaccess.h>
#include <asm/system.h>
......
......@@ -4,6 +4,7 @@
#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/net.h>
#include "getopt.h"
......
......@@ -23,6 +23,7 @@
#include <linux/nls.h>
#include <linux/seq_file.h>
#include <linux/mount.h>
#include <linux/net.h>
#include <linux/smb_fs.h>
#include <linux/smbno.h>
......
......@@ -13,6 +13,7 @@
#include <linux/time.h>
#include <linux/mm.h>
#include <linux/highuid.h>
#include <linux/net.h>
#include <linux/smb_fs.h>
#include <linux/smb_mount.h>
......
......@@ -18,6 +18,7 @@
#include <linux/dirent.h>
#include <linux/nls.h>
#include <linux/smp_lock.h>
#include <linux/net.h>
#include <linux/smb_fs.h>
#include <linux/smbno.h>
......
......@@ -9,6 +9,7 @@
#include <linux/types.h>
#include <linux/fs.h>
#include <linux/slab.h>
#include <linux/net.h>
#include <linux/smb_fs.h>
#include <linux/smbno.h>
......
......@@ -19,6 +19,7 @@
#include <linux/dcache.h>
#include <linux/smp_lock.h>
#include <linux/module.h>
#include <linux/net.h>
#include <net/ip.h>
#include <linux/smb_fs.h>
......
......@@ -20,6 +20,7 @@
#include <linux/netdevice.h>
#include <linux/smp_lock.h>
#include <linux/workqueue.h>
#include <linux/net.h>
#include <net/scm.h>
#include <net/ip.h>
......
......@@ -15,6 +15,7 @@
#include <linux/slab.h>
#include <linux/pagemap.h>
#include <linux/smp_lock.h>
#include <linux/net.h>
#include <asm/uaccess.h>
#include <asm/system.h>
......
......@@ -20,6 +20,7 @@
*/
#include <linux/buffer_head.h>
#include <linux/string.h>
#include "sysv.h"
/* We don't trust the value of
......
......@@ -7,6 +7,7 @@
#include <linux/buffer_head.h>
#include <linux/mount.h>
#include <linux/string.h>
#include "sysv.h"
enum {DIRECT = 10, DEPTH = 4}; /* Have triple indirect */
......
......@@ -3,6 +3,7 @@
#include <linux/types.h>
#include <linux/buffer_head.h>
#include <linux/string.h>
#include <asm/byteorder.h>
/* AmigaOS allows file names with up to 30 characters length.
......
......@@ -17,6 +17,7 @@
#define _LINUX_EXT3_FS_H
#include <linux/types.h>
#include <linux/ext3_fs_i.h>
#include <linux/ext3_fs_sb.h>
/*
......
......@@ -18,16 +18,13 @@
#include <linux/dcache.h>
#include <linux/stat.h>
#include <linux/cache.h>
#include <linux/stddef.h>
#include <linux/string.h>
#include <linux/radix-tree.h>
#include <linux/bitops.h>
#include <asm/atomic.h>
struct poll_table_struct;
struct iovec;
struct nameidata;
struct pipe_inode_info;
struct poll_table_struct;
struct vm_area_struct;
struct vfsmount;
......@@ -220,9 +217,6 @@ typedef int (get_blocks_t)(struct inode *inode, sector_t iblock,
unsigned long max_blocks,
struct buffer_head *bh_result, int create);
#include <linux/pipe_fs_i.h>
/* #include <linux/umsdos_fs_i.h> */
/*
* Attribute flags. These should be or-ed together to figure out what
* has been changed!
......@@ -415,8 +409,6 @@ struct inode {
/* will die */
#include <linux/coda_fs_i.h>
#include <linux/ext3_fs_i.h>
#include <linux/efs_fs_i.h>
struct fown_struct {
rwlock_t lock; /* protects pid, uid, euid fields */
......
......@@ -5,6 +5,7 @@
* The MS-DOS filesystem constants/structures
*/
#include <linux/buffer_head.h>
#include <linux/string.h>
#include <asm/byteorder.h>
#define SECTOR_SIZE 512 /* sector size (bytes) */
......
......@@ -10,6 +10,7 @@
#include <linux/types.h>
#include <linux/ncp_mount.h>
#include <linux/net.h>
#ifdef __KERNEL__
......
......@@ -6,6 +6,7 @@
#include <linux/fcntl.h>
#include <linux/unistd.h>
#include <linux/delay.h>
#include <linux/string.h>
static void __init error(char *x)
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment