[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-ia64-devel] ia64: Fix build problem when VHPT_ENABLED isn't defined



arch.vhpt_page and arch.vhpt_maddr don't exist unless VHPT_ENABLED is defined.

asm-offsets.c: In function `foo':
asm-offsets.c:257: error: structure has no member named `vhpt_page'
asm-offsets.c:259: error: structure has no member named `vhpt_maddr'

Signed-off-by: Simon Horman <horms@xxxxxxxxxxxx>

Index: xen-unstable.hg/xen/arch/ia64/asm-offsets.c
===================================================================
--- xen-unstable.hg.orig/xen/arch/ia64/asm-offsets.c    2008-04-22 
17:32:51.000000000 +1000
+++ xen-unstable.hg/xen/arch/ia64/asm-offsets.c 2008-04-23 12:38:33.000000000 
+1000
@@ -254,10 +254,12 @@ void foo(void)
        DEFINE(IA64_MCA_CPU_RBSTORE_OFFSET,
               offsetof(struct ia64_mca_cpu, rbstore));
 
+#ifdef VHPT_ENABLED
        DEFINE(IA64_VCPU_VHPT_PAGE_OFFSET,
               offsetof(struct vcpu, arch.vhpt_page));
        DEFINE(IA64_VCPU_VHPT_MADDR_OFFSET,
               offsetof(struct vcpu, arch.vhpt_maddr));
+#endif
 
        BLANK();
        DEFINE(IA64_MCA_TLB_INFO_SIZE, sizeof(struct ia64_mca_tlb_info));

_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.