s390x/kvm: Fix compile error
PATCH 1/1 s390x/kvm: Fix compile error
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.
--- target-s390x/kvm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
target-s390x/kvm.c +2 -2
@@ -110,7 +110,7 @@ static int cap_async_pf;static uint64_t cpu_model_call_cache; -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) {
@@ -545,7 +545,7 @@ int kvm_s390_set_clock(uint8_t *tod_clock_high, uint64_t *tod_clock)* 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;
Signature · 1 line
1.9.3
Quoted 11 lines · On Wed, 26 Nov 2014 11:07:24 +0100 Christian Borntraeger…
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 <[email protected]>Cc Michael S. Tsirkin <[email protected]>Signed-off-by Christian Borntraeger <[email protected]>--- target-s390x/kvm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Peter, will you pick this up directly?
Quoted 15 lines · Cornelia Huck
Quoted 11 lines · On Wed, 26 Nov 2014 11:07:24 +0100 Christian Borntraeger…
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 <[email protected]>Cc Michael S. Tsirkin <[email protected]>Signed-off-by Christian Borntraeger <[email protected]>--- target-s390x/kvm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Quoted 3 lines
Acked-by Cornelia Huck <[email protected]>Peter, will you pick this up directly?
I am sending a pull request shortly and will pick this up.
Paolo
Quoted 8 lines · Christian Borntraeger
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 <[email protected]>Cc Michael S. Tsirkin <[email protected]>Signed-off-by Christian Borntraeger <[email protected]>
Quoted 28 lines
--- target-s390x/kvm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)target-s390x/kvm.c +2
-2@@ -110,7 +110,7 @@ static int cap_async_pf;static uint64_t cpu_model_call_cache; -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) {@@ -545,7 +545,7 @@ int kvm_s390_set_clock(uint8_t *tod_clock_high, uint64_t *tod_clock)* 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;Signature · 1 line
1.9.3