From: Darrick J. Wong Date: Tue, 2 Dec 2025 01:27:29 +0000 (-0800) Subject: libxfs: fix build warnings X-Git-Tag: v6.18.0~46 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=050f309cb8530cc4bc808ef9487b66b6cdc32fe6;p=thirdparty%2Fxfsprogs-dev.git libxfs: fix build warnings gcc 14.2 with all the warnings turn on complains about missing prototypes for these two functions: util.c:147:1: error: no previous prototype for 'current_fixed_time' [-Werror=missing-prototypes] 147 | current_fixed_time( | ^~~~~~~~~~~~~~~~~~ util.c:590:1: error: no previous prototype for 'get_deterministic_seed' [-Werror=missing-prototypes] 590 | get_deterministic_seed( | ^~~~~~~~~~~~~~~~~~~~~~ Since they're not used outside of util.c, just make them static. Fixes: 4a54700b4385bb ("libxfs: support reproducible filesystems using deterministic time/seed") Signed-off-by: Darrick J. Wong Reviewed-by: Christoph Hellwig --- diff --git a/libxfs/util.c b/libxfs/util.c index f6af4531..334e88cd 100644 --- a/libxfs/util.c +++ b/libxfs/util.c @@ -143,7 +143,7 @@ xfs_log_calc_unit_res( * * Returns true on success, fail otherwise. */ -bool +static bool current_fixed_time( struct timespec64 *tv) { @@ -586,7 +586,7 @@ void xfs_inode_mark_sick(struct xfs_inode *ip, unsigned int mask) { } * * Returns true on success, fail otherwise. */ -bool +static bool get_deterministic_seed( uint32_t *result) {