From: Isaku Yamahata Date: Wed, 24 Dec 2008 03:50:55 +0000 (+0900) Subject: [IA64]: fix compilation error. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~14028 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=d9d65c1a48e32df52c39e2ac2b5ff0291035797b;p=xen.git [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 --- diff --git a/xen/arch/ia64/xen/dom_fw_common.c b/xen/arch/ia64/xen/dom_fw_common.c index 80a761c943..01adf4d110 100644 --- 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 brkimm, unsigned long imva) *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);