exfat: make exfat_find_location() static
authorChristophe Vu-Brugier <christophe.vu-brugier@seagate.com>
Tue, 2 Nov 2021 21:23:57 +0000 (22:23 +0100)
committerNamjae Jeon <linkinjeon@kernel.org>
Mon, 10 Jan 2022 02:00:01 +0000 (11:00 +0900)
Make exfat_find_location() static.

Signed-off-by: Christophe Vu-Brugier <christophe.vu-brugier@seagate.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
fs/exfat/dir.c
fs/exfat/exfat_fs.h

index ac14055..68ad541 100644 (file)
@@ -656,8 +656,8 @@ static int exfat_walk_fat_chain(struct super_block *sb,
        return 0;
 }
 
-int exfat_find_location(struct super_block *sb, struct exfat_chain *p_dir,
-               int entry, sector_t *sector, int *offset)
+static int exfat_find_location(struct super_block *sb, struct exfat_chain *p_dir,
+                              int entry, sector_t *sector, int *offset)
 {
        int ret;
        unsigned int off, clu = 0;
index 1d6da61..a8f5bc5 100644 (file)
@@ -459,8 +459,6 @@ int exfat_find_dir_entry(struct super_block *sb, struct exfat_inode_info *ei,
                struct exfat_chain *p_dir, struct exfat_uni_name *p_uniname,
                int num_entries, unsigned int type, struct exfat_hint *hint_opt);
 int exfat_alloc_new_dir(struct inode *inode, struct exfat_chain *clu);
-int exfat_find_location(struct super_block *sb, struct exfat_chain *p_dir,
-               int entry, sector_t *sector, int *offset);
 struct exfat_dentry *exfat_get_dentry(struct super_block *sb,
                struct exfat_chain *p_dir, int entry, struct buffer_head **bh,
                sector_t *sector);