[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20090601234006.GA12629@elte.hu>
Date: Tue, 2 Jun 2009 01:40:06 +0200
From: Ingo Molnar <mingo@...e.hu>
To: Christoph Hellwig <hch@...radead.org>
Cc: Masami Hiramatsu <mhiramat@...hat.com>,
Steven Rostedt <rostedt@...dmis.org>,
lkml <linux-kernel@...r.kernel.org>,
systemtap <systemtap@...rces.redhat.com>,
kvm <kvm@...r.kernel.org>,
DLE <dle-develop@...ts.sourceforge.net>,
Ananth N Mavinakayanahalli <ananth@...ibm.com>,
Frederic Weisbecker <fweisbec@...il.com>,
Roland McGrath <roland@...hat.com>, linux-arch@...r.kernel.org
Subject: Re: [PATCH -tip v8 5/7] x86: add pt_regs register and stack access
APIs
* Christoph Hellwig <hch@...radead.org> wrote:
> > + if (n < NR_REGPARMS) {
> > + switch (n) {
> > + case 0: return regs->ax;
> > + case 1: return regs->dx;
> > + case 2: return regs->cx;
> > + }
>
> Normal kernel style would be
>
> switch (n) {
> case 0:
> return regs->ax;
> case 1:
> return regs->dx;
> case 2:
> return regs->cx;
> }
the original single-line shortcut is acceptable too.
Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists