[intel-sgx-kernel-dev,v2,4/4] intel_sgx: remove sgx_evict_page
diff mbox

Message ID 1492704977-26510-5-git-send-email-sean.j.christopherson@intel.com
State New
Headers show

Commit Message

Sean Christopherson April 20, 2017, 4:16 p.m. UTC
Remove sgx_evict_page as it's literally a pass-through to sgx_ewb
after its functionality was moved elsewhere as part of unionizing
va_page and epc_page.

Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
---
 drivers/platform/x86/intel_sgx/sgx_page_cache.c | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

Patch
diff mbox

diff --git a/drivers/platform/x86/intel_sgx/sgx_page_cache.c b/drivers/platform/x86/intel_sgx/sgx_page_cache.c
index f3326e0..f25bd44 100644
--- a/drivers/platform/x86/intel_sgx/sgx_page_cache.c
+++ b/drivers/platform/x86/intel_sgx/sgx_page_cache.c
@@ -368,12 +368,6 @@  static bool sgx_ewb(struct sgx_encl *encl,
 	return true;
 }
 
-static void sgx_evict_page(struct sgx_encl_page *entry,
-			   struct sgx_encl *encl)
-{
-	sgx_ewb(encl, entry);
-}
-
 static void sgx_write_pages(struct sgx_encl *encl, struct list_head *src)
 {
 	struct sgx_encl_page *entry;
@@ -405,12 +399,12 @@  static void sgx_write_pages(struct sgx_encl *encl, struct list_head *src)
 		entry = list_first_entry(src, struct sgx_encl_page,
 					 load_list);
 		list_del(&entry->load_list);
-		sgx_evict_page(entry, encl);
+		sgx_ewb(encl, entry);
 		encl->secs_child_cnt--;
 	}
 
 	if (!encl->secs_child_cnt && (encl->flags & SGX_ENCL_INITIALIZED))
-		sgx_evict_page(&encl->secs_page, encl);
+		sgx_ewb(encl, &encl->secs_page);
 
 	mutex_unlock(&encl->lock);
 }