[PATCH] arm64/fpsimd: Avoid warning when sve_to_fpsimd() is unused

Catalin Marinas catalin.marinas at arm.com
Wed Apr 30 11:13:50 PDT 2025


On Wed, 30 Apr 2025 18:32:40 +0100, Mark Rutland wrote:
> Historically fpsimd_to_sve() and sve_to_fpsimd() were (conditionally)
> called by functions which were defined regardless of CONFIG_ARM64_SVE.
> Hence it was necessary that both fpsimd_to_sve() and sve_to_fpsimd()
> were always defined and not guarded by ifdeffery.
> 
> As a result of the removal of fpsimd_signal_preserve_current_state() in
> commit:
> 
> [...]

Applied to arm64 (for-next/sme-fixes), thanks!

[1/1] arm64/fpsimd: Avoid warning when sve_to_fpsimd() is unused
      https://git.kernel.org/arm64/c/f699c66691fb

I did not push it to for-kernelci as Will took over the for-next/*
branches (might as well have left this patch to Will).

In general, slight preference for __maybe_unused but I agree with you
that there's already precedent for static inline in this file.

-- 
Catalin




More information about the linux-arm-kernel mailing list