]> www.infradead.org Git - mtd-utils.git/commitdiff
tests: checkfs: Add previous prototype for do_pwr_dn()
authorZhihao Cheng <chengzhihao1@huawei.com>
Sun, 26 Jan 2025 06:42:01 +0000 (14:42 +0800)
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>
Thu, 30 Jan 2025 17:30:16 +0000 (18:30 +0100)
The compiler complains following message:
 tests/checkfs/comm.c:37:5: warning: no previous prototype for
 ‘do_pwr_dn’
The function do_pwr_dn() is only used in tests/checkfs/checkfs.c, but
we still keep it in tests/checkfs/comm.c in case the function() is
used by more callers. Fix it by adding a previous declaration.

Signed-off-by: Zhihao Cheng <chengzhihao1@huawei.com>
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
tests/checkfs/comm.c

index c8c457ef17638cfb01bac975e5d0db95b9744078..9f4e20d858eb5485682c00c36dcf8781ee372389 100644 (file)
@@ -28,6 +28,8 @@
 #include <unistd.h>
 #include <string.h>
 
+int do_pwr_dn(int fd, int cycleCnt);
+
 /*
   This is the routine that forms and
   sends the "ok to pwr me down" message