This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git


The following commit(s) were added to refs/heads/master by this push:
     new 34f71ec25 fstest:fix build break
34f71ec25 is described below

commit 34f71ec25bb00649e47441af08c8f6fe9f0fb243
Author: anjiahao <anjia...@xiaomi.com>
AuthorDate: Fri Aug 11 17:48:35 2023 +0800

    fstest:fix build break
    
    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 <anjia...@xiaomi.com>
---
 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 6f757aa3d..0acb2c6ca 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 */

Reply via email to