|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 13 of 18] tools/xenpaging: fix build errors caused by -Werror
# HG changeset patch
# User Olaf Hering <olaf@xxxxxxxxx>
# Date 1333046782 -7200
# Node ID bd4bb152538c54457026d3bee6f8b9dba1021b7f
# Parent 95ab84b43c99e4c9a82cd42aca0e021a091741b4
tools/xenpaging: fix build errors caused by -Werror
-O2 -Wall -Werror triggers these warnings:
xenpaging.c: In function 'xenpaging_init':
xenpaging.c:284: warning: unused variable 'p'
xenpaging.c: In function 'xenpaging_evict_page':
xenpaging.c:606: warning: unused variable 'domctl'
xenpaging.c: In function 'resume_pages':
xenpaging.c:742: warning: unused variable 'xch'
xenpaging.c: In function 'evict_pages':
xenpaging.c:820: warning: unused variable 'xch'
Remove the offending local variables.
Signed-off-by: Olaf Hering <olaf@xxxxxxxxx>
diff -r 95ab84b43c99 -r bd4bb152538c tools/xenpaging/xenpaging.c
--- a/tools/xenpaging/xenpaging.c
+++ b/tools/xenpaging/xenpaging.c
@@ -279,7 +279,6 @@ static struct xenpaging *xenpaging_init(
xc_domaininfo_t domain_info;
xc_interface *xch = NULL;
xentoollog_logger *dbg = NULL;
- char *p;
int rc;
unsigned long ring_pfn, mmap_pfn;
@@ -601,8 +600,6 @@ static int xenpaging_evict_page(struct x
xen_pfn_t victim = gfn;
int ret;
- DECLARE_DOMCTL;
-
/* Nominate page */
ret = xc_mem_paging_nominate(xch, paging->mem_event.domain_id, gfn);
if ( ret < 0 )
@@ -737,7 +734,6 @@ static int xenpaging_populate_page(struc
/* Trigger a page-in for a batch of pages */
static void resume_pages(struct xenpaging *paging, int num_pages)
{
- xc_interface *xch = paging->xc_handle;
int i, num = 0;
for ( i = 0; i < paging->max_pages && num < num_pages; i++ )
@@ -815,7 +811,6 @@ static int evict_victim(struct xenpaging
*/
static int evict_pages(struct xenpaging *paging, int num_pages)
{
- xc_interface *xch = paging->xc_handle;
int rc, slot, num = 0;
/* Reuse known free slots */
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |