The SYSENTER stack is only used in configurations that support 32-bit
code and, hence, SYSENTER.  Remove it in 64-bit non-compat configurations.

Signed-off-by: Andy Lutomirski <l...@kernel.org>
---
 arch/x86/include/asm/processor.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/x86/include/asm/processor.h b/arch/x86/include/asm/processor.h
index befc1341f110..786f50e4bd90 100644
--- a/arch/x86/include/asm/processor.h
+++ b/arch/x86/include/asm/processor.h
@@ -298,10 +298,12 @@ struct tss_struct {
         */
        unsigned long           io_bitmap[IO_BITMAP_LONGS + 1];
 
+#if defined(CONFIG_X86_32) || defined(CONFIG_IA32_EMULATION)
        /*
         * Space for the temporary SYSENTER stack:
         */
        unsigned long           SYSENTER_stack[64];
+#endif
 
 } ____cacheline_aligned;
 
-- 
2.4.3

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to