Skip to contentSkip to conversation

s390x/kvm: Fix compile error

PATCH In review Christian Borntraeger 4 participants 4 messages Nov 26, 2014

lore
Share & tools
lore
#0 lore raw

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.

Cc Igor Mammedov <[email protected]>
Cc Michael S. Tsirkin <[email protected]>
---
 target-s390x/kvm.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
target-s390x/kvm.c +2 -2
index 80fb0aa..5349075 100644
@@ -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
Acked-by on v1 1/1
#1 lore raw
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]>
---
 target-s390x/kvm.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Peter, will you pick this up directly?

#2 lore raw
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]>
---
 target-s390x/kvm.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Quoted 3 lines

Peter, will you pick this up directly?

I am sending a pull request shortly and will pick this up.

Paolo

Reviewed-by on v1 1/1
#3 lore raw
In reply to Christian Borntraeger
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]>
Quoted 28 lines
---
 target-s390x/kvm.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
target-s390x/kvm.c +2 -2
index 80fb0aa..5349075 100644
@@ -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