Received: from [140.186.70.92] (port=38984 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OoGAh-0001WD-JN for qemu-devel@nongnu.org; Wed, 25 Aug 2010 09:37:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OoGAc-0000km-7C for qemu-devel@nongnu.org; Wed, 25 Aug 2010 09:37:43 -0400 Received: from moutng.kundenserver.de ([212.227.17.10]:60584) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OoGAb-0000k3-Nk for qemu-devel@nongnu.org; Wed, 25 Aug 2010 09:37:38 -0400 From: Arnd Bergmann Subject: Re: [Qemu-devel] vhost_net.c broken by --kerneldir Date: Wed, 25 Aug 2010 15:37:27 +0200 References: <4C746A1E.6070000@mentor.com> In-Reply-To: <4C746A1E.6070000@mentor.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201008251537.27679.arnd@arndb.de> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Hollis Blanchard , mst@redhat.com On Wednesday 25 August 2010, Hollis Blanchard wrote: > The problem seems to be that jump from /usr/include/bits/sigcontext.h to > asm/sigcontext.h inside rather than inside /usr/include. It > seems like adding -Ikerneldir/arch/foo/include will always be a problem, > since it will always be used to satisfy "#include ". Only > files built with KVM_CFLAGS would be affected, and I guess vhost_net.c > accidentally gets into a broken include path where the other KVM_CFLAGS > files doesn't. > > I'm wondering why this isn't causing more problems for more people. My > host is Fedora 12, FWIW, but this doesn't seem like it could at all be > related to toolchain version, for example. We only recently fixed the kernel to have this warning in types.h, which triggers more often than kernel.h, where it used to be before. In 2.6.35 and before, you consequently would not have noticed the problem. Arnd