From b66c6ce14c0089ac4fa5372df1af631a055ad5b4 Mon Sep 17 00:00:00 2001
From: Zhihao Cheng <chengzhihao1@huawei.com>
Date: Sun, 26 Jan 2025 14:42:01 +0800
Subject: [PATCH] tests: checkfs: Add previous prototype for do_pwr_dn()
MIME-Version: 1.0
Content-Type: text/plain; charset=utf8
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 <chengzhihao1@huawei.com>
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
---
 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 <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
-- 
2.49.0