Skip to content

Commit

Permalink
xen: fix header export to userspace
Browse files Browse the repository at this point in the history
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 <randy.dunlap@oracle.com>
Cc:	Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Cc:	Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Cc:	xen-devel@lists.xensource.com (moderated for non-subscribers)
Cc:	virtualization@lists.osdl.org
Cc:	Tony Finch <dot@dotat.at>
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
  • Loading branch information
Randy Dunlap authored and Jeremy Fitzhardinge committed Nov 16, 2010
1 parent e060e7a commit 744f9f1
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions include/xen/privcmd.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,10 @@
#define __LINUX_PUBLIC_PRIVCMD_H__

#include <linux/types.h>
#include <linux/compiler.h>

typedef unsigned long xen_pfn_t;

#ifndef __user
#define __user
#endif

struct privcmd_hypercall {
__u64 op;
__u64 arg[5];
Expand Down

0 comments on commit 744f9f1

Please sign in to comment.