From a3f82aec933660558d6512a83481527ef731ff0c Mon Sep 17 00:00:00 2001 From: Martin Matuška Date: Thu, 6 Apr 2023 19:35:02 +0200 Subject: 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 Reviewed-by: Tino Reichardt Reviewed-by: Richard Yao Reviewed-by: Pawel Jakub Dawidek Reviewed-by: Signed-off-by: WHR Signed-off-by: Martin Matuska Closes #14674 --- module/zfs/vdev_raidz_math.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'module/zfs/vdev_raidz_math.c') diff --git a/module/zfs/vdev_raidz_math.c b/module/zfs/vdev_raidz_math.c index 66f211c43..e12b96170 100644 --- a/module/zfs/vdev_raidz_math.c +++ b/module/zfs/vdev_raidz_math.c @@ -22,6 +22,7 @@ * Copyright (C) 2016 Gvozden Nešković. All rights reserved. */ +#include #include #include #include @@ -29,7 +30,6 @@ #include #include #include -#include /* Opaque implementation with NULL methods to represent original methods */ static const raidz_impl_ops_t vdev_raidz_original_impl = { -- cgit v1.2.3