From: Don Koch Subject: Re: [PATCH v2] Sanity check xsave area when migrating or restoring from older Xen verions Date: Mon, 20 Oct 2014 11:40:43 -0400 Message-ID: <20141020114043.a37ff8b6ac94da09e6087b6b@verizon.com> References: <1413565863-23629-1-git-send-email-dkoch@verizon.com> <5441A7FC.5070001@citrix.com> <20141020085436.bd26df02d02c3a38f7e570b2@verizon.com> <5445464F02000078000405E8@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <5445464F02000078000405E8@mail.emea.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jan Beulich Cc: Andrew Cooper , Keir Fraser , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Mon, 20 Oct 2014 16:28:47 +0100 Jan Beulich wrote: > >>> On 20.10.14 at 14:54, wrote: > > On Sat, 18 Oct 2014 00:36:28 +0100 > > Andrew Cooper wrote: > >> On 17/10/2014 18:11, Don Koch wrote: > >> > + for (int i = size; i < desc->length; i++) > >> > >> Style > > > > Is not really defined for "for". I checked the CODING_STYLE file and it only > > defines style for "if" and "while". > > Did you skip the "such as" in the section dealing with them? Still not explicitly mentioned. I would have assumed they needed spaces if it weren't for all the counterexamples. > > I found more examples of "for" statements > > with no spaces inside the parens; so, I went with that. Will fix. > > It's not just about the missing spaces. You also shouldn't declare > variables inside the for() statement. This, too, wasn't mentioned at all in CODING_STYLES, but, of course, will fix in my code (I had wondered about that, too). > > Do you want me to update the CODING_STYLES file, too? (In a separate patch, > > of course.) > > As hinted at - the document is sufficient as is afaict. > > Jan As hinted at - the document is lacking; too much is impliedn (at least, IMO). -d