From 10271af05c29da0b5f49d2fccb04f8394a02d27e Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Fri, 11 Feb 2022 14:31:45 -0800 Subject: 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 7c806bf2c..6d4c7a09f 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) */ -- cgit v1.2.3