From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756991Ab0KMQpj (ORCPT ); Sat, 13 Nov 2010 11:45:39 -0500 Received: from rcsinet10.oracle.com ([148.87.113.121]:33197 "EHLO rcsinet10.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756654Ab0KMQp1 (ORCPT ); Sat, 13 Nov 2010 11:45:27 -0500 Date: Sat, 13 Nov 2010 08:44:39 -0800 From: Randy Dunlap To: Stephen Rothwell , akpm Cc: linux-next@vger.kernel.org, LKML , Jeremy Fitzhardinge , Konrad Rzeszutek Wilk , xen-devel@lists.xensource.com, virtualization@lists.osdl.org, Tony Finch Subject: [PATCH -next] xen: fix header export to userspace Message-Id: <20101113084439.d21bd0f0.randy.dunlap@oracle.com> In-Reply-To: <20101112130547.c2a3c2c1.sfr@canb.auug.org.au> References: <20101112130547.c2a3c2c1.sfr@canb.auug.org.au> Organization: Oracle Linux Eng. X-Mailer: Sylpheed 2.7.1 (GTK+ 2.16.6; x86_64-unknown-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Randy Dunlap scripts/headers_install.pl prevents "__user" from being exported to userspace headers, so just use compiler.h to make sure that __user is defined and avoid the error. unifdef: linux-next-20101112/xx64/usr/include/xen/privcmd.h.tmp: 79: Premature EOF (#if line 33 depth 1) Signed-off-by: Randy Dunlap Cc: Jeremy Fitzhardinge Cc: Konrad Rzeszutek Wilk Cc: xen-devel@lists.xensource.com (moderated for non-subscribers) Cc: virtualization@lists.osdl.org Cc: Tony Finch --- include/xen/privcmd.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) --- linux-next-20101112.orig/include/xen/privcmd.h +++ linux-next-20101112/include/xen/privcmd.h @@ -34,13 +34,10 @@ #define __LINUX_PUBLIC_PRIVCMD_H__ #include +#include typedef unsigned long xen_pfn_t; -#ifndef __user -#define __user -#endif - struct privcmd_hypercall { __u64 op; __u64 arg[5];