From: Ian Campbell Subject: Re: [PATCH v2 2/9] xen: arm: Implement variable levels in dump_pt_walk Date: Tue, 9 Sep 2014 16:08:06 +0100 Message-ID: <1410275286.8217.225.camel@kazak.uk.xensource.com> References: <4427aba8dad3155fca151a0b63bfdf78e3a91033.1409847257.git.ian.campbell@citrix.com> <540E1E7C.6030604@linaro.org> <1410275064.8217.224.camel@kazak.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1410275064.8217.224.camel@kazak.uk.xensource.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: Julien Grall Cc: stefano.stabellini@eu.citrix.com, tim@xen.org, vijay.kilari@gmail.com, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Tue, 2014-09-09 at 16:04 +0100, Ian Campbell wrote: > On Mon, 2014-09-08 at 14:24 -0700, Julien Grall wrote: > > > + /* mappings[root_level] is provided by the caller so don't unmap that */ > > > + do > > > + { > > > + unmap_domain_page(mappings[level]); > > > + } > > > + while( level-- > root_level ); > > > > NIT: It looks like we commonly use the coding style > > > > do > > { > > } while ( ... ) > > Seems we do. Seems inconsistent with if() and while/do loops to me. Oh > well. Actually now I go to look for the line in question it seems like we actually have a pretty arbitrary mixture. I'm going to stick with the extra newline (I did fix the missing space after the while though). Ian.