arm64/fpsimd: hide unused sve_to_fpsimd() function
PATCH 1/1 arm64/fpsimd: hide unused sve_to_fpsimd() function
From: Arnd Bergmann <[email protected]>
The one caller outside of an #ifdef was removed:
arch/arm64/kernel/fpsimd.c:676:13: error: 'sve_to_fpsimd' defined but not used [-Werror=unused-function]
676 | static void sve_to_fpsimd(struct task_struct *task)
| ^~~~~~~~~~~~~
Add annother #ifdef around the definition.
Fixes 929fa99b1215 ("arm64/fpsimd: signal: Always save+flush state early")
Signed-off-by Arnd Bergmann <[email protected]>
--- arch/arm64/kernel/fpsimd.c | 2 ++ 1 file changed, 2 insertions(+)
arch/arm64/kernel/fpsimd.c +2 -0
@@ -662,6 +662,7 @@ static void fpsimd_to_sve(struct task_struct *task)__fpsimd_to_sve (sst, fst, vq); } +#ifdef CONFIG_ARM64_SVE /* * Transfer the SVE state in task->thread.sve_state to * task->thread.uw.fpsimd_state.
@@ -691,6 +692,7 @@ static void sve_to_fpsimd(struct task_struct *task) fst->vregs[i] = arm64_le128_to_cpu(*p); } } +#endif void cpu_enable_fpmr (const struct arm64_cpu_capabilities *__always_unused p) {
Signature · 1 line
2.39.5