mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-26 03:09:34 +03:00
FreeBSD: disable neon usage
The neon support code does not build on FreeBSD, ifdef out references to fix linker issues on arm64. Reviewed-by: George Melikov <mail@gmelikov.ru> Reviewed-by: Ryan Moeller <ryan@iXsystems.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Matt Macy <mmacy@FreeBSD.org> Closes #10809
This commit is contained in:
parent
d6f90c78ab
commit
2dbad44710
@ -187,7 +187,7 @@ static const fletcher_4_ops_t *fletcher_4_impls[] = {
|
||||
#if defined(__x86_64) && defined(HAVE_AVX512BW)
|
||||
&fletcher_4_avx512bw_ops,
|
||||
#endif
|
||||
#if defined(__aarch64__)
|
||||
#if defined(__aarch64__) && !defined(__FreeBSD__)
|
||||
&fletcher_4_aarch64_neon_ops,
|
||||
#endif
|
||||
};
|
||||
|
@ -61,7 +61,7 @@ const raidz_impl_ops_t *raidz_all_maths[] = {
|
||||
#if defined(__x86_64) && defined(HAVE_AVX512BW) /* only x86_64 for now */
|
||||
&vdev_raidz_avx512bw_impl,
|
||||
#endif
|
||||
#if defined(__aarch64__)
|
||||
#if defined(__aarch64__) && !defined(__FreeBSD__)
|
||||
&vdev_raidz_aarch64_neon_impl,
|
||||
&vdev_raidz_aarch64_neonx2_impl,
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user