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 <hutter2@llnl.gov>
Reviewed-by: Attila Fülöp <attila@fueloep.org>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes openzfs#13089
  • Loading branch information
behlendorf authored and tonyhutter committed Feb 15, 2022
1 parent cdde8e7 commit 7279493
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 7279493

Please sign in to comment.