[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] ioemu: make various functions in i386-dm/helper2.c static



These functions don't seem to be used outside of i386-dm/helper2.c

Signed-off-by: Simon Horman <horms@xxxxxxxxxxxx>

--- 

 i386-dm/helper2.c |   23 ++++++++++++-----------
 1 file changed, 12 insertions(+), 11 deletions(-)

Index: ioemu-remote/i386-dm/helper2.c
===================================================================
--- ioemu-remote.orig/i386-dm/helper2.c 2009-03-02 15:18:05.000000000 +1100
+++ ioemu-remote/i386-dm/helper2.c      2009-03-02 15:18:33.000000000 +1100
@@ -211,7 +211,7 @@ target_phys_addr_t cpu_get_phys_page_deb
 }
 
 //some functions to handle the io req packet
-void sp_info(void)
+static void sp_info(void)
 {
     ioreq_t *req;
     int i;
@@ -281,7 +281,8 @@ static ioreq_t *cpu_get_ioreq(void)
     return NULL;
 }
 
-unsigned long do_inp(CPUState *env, unsigned long addr, unsigned long size)
+static unsigned long do_inp(CPUState *env, unsigned long addr,
+                            unsigned long size)
 {
     switch(size) {
     case 1:
@@ -296,8 +297,8 @@ unsigned long do_inp(CPUState *env, unsi
     }
 }
 
-void do_outp(CPUState *env, unsigned long addr,
-             unsigned long size, unsigned long val)
+static void do_outp(CPUState *env, unsigned long addr,
+                    unsigned long size, unsigned long val)
 {
     switch(size) {
     case 1:
@@ -325,7 +326,7 @@ static inline void write_physical(uint64
     return cpu_physical_memory_rw((target_phys_addr_t)addr, val, size, 1);
 }
 
-void cpu_ioreq_pio(CPUState *env, ioreq_t *req)
+static void cpu_ioreq_pio(CPUState *env, ioreq_t *req)
 {
     int i, sign;
 
@@ -360,7 +361,7 @@ void cpu_ioreq_pio(CPUState *env, ioreq_
     }
 }
 
-void cpu_ioreq_move(CPUState *env, ioreq_t *req)
+static void cpu_ioreq_move(CPUState *env, ioreq_t *req)
 {
     int i, sign;
 
@@ -421,7 +422,7 @@ void timeoffset_get(void)
     free(p);
 }
 
-void cpu_ioreq_timeoffset(CPUState *env, ioreq_t *req)
+static void cpu_ioreq_timeoffset(CPUState *env, ioreq_t *req)
 {
     char b[64];
 
@@ -433,7 +434,7 @@ void cpu_ioreq_timeoffset(CPUState *env,
     xenstore_vm_write(domid, "rtc/timeoffset", b);
 }
 
-void __handle_ioreq(CPUState *env, ioreq_t *req)
+static void __handle_ioreq(CPUState *env, ioreq_t *req)
 {
     if (!req->data_is_ptr && (req->dir == IOREQ_WRITE) &&
         (req->size < sizeof(target_ulong)))
@@ -457,7 +458,7 @@ void __handle_ioreq(CPUState *env, ioreq
     }
 }
 
-void __handle_buffered_iopage(CPUState *env)
+static void __handle_buffered_iopage(CPUState *env)
 {
     buf_ioreq_t *buf_req = NULL;
     ioreq_t req;
@@ -493,7 +494,7 @@ void __handle_buffered_iopage(CPUState *
     }
 }
 
-void handle_buffered_io(void *opaque)
+static void handle_buffered_io(void *opaque)
 {
     CPUState *env = opaque;
 
@@ -502,7 +503,7 @@ void handle_buffered_io(void *opaque)
                   qemu_get_clock(rt_clock));
 }
 
-void cpu_handle_ioreq(void *opaque)
+static void cpu_handle_ioreq(void *opaque)
 {
     extern int vm_running;
     extern int shutdown_requested;

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.