WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

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

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] ioemu: make various functions in i386-dm/helper2.c static
From: Simon Horman <horms@xxxxxxxxxxxx>
Date: Mon, 2 Mar 2009 15:21:05 +1100
Cc: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
Delivery-date: Sun, 01 Mar 2009 20:21:29 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.18 (2008-05-17)
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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] ioemu: make various functions in i386-dm/helper2.c static, Simon Horman <=