Skip to content

Commit

Permalink
Fix gcc warning in kfpu_begin()
Browse files Browse the repository at this point in the history
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
  • Loading branch information
behlendorf authored Feb 11, 2022
1 parent fe804dc commit 10271af
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions include/os/linux/kernel/linux/simd_x86.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand All @@ -334,7 +334,6 @@ kfpu_begin(void)
} else {
kfpu_save_fsave(&state->fsave);
}
out:
}
#endif /* defined(HAVE_KERNEL_FPU_XSAVE_INTERNAL) */

Expand Down

0 comments on commit 10271af

Please sign in to comment.