From 045f5c95b97e490634504bb04afd792b2b3dc06a Mon Sep 17 00:00:00 2001 From: anjiahao Date: Fri, 11 Aug 2023 17:48:35 +0800 Subject: [PATCH] fstest:fix build break MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fstest_main.c:340:47: note: expected ‘struct fstest_ctx_s *’ but argument is of type ‘fsblkcnt_t’ {aka ‘long long unsigned int’} 340 | static int fstest_gc(FAR struct fstest_ctx_s *ctx, size_t nbytes) | ~~~~~~~~~~~~~~~~~~~~~^~~ fstest_main.c:1168:13: error: too few arguments to function ‘fstest_gc’ 1168 | ret = fstest_gc(buf.f_bfree); | ^~~~~~~~~ fstest_main.c:340:12: note: declared here 340 | static int fstest_gc(FAR struct fstest_ctx_s *ctx, size_t nbytes) | ^~~ Signed-off-by: anjiahao --- testing/fstest/fstest_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testing/fstest/fstest_main.c b/testing/fstest/fstest_main.c index 6f757aa3dc..0acb2c6cac 100644 --- a/testing/fstest/fstest_main.c +++ b/testing/fstest/fstest_main.c @@ -375,7 +375,7 @@ static int fstest_gc(FAR struct fstest_ctx_s *ctx, size_t nbytes) } #else # define fstest_gc_withfd(f,n) (-ENOSYS) -# define fstest_gc(n) (-ENOSYS) +# define fstest_gc(ctx,n) (-ENOSYS) #endif /**************************************************************************** @@ -1165,7 +1165,7 @@ int main(int argc, FAR char *argv[]) /* Perform garbage collection, integrity checks */ - ret = fstest_gc(buf.f_bfree); + ret = fstest_gc(ctx, buf.f_bfree); UNUSED(ret); /* Show memory usage */