Fix build on FreeBSD/powerpc64*

There's no VSX handler on FreeBSD for now.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Piotr Kubaj <pkubaj@FreeBSD.org>
Closes #13848
This commit is contained in:
pkubaj 2022-09-08 17:27:25 +00:00 committed by GitHub
parent 5724073517
commit dff541f698
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -74,7 +74,7 @@ static boolean_t blake3_is_sse2_supported(void)
{
#if defined(__x86_64)
return (kfpu_allowed() && zfs_sse2_available());
#elif defined(__PPC64__)
#elif defined(__PPC64__) && defined(__linux__)
return (kfpu_allowed() && zfs_vsx_available());
#else
return (kfpu_allowed());
@ -140,7 +140,7 @@ static boolean_t blake3_is_sse41_supported(void)
{
#if defined(__x86_64)
return (kfpu_allowed() && zfs_sse4_1_available());
#elif defined(__PPC64__)
#elif defined(__PPC64__) && defined(__linux__)
return (kfpu_allowed() && zfs_vsx_available());
#else
return (kfpu_allowed());