]> git.proxmox.com Git - mirror_zfs.git/commit
Linux 6.2 compat: add check for kernel_neon_* availability
authorShengqi Chen <harry-chen@outlook.com>
Tue, 9 Jan 2024 00:05:24 +0000 (08:05 +0800)
committerGitHub <noreply@github.com>
Tue, 9 Jan 2024 00:05:24 +0000 (16:05 -0800)
commit7b89149c9f120e2fb1c08e7f903a0c671340fabd
treed8b3b97562995f90e6e1799bdc18a9c80b5af9df
parent07e95b4670dc421ec726a2b4efa97a22fe572005
Linux 6.2 compat: add check for kernel_neon_* availability

This patch adds check for `kernel_neon_*` symbols on arm and arm64
platforms to address the following issues:

1. Linux 6.2+ on arm64 has exported them with `EXPORT_SYMBOL_GPL`, so
   license compatibility must be checked before use.
2. On both arm and arm64, the definitions of these symbols are guarded
   by `CONFIG_KERNEL_MODE_NEON`, but their declarations are still
   present. Checking in configuration phase only leads to MODPOST
   errors (undefined references).

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Shengqi Chen <harry-chen@outlook.com>
Closes #15711
Closes #14555
Closes: #15401
config/kernel-fpu.m4
include/os/linux/kernel/linux/simd_aarch64.h
include/os/linux/kernel/linux/simd_arm.h