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-devel

[Xen-devel] [PATCH] Remus: fix ia64 build

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] Remus: fix ia64 build
From: "KUWAMURA Shin'ya" <kuwa@xxxxxxxxxxxxxx>
Date: Fri, 05 Feb 2010 17:11:15 +0900 (JST)
Delivery-date: Fri, 05 Feb 2010 00:16:17 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi,

This patch fixes the following error:
  /xen-unstable.hg/tools/remus/kmod/sch_queue.c: In function `is_foreign':
  /xen-unstable.hg/tools/remus/kmod/sch_queue.c:51: error: 
`phys_to_machine_mapping' undeclared (first use in this function)

Signed-off-by: KUWAMURA Shin'ya <kuwa@xxxxxxxxxxxxxx>
-- 
  KUWAMURA Shin'ya
# HG changeset patch
# User KUWAMURA Shin'ya <kuwa@xxxxxxxxxxxxxx>
# Date 1265357331 -32400
# Node ID a20a77f12228c5a0e30d2779c00de9986b0fb341
# Parent  0c3e4a2f14d671f40746feee02d04f2dcde8f566
Remus: fix ia64 build

This patch fixes the following error:
  /tools/remus/kmod/sch_queue.c: In function `is_foreign':
  /tools/remus/kmod/sch_queue.c:51: error: `phys_to_machine_mapping' undeclared 
(first use in this function)

Signed-off-by: KUWAMURA Shin'ya <kuwa@xxxxxxxxxxxxxx>

diff -r 0c3e4a2f14d6 -r a20a77f12228 tools/remus/kmod/sch_queue.c
--- a/tools/remus/kmod/sch_queue.c      Wed Feb 03 09:46:38 2010 +0000
+++ b/tools/remus/kmod/sch_queue.c      Fri Feb 05 17:08:51 2010 +0900
@@ -44,12 +44,17 @@ struct tc_queue_qopt {
 };
 
 /* borrowed from drivers/xen/netback/loopback.c */
+#ifdef CONFIG_X86
 static int is_foreign(unsigned long pfn)
 {
   /* NB. Play it safe for auto-translation mode. */
   return (xen_feature(XENFEAT_auto_translated_physmap) ||
          (phys_to_machine_mapping[pfn] & FOREIGN_FRAME_BIT));
 }
+#else
+/* How to detect a foreign mapping? Play it safe. */
+#define is_foreign(pfn)        (1)
+#endif
 
 static int skb_remove_foreign_references(struct sk_buff *skb)
 {
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] Remus: fix ia64 build, KUWAMURA Shin'ya <=