diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2010-02-05 10:37:24 +0000 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2010-02-05 10:37:24 +0000 |
commit | e7a5d6fa8553b2c02ff12d1cf7dd50893239b524 (patch) | |
tree | 8e6c413c53176502f08c66fc9a2b4ab000fb38a6 | |
parent | 95861f88c78ca0719089f20f383f7a53ccac1e31 (diff) | |
download | xen-e7a5d6fa8553b2c02ff12d1cf7dd50893239b524.tar.gz xen-e7a5d6fa8553b2c02ff12d1cf7dd50893239b524.tar.bz2 xen-e7a5d6fa8553b2c02ff12d1cf7dd50893239b524.zip |
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>
-rw-r--r-- | tools/remus/kmod/sch_queue.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/remus/kmod/sch_queue.c b/tools/remus/kmod/sch_queue.c index 3a6a50c39a..92da4a75cd 100644 --- a/tools/remus/kmod/sch_queue.c +++ b/tools/remus/kmod/sch_queue.c @@ -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) { |