x86/fpu: Remove .fixup usage
authorPeter Zijlstra <peterz@infradead.org>
Wed, 10 Nov 2021 10:01:14 +0000 (11:01 +0100)
committerPeter Zijlstra <peterz@infradead.org>
Sat, 11 Dec 2021 08:09:48 +0000 (09:09 +0100)
commit1c3b9091d084d92c70a4260553853509637276b9
treeccccaaac0f47bd5da646ed43664c7c1c513d4d9a
parente2b48e43284c0916ebf8e4240199b9d9747e337a
x86/fpu: Remove .fixup usage

Employ EX_TYPE_EFAULT_REG to store '-EFAULT' into the %[err] register
on exception. All the callers only ever test for 0, so the change
from -1 to -EFAULT is immaterial.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Josh Poimboeuf <jpoimboe@redhat.com>
Link: https://lore.kernel.org/r/20211110101325.604494664@infradead.org
arch/x86/kernel/fpu/legacy.h
arch/x86/kernel/fpu/xstate.h