From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olaf Hering Subject: [PATCH 05/12] xenpaging: make three functions static Date: Mon, 10 Jan 2011 17:43:50 +0100 Message-ID: <20110110164347.391469572@aepfle.de> References: <20110110164345.521919826@aepfle.de> Return-path: Content-Disposition: inline; filename=xen-unstable.xenpaging.static_functions.patch List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org 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 --- tools/xenpaging/xenpaging.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- xen-unstable.hg-4.1.22697.orig/tools/xenpaging/xenpaging.c +++ xen-unstable.hg-4.1.22697/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 doma 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 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;