]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
s390x/kvm: Fix compile error
authorChristian Borntraeger <borntraeger@de.ibm.com>
Wed, 26 Nov 2014 10:07:24 +0000 (11:07 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 26 Nov 2014 11:11:27 +0000 (12:11 +0100)
commit a2b257d6212a "memory: expose alignment used for allocating RAM
as MemoryRegion API" triggered a compile error on KVM/s390x.

Fix the prototype and the implementation of legacy_s390_alloc.

Cc: Igor Mammedov <imammedo@redhat.com>
Cc: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target-s390x/kvm.c

index 50709ba6b5052162fb5230697e9c21c540a827cc..2c638ab7b337038d03df1675f912be3faf3c5ee1 100644 (file)
@@ -106,7 +106,7 @@ const KVMCapabilityInfo kvm_arch_required_capabilities[] = {
 static int cap_sync_regs;
 static int cap_async_pf;
 
-static void *legacy_s390_alloc(size_t size);
+static void *legacy_s390_alloc(size_t size, uint64_t *align);
 
 static int kvm_s390_check_clear_cmma(KVMState *s)
 {
@@ -404,7 +404,7 @@ int kvm_arch_get_registers(CPUState *cs)
  * to grow. We also have to use MAP parameters that avoid
  * read-only mapping of guest pages.
  */
-static void *legacy_s390_alloc(size_t size, uint64_t *align)
+static void *legacy_s390_alloc(size_t size, uint64_t *align)
 {
     void *mem;