HomeFreeBSD

Linux 6.2 compat: add check for kernel_neon_* availability

Description

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

Details

Provenance
Shengqi Chen <harry-chen@outlook.com>Authored on Jan 9 2024, 12:05 AM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Jan 12 2024, 8:38 PM
Parents
rGf71c16a66126: Don't panic on unencrypted block in encrypted dataset
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG976bf9b6a619: Linux 6.2 compat: add check for kernel_neon_* availability (authored by Shengqi Chen <harry-chen@outlook.com>).Jan 12 2024, 8:38 PM