Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/littlefs-project/littlefs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Haster <chaster@utexas.edu>2022-03-22 04:29:04 +0300
committerChristopher Haster <chaster@utexas.edu>2022-03-22 04:29:04 +0300
commit9c7e232086f865cff0bb96fe753deb66431d91fd (patch)
tree86872e83ed2ec0695de71db12bd305ae6b1cb05e
parentc676bcee4ca9a2e8bccd888608598251b75c5980 (diff)
Fixed missing definition of lfs_cache_drop in readonly modev2.4.2
Interestingly this was introduced by two different PRs which were not tested together until pre-release testing: - Fix lfs_file_seek doesn't update cache properties correctly - Fix compiler warnings when LFS_READONLY defined
-rw-r--r--lfs.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/lfs.c b/lfs.c
index d7c692d..e165e54 100644
--- a/lfs.c
+++ b/lfs.c
@@ -12,14 +12,12 @@
/// Caching block device operations ///
-#ifndef LFS_READONLY
static inline void lfs_cache_drop(lfs_t *lfs, lfs_cache_t *rcache) {
// do not zero, cheaper if cache is readonly or only going to be
// written with identical data (during relocates)
(void)lfs;
rcache->block = LFS_BLOCK_NULL;
}
-#endif
static inline void lfs_cache_zero(lfs_t *lfs, lfs_cache_t *pcache) {
// zero to avoid information leak