From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:47507) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QmoD1-0005mv-P3 for qemu-devel@nongnu.org; Fri, 29 Jul 2011 10:38:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QmoD0-0006dy-95 for qemu-devel@nongnu.org; Fri, 29 Jul 2011 10:38:39 -0400 Message-ID: <4E32C5CD.9070001@us.ibm.com> Date: Fri, 29 Jul 2011 09:38:05 -0500 From: Anthony Liguori MIME-Version: 1.0 References: <1311690791.7898.6.camel@d941e-10> In-Reply-To: <1311690791.7898.6.camel@d941e-10> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH] Fix a compilation error in xen-mapcache.c List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Berger Cc: qemu-trivial@nongnu.org, "qemu-devel@nongnu.org" On 07/26/2011 09:33 AM, Stefan Berger wrote: > This patch fixes a compilation error in xen-mapcache.c . > > /home/stefanb/qemu/qemu-git/xen-mapcache.c: In function =E2=80=98xen_ra= m_addr_from_mapcache=E2=80=99: > /home/stefanb/qemu/qemu-git/xen-mapcache.c:240:42: error: variable =E2=80= =98pentry=E2=80=99 set but not used [-Werror=3Dunused-but-set-variable] > cc1: all warnings being treated as errors > > Signed-off-by: Stefan Berger Applied. Thanks. Regards, Anthony Liguori > > --- > xen-mapcache.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > Index: qemu-git/xen-mapcache.c > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- qemu-git.orig/xen-mapcache.c > +++ qemu-git/xen-mapcache.c > @@ -237,7 +237,7 @@ uint8_t *xen_map_cache(target_phys_addr_ > > ram_addr_t xen_ram_addr_from_mapcache(void *ptr) > { > - MapCacheEntry *entry =3D NULL, *pentry =3D NULL; > + MapCacheEntry *entry =3D NULL; > MapCacheRev *reventry; > target_phys_addr_t paddr_index; > target_phys_addr_t size; > @@ -263,7 +263,6 @@ ram_addr_t xen_ram_addr_from_mapcache(vo > > entry =3D&mapcache->entry[paddr_index % mapcache->nr_buckets]; > while (entry&& (entry->paddr_index !=3D paddr_index || entry->si= ze !=3D size)) { > - pentry =3D entry; > entry =3D entry->next; > } > if (!entry) { > > >