提交 79a0ae5f 编写于 作者: T Thomas Gleixner 提交者: Aichun Shi

x86/fpu: Mark fpu__init_prepare_fx_sw_frame() as __init

mainline inclusion
from mainline-v5.16-rc1
commit 96034455
category: feature
bugzilla: https://gitee.com/openeuler/intel-kernel/issues/I590ZC
CVE: NA

Intel-SIG: commit 96034455 x86/fpu: Mark fpu__init_prepare_fx_sw_frame() as __init.

--------------------------------

No need to keep it around.
Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
Signed-off-by: NBorislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20211015011539.296435736@linutronix.deSigned-off-by: NLin Wang <lin.x.wang@intel.com>
Signed-off-by: NAichun Shi <aichun.shi@intel.com>
上级 de6a53e2
......@@ -31,6 +31,4 @@ fpu__alloc_mathframe(unsigned long sp, int ia32_frame,
unsigned long fpu__get_fpstate_size(void);
extern void fpu__init_prepare_fx_sw_frame(void);
#endif /* _ASM_X86_FPU_SIGNAL_H */
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef __X86_KERNEL_FPU_INTERNAL_H
#define __X86_KERNEL_FPU_INTERNAL_H
/* Init functions */
extern void fpu__init_prepare_fx_sw_frame(void);
#endif
......@@ -16,6 +16,8 @@
#include <asm/trapnr.h>
#include <asm/trace/fpu.h>
#include "internal.h"
static struct _fpx_sw_bytes fx_sw_reserved __ro_after_init;
static struct _fpx_sw_bytes fx_sw_reserved_ia32 __ro_after_init;
......@@ -514,7 +516,7 @@ unsigned long fpu__get_fpstate_size(void)
* This will be saved when ever the FP and extended state context is
* saved on the user stack during the signal handler delivery to the user.
*/
void fpu__init_prepare_fx_sw_frame(void)
void __init fpu__init_prepare_fx_sw_frame(void)
{
int size = fpu_user_xstate_size + FP_XSTATE_MAGIC2_SIZE;
......
......@@ -19,6 +19,7 @@
#include <asm/tlbflush.h>
#include "internal.h"
#include "xstate.h"
#define for_each_extended_xfeature(bit, mask) \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册