]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
libfrog: fix crc32c self test code on cross builds
authorDarrick J. Wong <djwong@kernel.org>
Thu, 2 Dec 2021 20:24:32 +0000 (15:24 -0500)
committerEric Sandeen <sandeen@sandeen.net>
Thu, 2 Dec 2021 20:24:32 +0000 (15:24 -0500)
commit27aa80862f6ac7baaaa9b74458e1d6a9c54bc11e
tree7c50234f10c8213a30fe2a8914161801f4e3dad5
parent604087cabe4dbd56f9bcf0aa6e86662696555476
libfrog: fix crc32c self test code on cross builds

Helmut Grohne reported that the crc32c self test program fails to cross
build on 5.14.0 if the build host doesn't have liburcu installed.  We
don't need userspace RCU functionality to test crc32 on the build host,
so twiddle the header files to include only the two header files that we
actually need.

Note: Build-time testing of crc32c is useful for upstream developers so
that we can check that we haven't broken the checksum code, but we
really ought to be testing this in mkfs and repair on the user's system
so that they don't end up with garbage filesystems.  A future patch will
introduce that.

Reported-by: Helmut Grohne <helmut@subdivi.de>
Cc: Bastian Germann <bage@debian.org>
Suggested-by: Dave Chinner <david@fromorbit.com>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libfrog/crc32.c