]> www.infradead.org Git - mtd-utils.git/commit
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)
commitb66c6ce14c0089ac4fa5372df1af631a055ad5b4
tree8709ccfabff15b131e3da92032efdbb2b652c7de
parent8e8697a4ee2edbc14f16720613cbf408d70eb895
tests: checkfs: Add previous prototype for do_pwr_dn()

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