WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[PATCH] remove warnings caused by c/s 17723:c684cf331f94 (was Re: [Xen-d

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [PATCH] remove warnings caused by c/s 17723:c684cf331f94 (was Re: [Xen-devel] [PATCH 4/5] VT-d support for PV guests (V2))
From: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
Date: Mon, 26 May 2008 13:07:24 +0900
Cc: Espen Skoglund <espen.skoglund@xxxxxxxxxxxxx>
Delivery-date: Sun, 25 May 2008 21:07:49 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <18487.6570.797007.588777@xxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <18487.6570.797007.588777@xxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.6i
# 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
<Prev in Thread] Current Thread [Next in Thread>