git: 0a7fa9d11b20 - main - zfs: fix powerpc64le build
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 08 Jul 2022 16:10:24 UTC
The branch main has been updated by pkubaj (ports committer): URL: https://cgit.FreeBSD.org/src/commit/?id=0a7fa9d11b2007331857c9575bd9b77d86c88fe4 commit 0a7fa9d11b2007331857c9575bd9b77d86c88fe4 Author: Piotr Kubaj <pkubaj@FreeBSD.org> AuthorDate: 2022-07-08 15:21:53 +0000 Commit: Piotr Kubaj <pkubaj@FreeBSD.org> CommitDate: 2022-07-08 16:10:24 +0000 zfs: fix powerpc64le build PR: 265003 Reviewed by: alfredo (on IRC) --- sys/contrib/openzfs/module/icp/algs/blake3/blake3_x86-64.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/sys/contrib/openzfs/module/icp/algs/blake3/blake3_x86-64.c b/sys/contrib/openzfs/module/icp/algs/blake3/blake3_x86-64.c index 48715e2128d2..505439565069 100644 --- a/sys/contrib/openzfs/module/icp/algs/blake3/blake3_x86-64.c +++ b/sys/contrib/openzfs/module/icp/algs/blake3/blake3_x86-64.c @@ -74,9 +74,12 @@ 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 +#if defined(__PPC64__) && defined(__FreeBSD__) +#warning FIXME: implement vsx handler for FreeBSD +#endif return (kfpu_allowed()); #endif } @@ -140,9 +143,12 @@ 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 +#if defined(__PPC64__) && defined(__FreeBSD__) +#warning FIXME: implement vsx handler for FreeBSD +#endif return (kfpu_allowed()); #endif }