Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753435AbdLSTh2 (ORCPT ); Tue, 19 Dec 2017 14:37:28 -0500 Received: from mga11.intel.com ([192.55.52.93]:27382 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753352AbdLSThL (ORCPT ); Tue, 19 Dec 2017 14:37:11 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.45,428,1508828400"; d="scan'208";a="4018690" From: Dongwon Kim To: linux-kernel@vger.kernel.org Cc: dri-devel@lists.freedesktop.org, xen-devel@lists.xenproject.org, mateuszx.potrola@intel.com, dongwon.kim@intel.com Subject: [RFC PATCH 57/60] hyper_dmabuf: change type of ref to shared pages to unsigned long Date: Tue, 19 Dec 2017 11:30:13 -0800 Message-Id: <1513711816-2618-57-git-send-email-dongwon.kim@intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1513711816-2618-1-git-send-email-dongwon.kim@intel.com> References: <1513711816-2618-1-git-send-email-dongwon.kim@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2501 Lines: 57 From: Mateusz Polrola Changed data type of reference for the group of pages to be shared unsigned long in case it is direct representation of the memory address. Signed-off-by: Mateusz Polrola Signed-off-by: Dongwon Kim --- drivers/xen/hyper_dmabuf/hyper_dmabuf_drv.h | 2 +- drivers/xen/hyper_dmabuf/xen/hyper_dmabuf_xen_shm.c | 4 ++-- drivers/xen/hyper_dmabuf/xen/hyper_dmabuf_xen_shm.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/xen/hyper_dmabuf/hyper_dmabuf_drv.h b/drivers/xen/hyper_dmabuf/hyper_dmabuf_drv.h index 9337d53..c2bb3ce 100644 --- a/drivers/xen/hyper_dmabuf/hyper_dmabuf_drv.h +++ b/drivers/xen/hyper_dmabuf/hyper_dmabuf_drv.h @@ -91,7 +91,7 @@ struct hyper_dmabuf_bknd_ops { /* map remotely shared pages on importer's side via * hypervisor-specific method */ - struct page ** (*map_shared_pages)(int, int, int, void **); + struct page ** (*map_shared_pages)(unsigned long, int, int, void **); /* unmap and free shared pages on importer's side via * hypervisor-specific method diff --git a/drivers/xen/hyper_dmabuf/xen/hyper_dmabuf_xen_shm.c b/drivers/xen/hyper_dmabuf/xen/hyper_dmabuf_xen_shm.c index 16416f8..c6a15f1 100644 --- a/drivers/xen/hyper_dmabuf/xen/hyper_dmabuf_xen_shm.c +++ b/drivers/xen/hyper_dmabuf/xen/hyper_dmabuf_xen_shm.c @@ -252,8 +252,8 @@ int xen_be_unshare_pages(void **refs_info, int nents) /* Maps provided top level ref id and then return array of pages * containing data refs. */ -struct page **xen_be_map_shared_pages(int lvl3_gref, int domid, - int nents, void **refs_info) +struct page **xen_be_map_shared_pages(unsigned long lvl3_gref, int domid, + int nents, void **refs_info) { struct page *lvl3_table_page; struct page **lvl2_table_pages; diff --git a/drivers/xen/hyper_dmabuf/xen/hyper_dmabuf_xen_shm.h b/drivers/xen/hyper_dmabuf/xen/hyper_dmabuf_xen_shm.h index e02fab0b..d5236b5 100644 --- a/drivers/xen/hyper_dmabuf/xen/hyper_dmabuf_xen_shm.h +++ b/drivers/xen/hyper_dmabuf/xen/hyper_dmabuf_xen_shm.h @@ -37,7 +37,7 @@ int xen_be_unshare_pages(void **refs_info, int nents); /* Maps provided top level ref id and then return array of pages containing * data refs. */ -struct page **xen_be_map_shared_pages(int lvl3_gref, int domid, +struct page **xen_be_map_shared_pages(unsigned long lvl3_gref, int domid, int nents, void **refs_info); -- 2.7.4