]> git.proxmox.com Git - mirror_zfs.git/commit - config/kernel-fpu.m4
Linux 5.11 compat: x86 SIMD: fix kernel_fpu_{begin,end}() detection
authorAttila Fülöp <attila@fueloep.org>
Thu, 24 Feb 2022 17:23:41 +0000 (18:23 +0100)
committerGitHub <noreply@github.com>
Thu, 24 Feb 2022 17:23:41 +0000 (09:23 -0800)
commit4d14a285b341b7031c0d23b7dd6b5ad63de8f0d4
tree4d91983c265c6957c0c8b7f89447f928e8d23f18
parent361a7e821178e105c8e1206ead4479de83c2a617
Linux 5.11 compat: x86 SIMD: fix kernel_fpu_{begin,end}() detection

Linux 5.11 changed kernel_fpu_begin() to an inlined function and
moved the functionality to kernel_fpu_begin_mask(). This breaks the
existing detection mechanism since it checks if kernel_fpu_begin is
an exported kernel symbol, which isn't the case for an inlined
function.

To avoid assumptions about internal implementation, replace
ZFS_LINUX_TEST_RESULT_SYMBOL in favor of  ZFS_LINUX_TEST_RESULT
which already makes sure kernel_fpu_{begin,end}() is usable by us.

Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Attila Fülöp <attila@fueloep.org>
Closes #13147
config/kernel-fpu.m4