Skip to content

Commit

Permalink
x86, xsave: Make init_xstate_buf static
Browse files Browse the repository at this point in the history
The pointer is only used in xsave.c. Making it static.

Signed-off-by: Robert Richter <robert.richter@amd.com>
LKML-Reference: <1279731838-1522-5-git-send-email-robert.richter@amd.com>
Acked-by: Suresh Siddha <suresh.b.siddha@intel.com>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
  • Loading branch information
Robert Richter authored and H. Peter Anvin committed Jul 21, 2010
1 parent ee813d5 commit 45c2d7f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion arch/x86/include/asm/xsave.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@

extern unsigned int xstate_size;
extern u64 pcntxt_mask;
extern struct xsave_struct *init_xstate_buf;
extern u64 xstate_fx_sw_bytes[USER_XSTATE_FX_SW_WORDS];

extern void xsave_init(void);
Expand Down
10 changes: 5 additions & 5 deletions arch/x86/kernel/xsave.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@
*/
u64 pcntxt_mask;

/*
* Represents init state for the supported extended state.
*/
static struct xsave_struct *init_xstate_buf;

struct _fpx_sw_bytes fx_sw_reserved;
#ifdef CONFIG_IA32_EMULATION
struct _fpx_sw_bytes fx_sw_reserved_ia32;
Expand Down Expand Up @@ -348,11 +353,6 @@ static void prepare_fx_sw_frame(void)
#endif
}

/*
* Represents init state for the supported extended state.
*/
struct xsave_struct *init_xstate_buf;

#ifdef CONFIG_X86_64
unsigned int sig_xstate_size = sizeof(struct _fpstate);
#endif
Expand Down

0 comments on commit 45c2d7f

Please sign in to comment.