Skip to content

Commit

Permalink
s390x/kvm: Fix compile error
Browse files Browse the repository at this point in the history
commit a2b257d "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]>
Signed-off-by: Paolo Bonzini <[email protected]>
  • Loading branch information
borntraeger authored and bonzini committed Nov 26, 2014
1 parent f3b3766 commit dc622de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions target-s390x/kvm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit dc622de

Please sign in to comment.