[PATCH v2 1/3] drm/i915/gvt: make dma map/unmap kvmgt functions as static

Yuan, Hang hang.yuan at intel.com
Thu Aug 2 05:29:27 UTC 2018


Reviewed-by: Hang Yuan <hang.yuan at intel.com>

> -----Original Message-----
> From: intel-gvt-dev [mailto:intel-gvt-dev-bounces at lists.freedesktop.org] On
> Behalf Of Zhenyu Wang
> Sent: Tuesday, July 31, 2018 11:02 AM
> To: intel-gvt-dev at lists.freedesktop.org
> Subject: [PATCH v2 1/3] drm/i915/gvt: make dma map/unmap kvmgt
> functions as static
> 
> Make kvmgt_dma_map/unmap_guest_page as static function.
> 
> Signed-off-by: Zhenyu Wang <zhenyuw at linux.intel.com>
> ---
>  drivers/gpu/drm/i915/gvt/kvmgt.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/gpu/drm/i915/gvt/kvmgt.c
> b/drivers/gpu/drm/i915/gvt/kvmgt.c
> index 685cb3de6dab..60d9f5d9fb1e 100644
> --- a/drivers/gpu/drm/i915/gvt/kvmgt.c
> +++ b/drivers/gpu/drm/i915/gvt/kvmgt.c
> @@ -1676,7 +1676,7 @@ static unsigned long kvmgt_gfn_to_pfn(unsigned
> long handle, unsigned long gfn)
>  	return pfn;
>  }
> 
> -int kvmgt_dma_map_guest_page(unsigned long handle, unsigned long gfn,
> +static int kvmgt_dma_map_guest_page(unsigned long handle, unsigned
> long
> +gfn,
>  		unsigned long size, dma_addr_t *dma_addr)  {
>  	struct kvmgt_guest_info *info;
> @@ -1725,7 +1725,7 @@ static void __gvt_dma_release(struct kref *ref)
>  	__gvt_cache_remove_entry(entry->vgpu, entry);  }
> 
> -void kvmgt_dma_unmap_guest_page(unsigned long handle, dma_addr_t
> dma_addr)
> +static void kvmgt_dma_unmap_guest_page(unsigned long handle,
> dma_addr_t
> +dma_addr)
>  {
>  	struct kvmgt_guest_info *info;
>  	struct gvt_dma *entry;
> --
> 2.18.0
> 
> _______________________________________________
> intel-gvt-dev mailing list
> intel-gvt-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/intel-gvt-dev


More information about the intel-gvt-dev mailing list