mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-26 03:09:34 +03:00
Linux 5.19 compat: asm/fpu/internal.h
As of the Linux 5.19 kernel the asm/fpu/internal.h header was entirely removed. It has been effectively empty since the 5.16 kernel and provides no required functionality. Reviewed-by: Tony Hutter <hutter2@llnl.gov> Reviewed-by: Attila Fülöp <attila@fueloep.org> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #13529
This commit is contained in:
parent
42cf2ad0e4
commit
4c6526208d
@ -2,6 +2,9 @@ dnl #
|
|||||||
dnl # Handle differences in kernel FPU code.
|
dnl # Handle differences in kernel FPU code.
|
||||||
dnl #
|
dnl #
|
||||||
dnl # Kernel
|
dnl # Kernel
|
||||||
|
dnl # 5.19: The asm/fpu/internal.h header was removed, it has been
|
||||||
|
dnl # effectively empty since the 5.16 kernel.
|
||||||
|
dnl #
|
||||||
dnl # 5.11: kernel_fpu_begin() is an inlined function now, so don't check
|
dnl # 5.11: kernel_fpu_begin() is an inlined function now, so don't check
|
||||||
dnl # for it inside the kernel symbols.
|
dnl # for it inside the kernel symbols.
|
||||||
dnl #
|
dnl #
|
||||||
@ -27,10 +30,22 @@ AC_DEFUN([ZFS_AC_KERNEL_FPU_HEADER], [
|
|||||||
],[
|
],[
|
||||||
AC_DEFINE(HAVE_KERNEL_FPU_API_HEADER, 1,
|
AC_DEFINE(HAVE_KERNEL_FPU_API_HEADER, 1,
|
||||||
[kernel has asm/fpu/api.h])
|
[kernel has asm/fpu/api.h])
|
||||||
AC_MSG_RESULT(asm/fpu/api.h)
|
|
||||||
|
ZFS_LINUX_TRY_COMPILE([
|
||||||
|
#include <linux/module.h>
|
||||||
|
#include <asm/fpu/internal.h>
|
||||||
],[
|
],[
|
||||||
AC_MSG_RESULT(i387.h)
|
],[
|
||||||
|
AC_DEFINE(HAVE_KERNEL_FPU_INTERNAL_HEADER, 1,
|
||||||
|
[kernel has asm/fpu/internal.h])
|
||||||
|
AC_MSG_RESULT([asm/fpu/api.h asm/fpu/internal.h])
|
||||||
|
],[
|
||||||
|
AC_MSG_RESULT([asm/fpu/api.h])
|
||||||
])
|
])
|
||||||
|
],[
|
||||||
|
AC_MSG_RESULT([i387.h])
|
||||||
|
])
|
||||||
|
|
||||||
])
|
])
|
||||||
|
|
||||||
AC_DEFUN([ZFS_AC_KERNEL_SRC_FPU], [
|
AC_DEFUN([ZFS_AC_KERNEL_SRC_FPU], [
|
||||||
@ -38,7 +53,9 @@ AC_DEFUN([ZFS_AC_KERNEL_SRC_FPU], [
|
|||||||
#include <linux/types.h>
|
#include <linux/types.h>
|
||||||
#ifdef HAVE_KERNEL_FPU_API_HEADER
|
#ifdef HAVE_KERNEL_FPU_API_HEADER
|
||||||
#include <asm/fpu/api.h>
|
#include <asm/fpu/api.h>
|
||||||
|
#ifdef HAVE_KERNEL_FPU_INTERNAL_HEADER
|
||||||
#include <asm/fpu/internal.h>
|
#include <asm/fpu/internal.h>
|
||||||
|
#endif
|
||||||
#else
|
#else
|
||||||
#include <asm/i387.h>
|
#include <asm/i387.h>
|
||||||
#endif
|
#endif
|
||||||
@ -51,7 +68,9 @@ AC_DEFUN([ZFS_AC_KERNEL_SRC_FPU], [
|
|||||||
#include <linux/types.h>
|
#include <linux/types.h>
|
||||||
#ifdef HAVE_KERNEL_FPU_API_HEADER
|
#ifdef HAVE_KERNEL_FPU_API_HEADER
|
||||||
#include <asm/fpu/api.h>
|
#include <asm/fpu/api.h>
|
||||||
|
#ifdef HAVE_KERNEL_FPU_INTERNAL_HEADER
|
||||||
#include <asm/fpu/internal.h>
|
#include <asm/fpu/internal.h>
|
||||||
|
#endif
|
||||||
#else
|
#else
|
||||||
#include <asm/i387.h>
|
#include <asm/i387.h>
|
||||||
#endif
|
#endif
|
||||||
|
@ -93,7 +93,9 @@
|
|||||||
|
|
||||||
#if defined(HAVE_KERNEL_FPU_API_HEADER)
|
#if defined(HAVE_KERNEL_FPU_API_HEADER)
|
||||||
#include <asm/fpu/api.h>
|
#include <asm/fpu/api.h>
|
||||||
|
#if defined(HAVE_KERNEL_FPU_INTERNAL_HEADER)
|
||||||
#include <asm/fpu/internal.h>
|
#include <asm/fpu/internal.h>
|
||||||
|
#endif
|
||||||
#else
|
#else
|
||||||
#include <asm/i387.h>
|
#include <asm/i387.h>
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user