From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752182AbdLAR75 (ORCPT ); Fri, 1 Dec 2017 12:59:57 -0500 Received: from mail.skyhub.de ([5.9.137.197]:55812 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751793AbdLAR74 (ORCPT ); Fri, 1 Dec 2017 12:59:56 -0500 Date: Fri, 1 Dec 2017 18:59:49 +0100 From: Borislav Petkov To: Ingo Molnar , Andy Lutomirski Cc: linux-kernel@vger.kernel.org, Dave Hansen , Andy Lutomirski , Thomas Gleixner , "H . Peter Anvin" , Peter Zijlstra , Linus Torvalds Subject: Re: [PATCH 21/21] x86/entry: Clean up the SYSENTER_stack code Message-ID: <20171201175949.ph5snolszro44qvu@pd.tnic> References: <20171127104529.12435-1-mingo@kernel.org> <20171127104529.12435-22-mingo@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20171127104529.12435-22-mingo@kernel.org> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 27, 2017 at 11:45:29AM +0100, Ingo Molnar wrote: > diff --git a/arch/x86/include/asm/fixmap.h b/arch/x86/include/asm/fixmap.h > index 81fdc405ab1f..5a1013df456e 100644 > --- a/arch/x86/include/asm/fixmap.h > +++ b/arch/x86/include/asm/fixmap.h > @@ -237,5 +237,10 @@ static inline struct cpu_entry_area *get_cpu_entry_area(int cpu) > return (struct cpu_entry_area *)__fix_to_virt(__get_cpu_entry_area_page_index(cpu, 0)); > } > > +static inline struct SYSENTER_stack *cpu_SYSENTER_stack(int cpu) > +{ > + return &get_cpu_entry_area((cpu))->tss.SYSENTER_stack; ^^^^^^^^^ Those inner brackets are not needed, right? -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.