Received: from eggs.gnu.org ([2001:4830:134:3::10]:47488) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b2xLM-0008Pt-Ia for qemu-devel@nongnu.org; Wed, 18 May 2016 05:00:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b2xLH-0001Hy-M5 for qemu-devel@nongnu.org; Wed, 18 May 2016 05:00:40 -0400 Received: from e06smtp13.uk.ibm.com ([195.75.94.109]:41765) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b2xLH-0001HX-Bt for qemu-devel@nongnu.org; Wed, 18 May 2016 05:00:35 -0400 Received: from localhost by e06smtp13.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 18 May 2016 10:00:32 +0100 Received: from b06cxnps3075.portsmouth.uk.ibm.com (d06relay10.portsmouth.uk.ibm.com [9.149.109.195]) by d06dlp03.portsmouth.uk.ibm.com (Postfix) with ESMTP id BDF151B0804B for ; Wed, 18 May 2016 10:00:50 +0100 (BST) Received: from d06av08.portsmouth.uk.ibm.com (d06av08.portsmouth.uk.ibm.com [9.149.37.249]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id u4I8xsgb8585556 for ; Wed, 18 May 2016 08:59:54 GMT Received: from d06av08.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av08.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id u4I8xrmA029581 for ; Wed, 18 May 2016 02:59:53 -0600 Date: Wed, 18 May 2016 10:59:52 +0200 From: Cornelia Huck Message-ID: <20160518105952.3cd61418.cornelia.huck@de.ibm.com> In-Reply-To: <20160518102147.30c63802.cornelia.huck@de.ibm.com> References: <1463412982-6681-1-git-send-email-pbonzini@redhat.com> <20160518102147.30c63802.cornelia.huck@de.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH CFT v3 00/50] NEED_CPU_H / cpu.h / hw/hw.h cleanups List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: qemu-devel@nongnu.org, Thomas Huth On Wed, 18 May 2016 10:21:47 +0200 Cornelia Huck wrote: > On Mon, 16 May 2016 17:35:32 +0200 > Paolo Bonzini wrote: >=20 > > I compiled this on x64 Linux (all patches) and 32-bit ARM > > Linux, and I will compile it on Win32 before sending a pull > > request. I would appreciate people compile-testing it on s390 > > and PPC. The changes are available in the git repository at > > git://github.com/bonzini/qemu.git, branch need-cpu-h (SHA1 for the top > > commit is b65f2d57b126883367fb81d54f383352b24029b1). >=20 > Hmm... >=20 > In file included from /root/git/qemu/include/sysemu/kvm.h:221:0, > from /root/git/qemu/balloon.c:30: > /root/git/qemu/target-s390x/cpu.h: In function =E2=80=98vregs_needed=E2= =80=99: > /root/git/qemu/target-s390x/cpu.h:1241:9: error: implicit declaration of = function =E2=80=98kvm_check_extension=E2=80=99 [-Werror=3Dimplicit-function= -declaration] > return kvm_check_extension(kvm_state, KVM_CAP_S390_VECTOR_REGIST= ERS); > ^ > /root/git/qemu/target-s390x/cpu.h:1241:9: error: nested extern declaratio= n of =E2=80=98kvm_check_extension=E2=80=99 [-Werror=3Dnested-externs] > In file included from /root/git/qemu/balloon.c:30:0: > /root/git/qemu/include/sysemu/kvm.h: At top level: > /root/git/qemu/include/sysemu/kvm.h:401:5: error: redundant redeclaration= of =E2=80=98kvm_check_extension=E2=80=99 [-Werror=3Dredundant-decls] > int kvm_check_extension(KVMState *s, unsigned int extension); > ^ > In file included from /root/git/qemu/include/sysemu/kvm.h:221:0, > from /root/git/qemu/balloon.c:30: > /root/git/qemu/target-s390x/cpu.h:1241:16: note: previous implicit declar= ation of =E2=80=98kvm_check_extension=E2=80=99 was here > return kvm_check_extension(kvm_state, KVM_CAP_S390_VECTOR_REGIST= ERS); > ^ >=20 > That's on one of my s390x systems; on another one (where I don't test), > it builds. But something's wrong :) Ah, that's because the functioning one used --disable-kvm. Should the call to kvm_check_extension() be moved to target-s390x/kvm.c?