From d9d65c1a48e32df52c39e2ac2b5ff0291035797b Mon Sep 17 00:00:00 2001 From: Isaku Yamahata Date: Wed, 24 Dec 2008 12:50:55 +0900 Subject: [PATCH] [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 --- xen/arch/ia64/xen/dom_fw_common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.30.2