From 79f0935fab1122d466f67885e84d878c107e34df Mon Sep 17 00:00:00 2001 From: Ryan Moeller Date: Fri, 2 Oct 2020 20:48:45 -0400 Subject: [PATCH] FreeBSD: Sort out kernel FPU headers for 12.1-REL We were missing an include for kernel FPU functions, breaking the build on FreeBSD 12.1-RELEASE. This was apparently being pulled in from elsewhere on stable/12 and head. Sorted the other includes in these files while here. Reviewed-by: Alexander Motin Signed-off-by: Ryan Moeller Closes #11005 --- include/os/freebsd/spl/sys/simd_x86.h | 11 ++++------- module/os/freebsd/spl/spl_taskq.c | 11 +++++++---- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/include/os/freebsd/spl/sys/simd_x86.h b/include/os/freebsd/spl/sys/simd_x86.h index 63d6017b7..480bfd289 100644 --- a/include/os/freebsd/spl/sys/simd_x86.h +++ b/include/os/freebsd/spl/sys/simd_x86.h @@ -26,15 +26,12 @@ * $FreeBSD$ */ -#include #include -#include +#include #include -#ifdef __i386__ -#include -#else -#include -#endif +#include + +#include #include #include diff --git a/module/os/freebsd/spl/spl_taskq.c b/module/os/freebsd/spl/spl_taskq.c index cc025de95..b9e1fb52b 100644 --- a/module/os/freebsd/spl/spl_taskq.c +++ b/module/os/freebsd/spl/spl_taskq.c @@ -29,18 +29,21 @@ #include __FBSDID("$FreeBSD$"); -#include #include +#include +#include #include #include #include #include #include -#include #include +#include #include -#include -#include + +#if defined(__i386__) || defined(__amd64__) || defined(__aarch64__) +#include +#endif #include