Skip to contentSkip to conversation

fs/fat/cache.c: make __fat_access static

PATCH In review Adrian Bunk 2 participants 2 messages Jan 6, 2005 – Jan 7, 2005 VFAT/FAT/msdos filesystem

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fs/fat/cache.c: make __fat_access static

The patch below makes a needlessly global function static.

diffstat output:

 fs/fat/cache.c           |    2 +-
 include/linux/msdos_fs.h |    1 -
 2 files changed, 1 insertion(+), 2 deletions(-)
include/linux/msdos_fs.h renamed from include/linux/msdos_fs.h.old +0 -1
@@ -230,7 +230,6 @@
 
 /* fat/cache.c */
 extern int fat_access(struct super_block *sb, int nr, int new_value);
-extern int __fat_access(struct super_block *sb, int nr, int new_value);
 extern int fat_bmap(struct inode *inode, sector_t sector, sector_t *phys);
 extern void fat_cache_inval_inode(struct inode *inode);
 extern int fat_get_cluster(struct inode *inode, int cluster,
fs/fat/cache.c renamed from fs/fat/cache.c.old +1 -1
@@ -203,7 +203,7 @@
 	spin_unlock(&MSDOS_I(inode)->cache_lru_lock);
 }
 
-int __fat_access(struct super_block *sb, int nr, int new_value)
+static int __fat_access(struct super_block *sb, int nr, int new_value)
 {
 	struct msdos_sb_info *sbi = MSDOS_SB(sb);
 	struct buffer_head *bh, *bh2, *c_bh, *c_bh2;
maintainer
#1 lore raw
Quoted 10 lines · Adrian Bunk

The patch below makes a needlessly global function static.

diffstat output:

 fs/fat/cache.c           |    2 +-
 include/linux/msdos_fs.h |    1 -
 2 files changed, 1 insertion(+), 2 deletions(-)

Thanks. applied.

Signature · 1 line
OGAWA Hirofumi <[email protected]>