diff options
| -rw-r--r-- | arch/x86/include/asm/xsave.h | 1 | ||||
| -rw-r--r-- | arch/x86/kernel/xsave.c | 10 |
2 files changed, 5 insertions, 6 deletions
diff --git a/arch/x86/include/asm/xsave.h b/arch/x86/include/asm/xsave.h index d1b5f3a2fa20..0ae6b9961985 100644 --- a/arch/x86/include/asm/xsave.h +++ b/arch/x86/include/asm/xsave.h | |||
| @@ -27,7 +27,6 @@ | |||
| 27 | 27 | ||
| 28 | extern unsigned int xstate_size; | 28 | extern unsigned int xstate_size; |
| 29 | extern u64 pcntxt_mask; | 29 | extern u64 pcntxt_mask; |
| 30 | extern struct xsave_struct *init_xstate_buf; | ||
| 31 | extern u64 xstate_fx_sw_bytes[USER_XSTATE_FX_SW_WORDS]; | 30 | extern u64 xstate_fx_sw_bytes[USER_XSTATE_FX_SW_WORDS]; |
| 32 | 31 | ||
| 33 | extern void xsave_init(void); | 32 | extern void xsave_init(void); |
diff --git a/arch/x86/kernel/xsave.c b/arch/x86/kernel/xsave.c index 5adb7fb408f0..3b44a9b1eca4 100644 --- a/arch/x86/kernel/xsave.c +++ b/arch/x86/kernel/xsave.c | |||
| @@ -16,6 +16,11 @@ | |||
| 16 | */ | 16 | */ |
| 17 | u64 pcntxt_mask; | 17 | u64 pcntxt_mask; |
| 18 | 18 | ||
| 19 | /* | ||
| 20 | * Represents init state for the supported extended state. | ||
| 21 | */ | ||
| 22 | static struct xsave_struct *init_xstate_buf; | ||
| 23 | |||
| 19 | struct _fpx_sw_bytes fx_sw_reserved; | 24 | struct _fpx_sw_bytes fx_sw_reserved; |
| 20 | #ifdef CONFIG_IA32_EMULATION | 25 | #ifdef CONFIG_IA32_EMULATION |
| 21 | struct _fpx_sw_bytes fx_sw_reserved_ia32; | 26 | struct _fpx_sw_bytes fx_sw_reserved_ia32; |
| @@ -348,11 +353,6 @@ static void prepare_fx_sw_frame(void) | |||
| 348 | #endif | 353 | #endif |
| 349 | } | 354 | } |
| 350 | 355 | ||
| 351 | /* | ||
| 352 | * Represents init state for the supported extended state. | ||
| 353 | */ | ||
| 354 | struct xsave_struct *init_xstate_buf; | ||
| 355 | |||
| 356 | #ifdef CONFIG_X86_64 | 356 | #ifdef CONFIG_X86_64 |
| 357 | unsigned int sig_xstate_size = sizeof(struct _fpstate); | 357 | unsigned int sig_xstate_size = sizeof(struct _fpstate); |
| 358 | #endif | 358 | #endif |
