From b66c6ce14c0089ac4fa5372df1af631a055ad5b4 Mon Sep 17 00:00:00 2001 From: Zhihao Cheng Date: Sun, 26 Jan 2025 14:42:01 +0800 Subject: tests: checkfs: Add previous prototype for do_pwr_dn() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: David Oberhollenzer --- tests/checkfs/comm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/checkfs/comm.c b/tests/checkfs/comm.c index c8c457e..9f4e20d 100644 --- a/tests/checkfs/comm.c +++ b/tests/checkfs/comm.c @@ -28,6 +28,8 @@ #include #include +int do_pwr_dn(int fd, int cycleCnt); + /* This is the routine that forms and sends the "ok to pwr me down" message -- cgit v1.2.3