debuggers.hg

changeset 20950:989014ce7b4a

Remus: fix ia64 build

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@jp.fujitsu.com>
author Keir Fraser <keir.fraser@citrix.com>
date Fri Feb 05 10:37:24 2010 +0000 (2010-02-05)
parents a6fac2ba6785
children b60379dad533
files tools/remus/kmod/sch_queue.c
line diff
     1.1 --- a/tools/remus/kmod/sch_queue.c	Fri Feb 05 10:36:43 2010 +0000
     1.2 +++ b/tools/remus/kmod/sch_queue.c	Fri Feb 05 10:37:24 2010 +0000
     1.3 @@ -44,12 +44,17 @@ struct tc_queue_qopt {
     1.4  };
     1.5  
     1.6  /* borrowed from drivers/xen/netback/loopback.c */
     1.7 +#ifdef CONFIG_X86
     1.8  static int is_foreign(unsigned long pfn)
     1.9  {
    1.10    /* NB. Play it safe for auto-translation mode. */
    1.11    return (xen_feature(XENFEAT_auto_translated_physmap) ||
    1.12           (phys_to_machine_mapping[pfn] & FOREIGN_FRAME_BIT));
    1.13  }
    1.14 +#else
    1.15 +/* How to detect a foreign mapping? Play it safe. */
    1.16 +#define is_foreign(pfn)	(1)
    1.17 +#endif
    1.18  
    1.19  static int skb_remove_foreign_references(struct sk_buff *skb)
    1.20  {