]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
libxfs: fix build warnings
authorDarrick J. Wong <djwong@kernel.org>
Tue, 2 Dec 2025 01:27:29 +0000 (17:27 -0800)
committerAndrey Albershteyn <aalbersh@kernel.org>
Wed, 3 Dec 2025 10:51:37 +0000 (11:51 +0100)
commit050f309cb8530cc4bc808ef9487b66b6cdc32fe6
tree1eeb5d2f311583be382a5235489df74ed13e4e4c
parent1dc2075c2199ababcb62d863355fe20e1e46a754
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 <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
libxfs/util.c