[2.1] compat: add check for kernel_neon_* availability #15761
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This patch backports the change from #15711 (to ZFS 2.2.x) because some OS vendors have back-ported this change from Linux 6.2+ to their older kernels.
The original patch addressed these issues:
EXPORT_SYMBOL_GPL
, so license compatibility must be checked before use.CONFIG_KERNEL_MODE_NEON
, but their declarations are still present. Checking in configuration phase only leads to MODPOST errors (undefined references).How Has This Been Tested?
Our CI system is building RPMs for this large matrix and this patch is applied on all ZFS 2.1 builds irrespective of the other things in the matrix:
aarch64
,x86_64
2.1
,2.2
dkms
,kabi
8
,9
(specifically we use Rocky Linux)The problem resolved by this PR only came up on EL9 aarch64, because EL9 backported the patch from Linux 6.2 in the latest version. I have successfully built and installed all of the packages this matrix creates, but due to CI using Docker, I have not yet had the opportunity to load the actual kernel modules. I assume that the project's build bot does do this, but if not, I plan on rolling this out in the next week or so and can check it then.
Types of changes
Checklist:
Signed-off-by
.