From: "Jan Beulich" Subject: Re: [PATCH v2] Sanity check xsave area when migrating or restoring from older Xen verions Date: Mon, 20 Oct 2014 16:28:47 +0100 Message-ID: <5445464F02000078000405E8@mail.emea.novell.com> References: <1413565863-23629-1-git-send-email-dkoch@verizon.com> <5441A7FC.5070001@citrix.com> <20141020085436.bd26df02d02c3a38f7e570b2@verizon.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20141020085436.bd26df02d02c3a38f7e570b2@verizon.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Don Koch Cc: Andrew Cooper , Keir Fraser , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org >>> 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? > 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. > 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