diff mbox

[02/18] kvm: qemu: make qemu_alloc_physram() and alloc_mem_area() static

Message ID 1232027262-21487-2-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/vl.c:4667: warning: no previous prototype for ‘alloc_mem_area’
  qemu/vl.c:4710: warning: no previous prototype for ‘qemu_alloc_physram’

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
---
 qemu/vl.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
diff mbox

Patch

diff --git a/qemu/vl.c b/qemu/vl.c
index 7a36870..f2fe708 100644
--- a/qemu/vl.c
+++ b/qemu/vl.c
@@ -4664,7 +4664,7 @@  static int gethugepagesize(void)
     return hugepagesize;
 }
 
-void *alloc_mem_area(size_t memory, unsigned long *len, const char *path)
+static void *alloc_mem_area(size_t memory, unsigned long *len, const char *path)
 {
     char *filename;
     void *area;
@@ -4707,7 +4707,7 @@  void *alloc_mem_area(size_t memory, unsigned long *len, const char *path)
     return area;
 }
 
-void *qemu_alloc_physram(unsigned long memory)
+static void *qemu_alloc_physram(unsigned long memory)
 {
     void *area = NULL;
     unsigned long map_len = memory;