Skip to contentSkip to conversation

VT-d support for PV guests (V2)

PATCH New Espen Skoglund 2 participants 2 messages May 23, 2008 – May 26, 2008

lore
Share & tools
lore
#1 lore raw

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

# HG changeset patch
# User Isaku Yamahata <[email protected]> # 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.

Quoted 6 lines

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

xen/common/grant_table.c +2 -0
@@ -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
Signature · 1 line
yamahata

# HG changeset patch
# User Isaku Yamahata <[email protected]> # 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.

Quoted 6 lines

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

xen/common/grant_table.c +2 -0
@@ -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

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel