ia64/xen-unstable

changeset 18878:559809738237

[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 <yamahata@valinux.co.jp>
author Isaku Yamahata <yamahata@valinux.co.jp>
date Wed Dec 24 12:50:55 2008 +0900 (2008-12-24)
parents e97216802360
children 9837303a4708
files xen/arch/ia64/xen/dom_fw_common.c
line diff
     1.1 --- a/xen/arch/ia64/xen/dom_fw_common.c	Fri Dec 12 10:43:39 2008 +0900
     1.2 +++ b/xen/arch/ia64/xen/dom_fw_common.c	Wed Dec 24 12:50:55 2008 +0900
     1.3 @@ -275,8 +275,8 @@ dom_fpswa_hypercall_patch(uint64_t brkim
     1.4  	*entry_imva   = 0;
     1.5  
     1.6  	/* see dom_fw.h */
     1.7 -	BUILD_BUG_ON((char*)xen_ia64_fpswa_call_stub_end -
     1.8 -		     (char*)xen_ia64_fpswa_call_stub > 0xff - 16);
     1.9 +	BUG_ON((char*)xen_ia64_fpswa_call_stub_end -
    1.10 +	       (char*)xen_ia64_fpswa_call_stub > 0xff - 16 + 1);
    1.11  
    1.12  	/* call stub */
    1.13  	memcpy(patch_imva, xen_ia64_fpswa_call_stub, stub_size);