* [PATCH 2/5] x86/common.c: fix build warning when !CONFIG_IA32_EMULATION
@ 2014-10-01 23:08 Luis Henriques
0 siblings, 0 replies; only message in thread
From: Luis Henriques @ 2014-10-01 23:08 UTC (permalink / raw)
To: Thomas Gleixner, Ingo Molnar, H. Peter Anvin; +Cc: x86, linux-kernel
Function syscall32_cpu_init() is used only when CONFIG_IA32_EMULATION is
defined.
arch/x86/kernel/cpu/common.c:968:13: warning: 'syscall32_cpu_init' defined but not used [-Wunused-function]
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
---
arch/x86/kernel/cpu/common.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/x86/kernel/cpu/common.c b/arch/x86/kernel/cpu/common.c
index e4ab2b42bd6f..b7ac5404cacf 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)
vgetcpu_mode = VGETCPU_LSL;
}
+#ifdef CONFIG_IA32_EMULATION
/* May not be __init: called during resume */
static void syscall32_cpu_init(void)
{
@@ -976,6 +977,7 @@ static void syscall32_cpu_init(void)
wrmsrl(MSR_CSTAR, ia32_cstar_target);
}
#endif
+#endif
#ifdef CONFIG_X86_32
void enable_sep_cpu(void)
--
2.1.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2014-10-01 23:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-01 23:08 [PATCH 2/5] x86/common.c: fix build warning when !CONFIG_IA32_EMULATION Luis Henriques
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox