[RFC,intel-gvt-linux] drm/i915/gvt: kvmgt_dma_map_guest_page() can be static

Submitted by kbuild test robot on March 1, 2018, 5:08 p.m.

Details

Message ID 20180301170848.GA32094@lkp-ne02
State New
Headers show
Series "drm/i915/gvt: kvmgt_dma_map_guest_page() can be static" ( rev: 1 ) in Intel GVT devel

Not browsing as part of any series.

Commit Message

kbuild test robot March 1, 2018, 5:08 p.m.
Fixes: b2079a4352a7 ("drm/i915/gvt: Fix guest vGPU hang caused by very high dma setup overhead")
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
---
 kvmgt.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Patch hide | download patch | download mbox

diff --git a/drivers/gpu/drm/i915/gvt/kvmgt.c b/drivers/gpu/drm/i915/gvt/kvmgt.c
index 5fd864a..5b994ab 100644
--- a/drivers/gpu/drm/i915/gvt/kvmgt.c
+++ b/drivers/gpu/drm/i915/gvt/kvmgt.c
@@ -1515,7 +1515,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,
 		dma_addr_t *dma_addr)
 {
 	struct kvmgt_guest_info *info;
@@ -1556,7 +1556,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;