>>>>> On Thu, 16 Sep 2010 18:08:12 +0100
>>>>> Ian.Jackson@xxxxxxxxxxxxx(Ian Jackson) said:
> KUWAMURA Shin'ya writes ("[Xen-devel] Re: [PATCH] [Linux] ia64, xencomm: fix
> > I fixed this warning by adding an #include line. I attached the patch.
> > +#include <xen/interface/xen-compat.h>
> > +#define __XEN_TOOLS__
> Why do you choose to #define __XEN_TOOLS__ rather than __XEN__ (which
> latter is already defined in this file, as Jan notes) ?
> Does moving the definition of __XEN__ further up cause other problems ?
__XEN__ causes the following compilation error:
In file included from include2/asm/page.h:236,
include2/asm/hypervisor.h:63: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
The line of the problem is as follows:
extern shared_info_t *HYPERVISOR_shared_info;
The identifier `shared_info_t' is defined in include/xen/interface/xen.h
if __XEN__ is NOT defined:
typedef struct shared_info shared_info_t;
Xen-devel mailing list