[IA64]: fix compilation error.

BUILD_BUG_ON() was changed so that now BUILD_BUG_ON() can't be
used with symbol values.
Fortunately dom_fpswa_hypercall_patch() isn't performance critical
so replace BUILD_BUG_ON() with BUG_ON().
Fixed the wrong condition which has off-by-one bug.

Signed-off-by: Isaku Yamahata <yamah...@valinux.co.jp>

diff --git a/xen/arch/ia64/xen/dom_fw_common.c 
b/xen/arch/ia64/xen/dom_fw_common.c
--- a/xen/arch/ia64/xen/dom_fw_common.c
+++ b/xen/arch/ia64/xen/dom_fw_common.c
@@ -275,8 +275,8 @@ dom_fpswa_hypercall_patch(uint64_t brkim
        *entry_imva   = 0;
 
        /* see dom_fw.h */
-       BUILD_BUG_ON((char*)xen_ia64_fpswa_call_stub_end -
-                    (char*)xen_ia64_fpswa_call_stub > 0xff - 16);
+       BUG_ON((char*)xen_ia64_fpswa_call_stub_end -
+              (char*)xen_ia64_fpswa_call_stub > 0xff - 16 + 1);
 
        /* call stub */
        memcpy(patch_imva, xen_ia64_fpswa_call_stub, stub_size);


-- 
yamahata

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

Reply via email to