From: Ian Campbell Subject: Re: [PATCH v2 2/9] xen: arm: Implement variable levels in dump_pt_walk Date: Tue, 9 Sep 2014 16:04:24 +0100 Message-ID: <1410275064.8217.224.camel@kazak.uk.xensource.com> References: <4427aba8dad3155fca151a0b63bfdf78e3a91033.1409847257.git.ian.campbell@citrix.com> <540E1E7C.6030604@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <540E1E7C.6030604@linaro.org> 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 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. Ian.