diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2014-10-13 18:54:22 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-10-13 20:18:23 -0400 |
commit | e48510f45107613bf14060eeabd658c49a044242 (patch) | |
tree | fd1d1546ad41a657ef5707a54301714b0871a45d | |
parent | 7cbc0ea79da2cbe70d8da9319895f07f872a3190 (diff) |
arch/x86/kernel/cpu/common.c: fix unused symbol warning
x86_64 allnoconfig:
arch/x86/kernel/cpu/common.c:968: warning: 'syscall32_cpu_init' defined but not used
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | arch/x86/kernel/cpu/common.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/x86/kernel/cpu/common.c b/arch/x86/kernel/cpu/common.c index d8b1166c7888..8b699bff0099 100644 --- a/arch/x86/kernel/cpu/common.c +++ b/arch/x86/kernel/cpu/common.c | |||
@@ -964,6 +964,7 @@ static void vgetcpu_set_mode(void) | |||
964 | vgetcpu_mode = VGETCPU_LSL; | 964 | vgetcpu_mode = VGETCPU_LSL; |
965 | } | 965 | } |
966 | 966 | ||
967 | #ifdef CONFIG_IA32_EMULATION | ||
967 | /* May not be __init: called during resume */ | 968 | /* May not be __init: called during resume */ |
968 | static void syscall32_cpu_init(void) | 969 | static void syscall32_cpu_init(void) |
969 | { | 970 | { |
@@ -975,7 +976,8 @@ static void syscall32_cpu_init(void) | |||
975 | 976 | ||
976 | wrmsrl(MSR_CSTAR, ia32_cstar_target); | 977 | wrmsrl(MSR_CSTAR, ia32_cstar_target); |
977 | } | 978 | } |
978 | #endif | 979 | #endif /* CONFIG_IA32_EMULATION */ |
980 | #endif /* CONFIG_X86_64 */ | ||
979 | 981 | ||
980 | #ifdef CONFIG_X86_32 | 982 | #ifdef CONFIG_X86_32 |
981 | void enable_sep_cpu(void) | 983 | void enable_sep_cpu(void) |