debuggers.hg

changeset 22749:611e46390bf6

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>
author Keir Fraser <keir@xen.org>
date Tue Jan 11 10:33:20 2011 +0000 (2011-01-11)
parents c89a28b70b62
children ca590ccc7a0b
files tools/xenpaging/xenpaging.c
line diff
     1.1 --- a/tools/xenpaging/xenpaging.c	Tue Jan 11 10:32:59 2011 +0000
     1.2 +++ b/tools/xenpaging/xenpaging.c	Tue Jan 11 10:33:20 2011 +0000
     1.3 @@ -73,7 +73,7 @@ static void *init_page(void)
     1.4      return NULL;
     1.5  }
     1.6  
     1.7 -xenpaging_t *xenpaging_init(domid_t domain_id)
     1.8 +static xenpaging_t *xenpaging_init(domid_t domain_id)
     1.9  {
    1.10      xenpaging_t *paging;
    1.11      xc_interface *xch;
    1.12 @@ -251,7 +251,7 @@ xenpaging_t *xenpaging_init(domid_t doma
    1.13      return NULL;
    1.14  }
    1.15  
    1.16 -int xenpaging_teardown(xenpaging_t *paging)
    1.17 +static int xenpaging_teardown(xenpaging_t *paging)
    1.18  {
    1.19      int rc;
    1.20      xc_interface *xch;
    1.21 @@ -343,7 +343,7 @@ static int put_response(mem_event_t *mem
    1.22      return 0;
    1.23  }
    1.24  
    1.25 -int xenpaging_evict_page(xenpaging_t *paging,
    1.26 +static int xenpaging_evict_page(xenpaging_t *paging,
    1.27                           xenpaging_victim_t *victim, int fd, int i)
    1.28  {
    1.29      xc_interface *xch = paging->xc_handle;