From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753498AbdKILMp (ORCPT ); Thu, 9 Nov 2017 06:12:45 -0500 Received: from mail-ot0-f195.google.com ([74.125.82.195]:49562 "EHLO mail-ot0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752541AbdKILMn (ORCPT ); Thu, 9 Nov 2017 06:12:43 -0500 X-Google-Smtp-Source: AGs4zMbyUIo8IQd7PCHjhe52ROD+IpDPZ3MMwBo1Xo1oIhxyIgqtW2lluGjbI6wnFAr5WhvSG4sZw7u5BDjGL//4A+o= MIME-Version: 1.0 In-Reply-To: <1509135945-13762-14-git-send-email-ricardo.neri-calderon@linux.intel.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> From: Arnd Bergmann Date: Thu, 9 Nov 2017 12:12:42 +0100 X-Google-Sender-Auth: QJxAhUqW7abCT2U8m7uGEL8qjZE Message-ID: Subject: Re: [PATCH v10 13/18] x86/insn-eval: Add utility functions to get segment selector To: Ricardo Neri Cc: 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 Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? Arnd