From: Will Deacon Subject: Re: [RFC PATCH 05/16] kvm tools: don't bother including linux/compiler.h Date: Mon, 19 Nov 2012 10:33:44 +0000 Message-ID: <20121119103343.GC3205@mudshark.cambridge.arm.com> References: <1352721450-11340-1-git-send-email-will.deacon@arm.com> <1352721450-11340-6-git-send-email-will.deacon@arm.com> <20121116100652.GB25018@mudshark.cambridge.arm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: "kvm@vger.kernel.org" , Marc Zyngier , "c.dall@virtualopensystems.com" , Matt Evans , "peter.maydell@linaro.org" To: Pekka Enberg Return-path: Received: from cam-admin0.cambridge.arm.com ([217.140.96.50]:40161 "EHLO cam-admin0.cambridge.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751429Ab2KSKds (ORCPT ); Mon, 19 Nov 2012 05:33:48 -0500 Content-Disposition: inline In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: On Fri, Nov 16, 2012 at 10:01:01PM +0000, Pekka Enberg wrote: > On Fri, 16 Nov 2012, Will Deacon wrote: > > > I'm seeing the following breakage with this patch applied: > > >=20 > > > [penberg@tux kvm]$ make > > > CC hw/rtc.o > > > CC ioport.o > > > CC kvm-cpu.o > > > CC kvm.o > > > In file included from include/kvm/rbtree-interval.h:4:0, > > > from include/kvm/ioport.h:4, > > > from hw/rtc.c:3: > > > ../../include/linux/rbtree_augmented.h:125:24: error: expected =E2= =80=98=3D=E2=80=99, =E2=80=98,=E2=80=99, =E2=80=98;=E2=80=99, =E2=80=98= asm=E2=80=99 or =E2=80=98__attribute__=E2=80=99 before =E2=80=98void=E2= =80=99 > > > In file included from include/kvm/rbtree-interval.h:4:0, > > > from include/kvm/ioport.h:4, > > > from ioport.c:1: > > > ../../include/linux/rbtree_augmented.h:125:24: error: expected =E2= =80=98=3D=E2=80=99, =E2=80=98,=E2=80=99, =E2=80=98;=E2=80=99, =E2=80=98= asm=E2=80=99 or =E2=80=98__attribute__=E2=80=99 before =E2=80=98void=E2= =80=99 > > > make: *** [hw/rtc.o] Error 1 > > > make: *** Waiting for unfinished jobs.... > > > make: *** [ioport.o] Error 1 > >=20 > > I'm struggling to reproduce this with my tree. Can you confirm whet= her or > > not you have commit 29fc7c5a4f51 ("rbtree: include linux/compiler.h= for > > definition of __always_inline") in your *kernel* sources please? >=20 > No, I don't. I can cherry-pick that to my tree if necessary. Aha, that's probably the issue then since you won't have a definition o= f __always_inline from linux/compiler.h. If you cherry-pick that patch, t= hen this one should work as intended. If you prefer, I can include that pat= ch in v2 of my series. Cheers, Will