@@ -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);
}
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(-)