From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754940AbdKINuS (ORCPT ); Thu, 9 Nov 2017 08:50:18 -0500 Received: from mail-wr0-f195.google.com ([209.85.128.195]:47409 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754799AbdKINuO (ORCPT ); Thu, 9 Nov 2017 08:50:14 -0500 X-Google-Smtp-Source: ABhQp+SDZwI1n1J3Z/0KuvEUvawINr1rLQck3fvFTWQ72aFEY0zrj4zZfKVBbqtOoGgCkRrBflMqLg== Date: Thu, 9 Nov 2017 14:50:09 +0100 From: Ingo Molnar To: Arnd Bergmann Cc: Ricardo Neri , Ingo Molnar , Thomas Gleixner , "H. Peter Anvin" , Andy Lutomirski , Borislav Petkov , Peter Zijlstra , Andrew Morton , Brian Gerst , Chris Metcalf , Dave Hansen , Paolo Bonzini , Masami Hiramatsu , Huang Rui , Jiri Slaby , Jonathan Corbet , "Michael S. Tsirkin" , Paul Gortmaker , Vlastimil Babka , Chen Yucong , "Ravi V. Shankar" , Shuah Khan , Linux Kernel Mailing List , the arch/x86 maintainers , ricardo.neri@intel.com, Adam Buchbinder , Colin Ian King , Lorenzo Stoakes , Qiaowei Ren , Arnaldo Carvalho de Melo , Adrian Hunter , Kees Cook , Thomas Garnier , Dmitry Vyukov , Josh Poimboeuf Subject: Re: [PATCH v10 13/18] x86/insn-eval: Add utility functions to get segment selector Message-ID: <20171109135009.w2rnshuttqdx5h52@gmail.com> References: <1509135945-13762-1-git-send-email-ricardo.neri-calderon@linux.intel.com> <1509135945-13762-14-git-send-email-ricardo.neri-calderon@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Arnd Bergmann wrote: > On Fri, Oct 27, 2017 at 10:25 PM, Ricardo Neri > wrote: > > > diff --git a/arch/x86/include/asm/inat.h b/arch/x86/include/asm/inat.h > > index 02aff08..1c78580 100644 > > --- a/arch/x86/include/asm/inat.h > > +++ b/arch/x86/include/asm/inat.h > > @@ -97,6 +97,16 @@ > > #define INAT_MAKE_GROUP(grp) ((grp << INAT_GRP_OFFS) | INAT_MODRM) > > #define INAT_MAKE_IMM(imm) (imm << INAT_IMM_OFFS) > > > > +/* Identifiers for segment registers */ > > +#define INAT_SEG_REG_IGNORE 0 > > +#define INAT_SEG_REG_DEFAULT 1 > > +#define INAT_SEG_REG_CS 2 > > +#define INAT_SEG_REG_SS 3 > > +#define INAT_SEG_REG_DS 4 > > +#define INAT_SEG_REG_ES 5 > > +#define INAT_SEG_REG_FS 6 > > +#define INAT_SEG_REG_GS 7 > > + > > linux-next still reports a warning because of this change: > > Warning: synced file at 'tools/objtool/arch/x86/include/asm/inat.h' > differs from latest kernel version at 'arch/x86/include/asm/inat.h' > > Should the same change be applied to the objtool file in the > tip:x86/mpx branch? No, the best flow is that the headers will be synced once both components are upstream. This is an integration artifact - and we don't want to 'pre sync', because what happens if Linus has to reject the arch/x86/include/asm/inat.h changes for whatever reason, and the tooling changes go upstream first? Thanks, Ingo