From: David Vrabel Subject: [PATCH 1/3] grant-table: use uint16_t consistently for grant copy offset and length Date: Fri, 23 Jan 2015 10:43:45 +0000 Message-ID: <1422009827-12881-2-git-send-email-david.vrabel@citrix.com> References: <1422009827-12881-1-git-send-email-david.vrabel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1YEbu1-0005jB-P3 for xen-devel@lists.xenproject.org; Fri, 23 Jan 2015 10:55:49 +0000 In-Reply-To: <1422009827-12881-1-git-send-email-david.vrabel@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xenproject.org Cc: Keir Fraser , Tim Deegan , David Vrabel , Jan Beulich , Ian Campbell List-Id: xen-devel@lists.xenproject.org Signed-off-by: David Vrabel Acked-by: Jan Beulich --- xen/common/grant_table.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/xen/common/grant_table.c b/xen/common/grant_table.c index fe52b63..fb9d8f7 100644 --- a/xen/common/grant_table.c +++ b/xen/common/grant_table.c @@ -1882,7 +1882,7 @@ static int __acquire_grant_for_copy( struct domain *rd, unsigned long gref, domid_t ldom, int readonly, unsigned long *frame, struct page_info **page, - unsigned *page_off, unsigned *length, unsigned allow_transitive) + uint16_t *page_off, uint16_t *length, unsigned allow_transitive) { struct grant_table *rgt = rd->grant_table; grant_entry_v1_t *sha1; @@ -1895,8 +1895,8 @@ __acquire_grant_for_copy( grant_ref_t trans_gref; struct domain *td; unsigned long grant_frame; - unsigned trans_page_off; - unsigned trans_length; + uint16_t trans_page_off; + uint16_t trans_length; int is_sub_page; s16 rc = GNTST_okay; @@ -2122,7 +2122,7 @@ __gnttab_copy( if ( src_is_gref ) { - unsigned source_off, source_len; + uint16_t source_off, source_len; rc = __acquire_grant_for_copy(sd, op->source.u.ref, current->domain->domain_id, 1, &s_frame, &s_pg, @@ -2147,7 +2147,7 @@ __gnttab_copy( if ( dest_is_gref ) { - unsigned dest_off, dest_len; + uint16_t dest_off, dest_len; rc = __acquire_grant_for_copy(dd, op->dest.u.ref, current->domain->domain_id, 0, &d_frame, &d_pg, &dest_off, &dest_len, 1); -- 1.7.10.4