From 7279493dca6f0dfabeea5d0086253f7874b8265c Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Fri, 11 Feb 2022 14:31:45 -0800 Subject: [PATCH] Fix gcc warning in kfpu_begin() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Observed when building on CentOS 8 Stream. Remove the `out` label at the end of the function and instead return. linux/simd_x86.h: In function 'kfpu_begin': linux/simd_x86.h:337:1: error: label at end of compound statement Reviewed-by: Tony Hutter Reviewed-by: Attila Fülöp Signed-off-by: Brian Behlendorf Closes #13089 --- include/os/linux/kernel/linux/simd_x86.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/include/os/linux/kernel/linux/simd_x86.h b/include/os/linux/kernel/linux/simd_x86.h index 7c806bf2c6fa..6d4c7a09fe82 100644 --- a/include/os/linux/kernel/linux/simd_x86.h +++ b/include/os/linux/kernel/linux/simd_x86.h @@ -318,13 +318,13 @@ kfpu_begin(void) #if defined(HAVE_XSAVES) if (static_cpu_has(X86_FEATURE_XSAVES)) { kfpu_do_xsave("xsaves", &state->xsave, ~0); - goto out; + return; } #endif #if defined(HAVE_XSAVEOPT) if (static_cpu_has(X86_FEATURE_XSAVEOPT)) { kfpu_do_xsave("xsaveopt", &state->xsave, ~0); - goto out; + return; } #endif if (static_cpu_has(X86_FEATURE_XSAVE)) { @@ -334,7 +334,6 @@ kfpu_begin(void) } else { kfpu_save_fsave(&state->fsave); } -out: } #endif /* defined(HAVE_KERNEL_FPU_XSAVE_INTERNAL) */