From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Michael S. Tsirkin" Subject: Re: [PATCH 09/10] exec: remove unused variable Date: Sun, 26 Jun 2011 14:08:36 +0300 Message-ID: <20110626110836.GA5218@redhat.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Paul Brook , Kevin Wolf , Gerd Hoffmann , Anthony Liguori , Riku Voipio , Richard Henderson , Avi Kivity , Marcelo Tosatti , Alex Williamson , Blue Swirl , Stefan Weil , Jan Kiszka , Paolo Bonzini , Christoph Hellwig , Aurelien Jarno , Stefan Hajnoczi , Alexander Graf , Isaku Yamahata , kvm@vger.kernel.org To: qemu-devel@nongnu.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:61160 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753221Ab1FZLJc (ORCPT ); Sun, 26 Jun 2011 07:09:32 -0400 Content-Disposition: inline In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: On Tue, Jun 14, 2011 at 08:36:26PM +0300, Michael S. Tsirkin wrote: > Signed-off-by: Michael S. Tsirkin Any comments on this one? > --- > exec.c | 4 ++++ > 1 files changed, 4 insertions(+), 0 deletions(-) > > diff --git a/exec.c b/exec.c > index 81808f4..b784f08 100644 > --- a/exec.c > +++ b/exec.c > @@ -1207,12 +1207,16 @@ static inline void tb_alloc_page(TranslationBlock *tb, > unsigned int n, tb_page_addr_t page_addr) > { > PageDesc *p; > +#if !defined(CONFIG_USER_ONLY) > TranslationBlock *last_first_tb; > +#endif > > tb->page_addr[n] = page_addr; > p = page_find_alloc(page_addr >> TARGET_PAGE_BITS, 1); > tb->page_next[n] = p->first_tb; > +#if !defined(CONFIG_USER_ONLY) > last_first_tb = p->first_tb; > +#endif > p->first_tb = (TranslationBlock *)((long)tb | n); > invalidate_page_bitmap(p); > > -- > 1.7.5.53.gc233e