From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030789Ab2CIUWF (ORCPT ); Fri, 9 Mar 2012 15:22:05 -0500 Received: from hrndva-omtalb.mail.rr.com ([71.74.56.122]:32719 "EHLO hrndva-omtalb.mail.rr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030683Ab2CIUWC (ORCPT ); Fri, 9 Mar 2012 15:22:02 -0500 X-Authority-Analysis: v=2.0 cv=d9t3OGfE c=1 sm=0 a=ZycB6UtQUfgMyuk2+PxD7w==:17 a=XQbtiDEiEegA:10 a=LV9YWpXf9bAA:10 a=5SG0PmZfjMsA:10 a=Q9fys5e9bTEA:10 a=xa9Klso0PMj_4_VblnkA:9 a=PUjeQqilurYA:10 a=ZycB6UtQUfgMyuk2+PxD7w==:117 X-Cloudmark-Score: 0 X-Originating-IP: 74.67.80.29 Message-ID: <1331324518.25686.606.camel@gandalf.stny.rr.com> Subject: Re: [PATCH] x86: use enum instead of literals for trap values From: Steven Rostedt To: "H. Peter Anvin" Cc: Borislav Petkov , Kees Cook , Ingo Molnar , linux-kernel@vger.kernel.org, Thomas Gleixner , Ingo Molnar , x86@kernel.org, Andy Lutomirski , Hidetoshi Seto , Andrew Morton , Mike Frysinger , Peter Zijlstra Date: Fri, 09 Mar 2012 15:21:58 -0500 In-Reply-To: <4F5A644C.3080306@zytor.com> References: <20120309074202.GA28609@www.outflux.net> <20120309092845.GA10281@elte.hu> <4F5A448D.70605@zytor.com> <20120309182829.GA13745@aftab> <20120309190842.GC13745@aftab> <4F5A644C.3080306@zytor.com> Content-Type: text/plain; charset="ISO-8859-15" X-Mailer: Evolution 3.2.2-1 Content-Transfer-Encoding: 7bit Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2012-03-09 at 12:13 -0800, H. Peter Anvin wrote: > On 03/09/2012 11:08 AM, Borislav Petkov wrote: > > > > So is this reserved or are we using it for Spurious IRQs? If we use it, > > then 'RES' is a bad name. Maybe we define our own like > > > > X86_VEC_SP > > > > and then do > > > > X86_VEC_IR for IRET > > > > in the manner we assumed for the rest? > > > > Actually I prefer if we didn't use two-letter versions for the ones that > aren't defined in the documentation; especially IRET which is a pure > Linux invention. > I agree with this. The two-letter abbreviations are good if they come from the official documentation. This makes it easy to reference. For the Linux made up ones, a more descriptive name is better. Then there wont be confusion when people look at "IR" and can't find it online or in the document, and scratch their head thinking they are not smart enough to do kernel development and we lose another kernel developer ;-) -- Steve