Skip to content

Commit

Permalink
x86, xsave: Add __init attribute to setup_xstate_features()
Browse files Browse the repository at this point in the history
This is called only from initialization code.

Signed-off-by: Robert Richter <robert.richter@amd.com>
LKML-Reference: <1279731838-1522-6-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 45c2d7f commit 4995b9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/kernel/xsave.c
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ static inline void xstate_enable(u64 mask)
* Record the offsets and sizes of different state managed by the xsave
* memory layout.
*/
static void setup_xstate_features(void)
static void __init setup_xstate_features(void)
{
int eax, ebx, ecx, edx, leaf = 0x2;

Expand Down

0 comments on commit 4995b9d

Please sign in to comment.