From 5ba7af6fcebfe3ec59b075e0f06086437a63254c Mon Sep 17 00:00:00 2001 From: Christophe Vu-Brugier Date: Wed, 3 Nov 2021 10:36:53 +0900 Subject: [PATCH] exfat: make exfat_find_location() static Make exfat_find_location() static Signed-off-by: Christophe Vu-Brugier Signed-off-by: Namjae Jeon --- dir.c | 4 ++-- exfat_fs.h | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/dir.c b/dir.c index 8a2750af62b9..3b56cbc30af4 100644 --- a/dir.c +++ b/dir.c @@ -667,8 +667,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; diff --git a/exfat_fs.h b/exfat_fs.h index 69b8793b5eb0..8052cb8d39b6 100644 --- a/exfat_fs.h +++ b/exfat_fs.h @@ -485,8 +485,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);