Skip to content

Commit

Permalink
Merge pull request littlefs-project#58 from geky-bot/lfs-v2.8.1
Browse files Browse the repository at this point in the history
Bring in littlefs v2.8.1
  • Loading branch information
geky authored Oct 31, 2023
2 parents 9396e84 + 41f7c65 commit c7e2d65
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions littlefs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ CFLAGS += -fcallgraph-info=su
CFLAGS += -g3
CFLAGS += -I.
CFLAGS += -std=c99 -Wall -Wextra -pedantic
CFLAGS += -Wmissing-prototypes
CFLAGS += -ftrack-macro-expansion=0
ifdef DEBUG
CFLAGS += -O0
Expand Down Expand Up @@ -354,6 +355,7 @@ summary-diff sizes-diff: $(OBJ) $(CI)

## Build the test-runner
.PHONY: test-runner build-test
test-runner build-test: CFLAGS+=-Wno-missing-prototypes
ifndef NO_COV
test-runner build-test: CFLAGS+=--coverage
endif
Expand Down Expand Up @@ -405,6 +407,7 @@ testmarks-diff: $(TEST_CSV)

## Build the bench-runner
.PHONY: bench-runner build-bench
bench-runner build-bench: CFLAGS+=-Wno-missing-prototypes
ifdef YES_COV
bench-runner build-bench: CFLAGS+=--coverage
endif
Expand Down
4 changes: 2 additions & 2 deletions littlefs/lfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -4999,7 +4999,7 @@ static int lfs_fs_forceconsistency(lfs_t *lfs) {
#endif

#ifndef LFS_READONLY
int lfs_fs_rawmkconsistent(lfs_t *lfs) {
static int lfs_fs_rawmkconsistent(lfs_t *lfs) {
// lfs_fs_forceconsistency does most of the work here
int err = lfs_fs_forceconsistency(lfs);
if (err) {
Expand Down Expand Up @@ -5046,7 +5046,7 @@ static lfs_ssize_t lfs_fs_rawsize(lfs_t *lfs) {
}

#ifndef LFS_READONLY
int lfs_fs_rawgrow(lfs_t *lfs, lfs_size_t block_count) {
static int lfs_fs_rawgrow(lfs_t *lfs, lfs_size_t block_count) {
// shrinking is not supported
LFS_ASSERT(block_count >= lfs->block_count);

Expand Down

0 comments on commit c7e2d65

Please sign in to comment.