aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKeir Fraser <keir@xen.org>2011-01-11 10:33:20 +0000
committerKeir Fraser <keir@xen.org>2011-01-11 10:33:20 +0000
commitb4b531b52ef3128c9a1db0ce1c6df3355aae0d32 (patch)
tree8d852ba7e9f7d39b1b5ec89fbdaaff1f7a44cd71
parent58097363efc2d53ff5e7379e18955a75679e27eb (diff)
downloadxen-b4b531b52ef3128c9a1db0ce1c6df3355aae0d32.tar.gz
xen-b4b531b52ef3128c9a1db0ce1c6df3355aae0d32.tar.bz2
xen-b4b531b52ef3128c9a1db0ce1c6df3355aae0d32.zip
xenpaging: make three functions static
xenpaging_init(), xenpaging_teardown() and xenpaging_evict_page() are only used in file scope, so they can be marked static. Signed-off-by: Olaf Hering <olaf@aepfle.de>
-rw-r--r--tools/xenpaging/xenpaging.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/xenpaging/xenpaging.c b/tools/xenpaging/xenpaging.c
index 01a67ae24e..0aed2128b9 100644
--- a/tools/xenpaging/xenpaging.c
+++ b/tools/xenpaging/xenpaging.c
@@ -73,7 +73,7 @@ static void *init_page(void)
return NULL;
}
-xenpaging_t *xenpaging_init(domid_t domain_id)
+static xenpaging_t *xenpaging_init(domid_t domain_id)
{
xenpaging_t *paging;
xc_interface *xch;
@@ -251,7 +251,7 @@ xenpaging_t *xenpaging_init(domid_t domain_id)
return NULL;
}
-int xenpaging_teardown(xenpaging_t *paging)
+static int xenpaging_teardown(xenpaging_t *paging)
{
int rc;
xc_interface *xch;
@@ -343,7 +343,7 @@ static int put_response(mem_event_t *mem_event, mem_event_response_t *rsp)
return 0;
}
-int xenpaging_evict_page(xenpaging_t *paging,
+static int xenpaging_evict_page(xenpaging_t *paging,
xenpaging_victim_t *victim, int fd, int i)
{
xc_interface *xch = paging->xc_handle;