diff options
author | Brian Behlendorf <[email protected]> | 2022-02-11 14:31:45 -0800 |
---|---|---|
committer | GitHub <[email protected]> | 2022-02-11 14:31:45 -0800 |
commit | 10271af05c29da0b5f49d2fccb04f8394a02d27e (patch) | |
tree | efa593d603894b3799106bb9bd765f4467908990 /include/os | |
parent | fe804dc412d97ff0883d8283478f539fd84de6e2 (diff) |
Fix gcc warning in kfpu_begin()
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 <[email protected]>
Reviewed-by: Attila Fülöp <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #13089
Diffstat (limited to 'include/os')
-rw-r--r-- | include/os/linux/kernel/linux/simd_x86.h | 5 |
1 files 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) */ |