Received: from eggs.gnu.org ([2001:4830:134:3::10]:34812) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XtaoH-00029A-PF for qemu-devel@nongnu.org; Wed, 26 Nov 2014 06:31:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xtao7-0007fl-T6 for qemu-devel@nongnu.org; Wed, 26 Nov 2014 06:31:01 -0500 Received: from mail-wi0-x22e.google.com ([2a00:1450:400c:c05::22e]:45554) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xtao7-0007ff-MN for qemu-devel@nongnu.org; Wed, 26 Nov 2014 06:30:51 -0500 Received: by mail-wi0-f174.google.com with SMTP id h11so12201973wiw.1 for ; Wed, 26 Nov 2014 03:30:51 -0800 (PST) Sender: Paolo Bonzini From: Paolo Bonzini Date: Wed, 26 Nov 2014 12:30:39 +0100 Message-Id: <1417001439-29299-4-git-send-email-pbonzini@redhat.com> In-Reply-To: <1417001439-29299-1-git-send-email-pbonzini@redhat.com> References: <1417001439-29299-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PULL 3/3] s390x/kvm: Fix compile error List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Christian Borntraeger , "Michael S. Tsirkin" , Igor Mammedov From: 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 Cc: Michael S. Tsirkin Signed-off-by: Christian Borntraeger Signed-off-by: Paolo Bonzini --- target-s390x/kvm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target-s390x/kvm.c b/target-s390x/kvm.c index 50709ba..2c638ab 100644 --- a/target-s390x/kvm.c +++ b/target-s390x/kvm.c @@ -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; -- 1.8.3.1