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 <hutter2@llnl.gov> Reviewed-by: Attila Fülöp <attila@fueloep.org> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #13089
This commit is contained in:
parent
d24bdf4ee4
commit
f4c2b21823
|
@ -318,13 +318,13 @@ kfpu_begin(void)
|
||||||
#if defined(HAVE_XSAVES)
|
#if defined(HAVE_XSAVES)
|
||||||
if (static_cpu_has(X86_FEATURE_XSAVES)) {
|
if (static_cpu_has(X86_FEATURE_XSAVES)) {
|
||||||
kfpu_do_xsave("xsaves", &state->xsave, ~0);
|
kfpu_do_xsave("xsaves", &state->xsave, ~0);
|
||||||
goto out;
|
return;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#if defined(HAVE_XSAVEOPT)
|
#if defined(HAVE_XSAVEOPT)
|
||||||
if (static_cpu_has(X86_FEATURE_XSAVEOPT)) {
|
if (static_cpu_has(X86_FEATURE_XSAVEOPT)) {
|
||||||
kfpu_do_xsave("xsaveopt", &state->xsave, ~0);
|
kfpu_do_xsave("xsaveopt", &state->xsave, ~0);
|
||||||
goto out;
|
return;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
if (static_cpu_has(X86_FEATURE_XSAVE)) {
|
if (static_cpu_has(X86_FEATURE_XSAVE)) {
|
||||||
|
@ -334,7 +334,6 @@ kfpu_begin(void)
|
||||||
} else {
|
} else {
|
||||||
kfpu_save_fsave(&state->fsave);
|
kfpu_save_fsave(&state->fsave);
|
||||||
}
|
}
|
||||||
out:
|
|
||||||
}
|
}
|
||||||
#endif /* defined(HAVE_KERNEL_FPU_XSAVE_INTERNAL) */
|
#endif /* defined(HAVE_KERNEL_FPU_XSAVE_INTERNAL) */
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue