WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] [IA64]: fix compilation error.

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [IA64]: fix compilation error.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 08 Jan 2009 06:57:54 -0800
Delivery-date: Thu, 08 Jan 2009 07:03:45 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
# Date 1230090655 -32400
# Node ID 5598097382377771b6728f84bbccc280e7623005
# Parent  e97216802360bc7936523d2166698added5b8f54
[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@xxxxxxxxxxxxx>
---
 xen/arch/ia64/xen/dom_fw_common.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff -r e97216802360 -r 559809738237 xen/arch/ia64/xen/dom_fw_common.c
--- a/xen/arch/ia64/xen/dom_fw_common.c Fri Dec 12 10:43:39 2008 +0900
+++ b/xen/arch/ia64/xen/dom_fw_common.c Wed Dec 24 12:50:55 2008 +0900
@@ -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);

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] [IA64]: fix compilation error., Xen patchbot-unstable <=