aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQu Wenruo <wqu@suse.com>2022-07-26 13:22:09 +0800
committerTom Rini <trini@konsulko.com>2022-08-05 13:25:48 -0400
commitc7f18bdd457769e7d8384d422705faeb8163ec4d (patch)
tree9699f7c18f875361bda84f63f6ce7663d273afc2
parent56edbb5eafc53cd7b34cd231ec11c7e5eb576c9f (diff)
downloadu-boot-c7f18bdd457769e7d8384d422705faeb8163ec4d.zip
u-boot-c7f18bdd457769e7d8384d422705faeb8163ec4d.tar.gz
u-boot-c7f18bdd457769e7d8384d422705faeb8163ec4d.tar.bz2
fs: fat: unexport file_fat_read_at()
That function is only utilized inside fat driver, unexport it. Signed-off-by: Qu Wenruo <wqu@suse.com>
-rw-r--r--fs/fat/fat.c4
-rw-r--r--include/fat.h2
2 files changed, 2 insertions, 4 deletions
diff --git a/fs/fat/fat.c b/fs/fat/fat.c
index df9ea2c..dcceccb 100644
--- a/fs/fat/fat.c
+++ b/fs/fat/fat.c
@@ -1243,8 +1243,8 @@ out_free_itr:
return ret;
}
-int file_fat_read_at(const char *filename, loff_t pos, void *buffer,
- loff_t maxsize, loff_t *actread)
+static int file_fat_read_at(const char *filename, loff_t pos, void *buffer,
+ loff_t maxsize, loff_t *actread)
{
fsdata fsdata;
fat_itr *itr;
diff --git a/include/fat.h b/include/fat.h
index bd8e450..a9756fb 100644
--- a/include/fat.h
+++ b/include/fat.h
@@ -200,8 +200,6 @@ static inline u32 sect_to_clust(fsdata *fsdata, int sect)
int file_fat_detectfs(void);
int fat_exists(const char *filename);
int fat_size(const char *filename, loff_t *size);
-int file_fat_read_at(const char *filename, loff_t pos, void *buffer,
- loff_t maxsize, loff_t *actread);
int file_fat_read(const char *filename, void *buffer, int maxsize);
int fat_set_blk_dev(struct blk_desc *rbdd, struct disk_partition *info);
int fat_register_device(struct blk_desc *dev_desc, int part_no);