diff mbox

[16/18] kvm: qemu: make another couple of functions static

Message ID 1232027262-21487-16-git-send-email-markmc@redhat.com (mailing list archive)
State Accepted, archived
Headers show

Commit Message

Mark McLoughlin Jan. 15, 2009, 1:47 p.m. UTC
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 <markmc@redhat.com>
---
 qemu/qemu-kvm.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)
diff mbox

Patch

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);
 }