Fixes:

  qemu/qemu-kvm.c:1170: warning: no previous prototype for 
‘kvm_get_dirty_pages_log_range’
  qemu/qemu-kvm.c:1200: warning: no previous prototype for 
‘kvm_get_dirty_bitmap_cb’

Signed-off-by: Mark McLoughlin <[email protected]>
---
 qemu/qemu-kvm.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/qemu/qemu-kvm.c b/qemu/qemu-kvm.c
index c99bf5c..2344190 100644
--- a/qemu/qemu-kvm.c
+++ b/qemu/qemu-kvm.c
@@ -1159,10 +1159,10 @@ int kvm_physical_memory_set_dirty_tracking(int enable)
 }
 
 /* get kvm's dirty pages bitmap and update qemu's */
-int kvm_get_dirty_pages_log_range(unsigned long start_addr,
-                                  unsigned char *bitmap,
-                                  unsigned int offset,
-                                  unsigned long mem_size)
+static int kvm_get_dirty_pages_log_range(unsigned long start_addr,
+                                         unsigned char *bitmap,
+                                         unsigned int offset,
+                                         unsigned long mem_size)
 {
     unsigned int i, j, n=0;
     unsigned char c;
@@ -1189,8 +1189,8 @@ int kvm_get_dirty_pages_log_range(unsigned long 
start_addr,
     }
     return 0;
 }
-int kvm_get_dirty_bitmap_cb(unsigned long start, unsigned long len,
-                            void *bitmap, void *opaque)
+static int kvm_get_dirty_bitmap_cb(unsigned long start, unsigned long len,
+                                   void *bitmap, void *opaque)
 {
     return kvm_get_dirty_pages_log_range(start, bitmap, start, len);
 }
-- 
1.6.0.6

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to