[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] remove warnings caused by c/s 17723:c684cf331f94 (was Re: [Xen-devel] [PATCH 4/5] VT-d support for PV guests (V2))



# HG changeset patch
# User Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
# Date 1211774333 -32400
# Node ID b19924fb061c1f767149db8a01ba8638dcba1da3
# Parent  888817a9fc1042697c54f37f0ab50f80bfad4beb
[IA64] remove warnings caused by c/s 17723:c684cf331f94

This patch removes the following warnings on ia64 by
including necessary header files.
On x86 the necessary files are included by recusive inclusion,
direct inclusion is preferable.

> grant_table.c: In function __gnttab_map_grant_ref:
> grant_table.c:388: warning: implicit declaration of function iommu_map_page
> grant_table.c: In function __gnttab_unmap_common:
> grant_table.c:566: warning: implicit declaration of function iommu_unmap_page
> grant_table.c: In function gnttab_transfer:
> grant_table.c:1113: warning: implicit declaration of function 
> guest_physmap_remove_page

Signed-off-by: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>

diff --git a/xen/common/grant_table.c b/xen/common/grant_table.c
--- a/xen/common/grant_table.c
+++ b/xen/common/grant_table.c
@@ -32,6 +32,8 @@
 #include <xen/trace.h>
 #include <xen/guest_access.h>
 #include <xen/domain_page.h>
+#include <xen/iommu.h>
+#include <xen/paging.h>
 #include <xsm/xsm.h>
 
 #ifndef max_nr_grant_frames



-- 
yamahata

Attachment: 17726_b19924fb061c.patch
Description: Text Data

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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.