diff options
author | Martin Matuška <[email protected]> | 2023-04-06 19:35:02 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2023-04-06 10:35:02 -0700 |
commit | a3f82aec933660558d6512a83481527ef731ff0c (patch) | |
tree | 1d131a689adc233d7c3d20efdf32a0798475cba4 /module/zcommon/zfs_prop.c | |
parent | ece7ab7e7de81a9a51923d7baa7db3577de4aace (diff) |
Miscellaneous FreBSD compilation bugfixes
Add missing machine/md_var.h to spl/sys/simd_aarch64.h and
spl/sys/simd_arm.h
In spl/sys/simd_x86.h, PCB_FPUNOSAVE exists only on amd64, use PCB_NPXNOSAVE
on i386
In FreeBSD sys/elf_common.h redefines AT_UID and AT_GID on FreeBSD, we need
a hack in vnode.h similar to Linux. sys/simd.h needs to be included early.
In zfs_freebsd_copy_file_range() we pass a (size_t *)lenp to
zfs_clone_range() that expects a (uint64_t *)
Allow compiling armv6 world by limiting ARM macros in sha256_impl.c and
sha512_impl.c to __ARM_ARCH > 6
Reviewed-by: Alexander Motin <[email protected]>
Reviewed-by: Tino Reichardt <[email protected]>
Reviewed-by: Richard Yao <[email protected]>
Reviewed-by: Pawel Jakub Dawidek <[email protected]>
Reviewed-by: Signed-off-by: WHR <[email protected]>
Signed-off-by: Martin Matuska <[email protected]>
Closes #14674
Diffstat (limited to 'module/zcommon/zfs_prop.c')
-rw-r--r-- | module/zcommon/zfs_prop.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/module/zcommon/zfs_prop.c b/module/zcommon/zfs_prop.c index 9c65702b8..3db6fd13f 100644 --- a/module/zcommon/zfs_prop.c +++ b/module/zcommon/zfs_prop.c @@ -30,6 +30,10 @@ /* Portions Copyright 2010 Robert Milkowski */ +#if defined(_KERNEL) +#include <sys/simd.h> +#endif + #include <sys/zio.h> #include <sys/spa.h> #include <sys/u8_textprep.h> @@ -1037,8 +1041,6 @@ zfs_prop_align_right(zfs_prop_t prop) #if defined(_KERNEL) -#include <sys/simd.h> - #if defined(HAVE_KERNEL_FPU_INTERNAL) uint8_t **zfs_kfpu_fpregs; EXPORT_SYMBOL(zfs_kfpu_fpregs); |