]> xenbits.xensource.com Git - people/vhanquez/xen.git/commitdiff
VT-d: Fix ia64 build for 20974:3b475d9ed6b5
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 4 May 2010 11:54:29 +0000 (12:54 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 4 May 2010 11:54:29 +0000 (12:54 +0100)
This patch fixes the following error on ia64:
  iommu.c: In function 'init_vtd_hw':
  iommu.c:1831: error: 'nr_ioapics' undeclared (first use in this
  function)

Signed-off-by: KUWAMURA Shin'ya <kuwa@jp.fujitsu.com>
xen-unstable changeset:   20980:d9db3684f292
xen-unstable date:        Thu Feb 25 11:54:19 2010 +0000

xen/drivers/passthrough/vtd/iommu.c

index 7906a3779af2b935bd0198f2b2e83bf67ad84136..18bb182d7a16e024d5f6405e68c88a63ec95000e 100644 (file)
@@ -135,6 +135,10 @@ void iommu_flush_cache_page(void *addr, unsigned long npages)
     __iommu_flush_cache(addr, PAGE_SIZE_4K * npages);
 }
 
+#ifdef __ia64__
+#define nr_ioapics              iosapic_get_nr_iosapics()
+#endif
+
 int nr_iommus;
 /* context entry handling */
 static u64 bus_to_context_maddr(struct iommu *iommu, u8 bus)