remove the exported symbols on fat (2/2)
PATCH 1/1 remove the exported symbols on fat (2/2)
Hi,
This patch from Christoph Hellwig. Please apply.
The <foo>_syms.c files of both drivers contain two things:
(1) some mount-related code, and
(2) exported symbols
(1) should obviously be merged into namei.c and (2) isn't used at all in the current tree. dmsdos is not likely to come ever back from death, and Al's plans for umdos are to rewrite it as proper stackable filesystem so it doesn't need them either (*).
So remove them, if someone needs them ever back he can still readd them.
(*) in fact there's even a comment complaining about them exported.
fs/msdos/Makefile | 8 +------ fs/msdos/namei.c | 48 ++++++++++++++++++++++++++++++++---------- fs/vfat/Makefile | 8 +------ fs/vfat/namei.c | 49 +++++++++++++++++++++++++++++++++++-------- include/linux/msdos_fs.h | 26 ----------------------- fs/msdos/msdosfs_syms.c | 53 ----------------------------------------------- fs/vfat/vfatfs_syms.c | 47 ----------------------------------------- 7 files changed, 82 insertions(+), 157 deletions(-)
fs/msdos/Makefile renamed from fs/msdos/Makefile~fat_kill_export +2 -6
@@ -2,10 +2,6 @@ # Makefile for the Linux msdos filesystem routines. # -export-objs := msdosfs_syms.o +msdos-objs := namei.o -obj-$(CONFIG_MSDOS_FS) += msdos.o - -msdos-objs := namei.o msdosfs_syms.o - -include $(TOPDIR)/Rules.make +obj-$(CONFIG_MSDOS_FS) += msdos.o
fs/msdos/msdosfs_syms.c deleted +0 -53
53 lines not on this page · raw message
fs/msdos/namei.c renamed from fs/msdos/namei.c~fat_kill_export +37 -11
100 lines not on this page · raw message
fs/vfat/Makefile renamed from fs/vfat/Makefile~fat_kill_export +2 -6
@@ -2,10 +2,6 @@ # Makefile for the linux vfat-filesystem routines. # -export-objs := vfatfs_syms.o +vfat-objs := namei.o -obj-$(CONFIG_VFAT_FS) += vfat.o - -vfat-objs := namei.o vfatfs_syms.o - -include $(TOPDIR)/Rules.make +obj-$(CONFIG_VFAT_FS) += vfat.o
fs/vfat/namei.c renamed from fs/vfat/namei.c~fat_kill_export +40 -9
112 lines not on this page · raw message
fs/vfat/vfatfs_syms.c deleted +0 -47
47 lines not on this page · raw message
include/linux/msdos_fs.h renamed from include/linux/msdos_fs.h~fat_kill_export +1 -25
@@ -373,29 +373,5 @@ extern int fat_scan(struct inode *dir, cstruct buffer_head **res_bh, struct msdos_dir_entry **res_de, int *ino); -/* msdos/namei.c - these are for Umsdos */ -extern struct dentry *msdos_lookup (struct inode *dir,struct dentry *); -extern int msdos_create (struct inode *dir,struct dentry *dentry,int mode); -extern int msdos_rmdir (struct inode *dir,struct dentry *dentry); -extern int msdos_mkdir (struct inode *dir,struct dentry *dentry,int mode); -extern int msdos_unlink (struct inode *dir,struct dentry *dentry); -extern int msdos_rename (struct inode *old_dir,struct dentry *old_dentry, -struct inode *new_dir,struct dentry *new_dentry); -extern int msdos_fill_super (struct super_block *sb,void *data,int silent); - -/* vfat/namei.c - these are for dmsdos */ -extern struct dentry *vfat_lookup (struct inode *dir,struct dentry *); -extern int vfat_create (struct inode *dir,struct dentry *dentry,int mode); -extern int vfat_rmdir (struct inode *dir,struct dentry *dentry); -extern int vfat_unlink (struct inode *dir,struct dentry *dentry); -extern int vfat_mkdir (struct inode *dir,struct dentry *dentry,int mode); -extern int vfat_rename (struct inode *old_dir,struct dentry *old_dentry, -struct inode *new_dir,struct dentry *new_dentry); -extern int vfat_fill_super (struct super_block *sb,void *data,int silent); - -/* vfat/vfatfs_syms.c */ -extern struct file_system_type vfat_fs_type; -#endif /* __KERNEL__ */ - -#endif +#endif /* _LINUX_MSDOS_FS_H */
.
Signature · 1 line
OGAWA Hirofumi <[email protected]>