From: Arnd Bergmann Subject: Re: [Qemu-devel] [PATCH v2] Import Linux headers for KVM and vhost Date: Tue, 3 May 2011 21:26:52 +0200 Message-ID: <201105032126.53163.arnd@arndb.de> References: <4DC00BB1.7000008@siemens.com> <20110503173200.GA30864@laped.lan> <20110503125718.3e95f9ba@schlenkerla.am.freescale.net> Mime-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Cc: "Edgar E. Iglesias" , Avi Kivity , Jan Kiszka , Anthony Liguori , Marcelo Tosatti , "qemu-devel" , kvm , Alexander Graf To: Scott Wood Return-path: Received: from moutng.kundenserver.de ([212.227.17.8]:54822 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754508Ab1ECT1E (ORCPT ); Tue, 3 May 2011 15:27:04 -0400 In-Reply-To: <20110503125718.3e95f9ba@schlenkerla.am.freescale.net> Sender: kvm-owner@vger.kernel.org List-ID: On Tuesday 03 May 2011 19:57:18 Scott Wood wrote: > > I agree, it doesn't feel quite right to bring in the headers. I don't have > > any alternative suggestions (besides better HOWTOs/Documentation) though. > > If you try to use the non-sanitized kernel headers, you'll get this warning > from linux/types.h: > > #warning "Attempt to use kernel headers from user space, see http://kernelnewbies.org/KernelHeaders" > You're welcome ;-) I tried to make the recommended approach as clear as I could with the #warning and the wiki page. If there is anything still unclear about how it should be done, please make suggestions for improving the wiki text. Arnd