Remove the unused @encl parameter from __sgx_encl_ewb() to help shorten the line lengths of its call sites. Signed-off-by: Sean Christopherson <sean.j.christopherson@xxxxxxxxx> --- arch/x86/kernel/cpu/sgx/reclaim.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/arch/x86/kernel/cpu/sgx/reclaim.c b/arch/x86/kernel/cpu/sgx/reclaim.c index c5c0ba92ab63..030b1c24da07 100644 --- a/arch/x86/kernel/cpu/sgx/reclaim.c +++ b/arch/x86/kernel/cpu/sgx/reclaim.c @@ -223,7 +223,7 @@ static void sgx_reclaimer_block(struct sgx_epc_page *epc_page) mutex_unlock(&encl->lock); } -static int __sgx_encl_ewb(struct sgx_encl *encl, struct sgx_epc_page *epc_page, +static int __sgx_encl_ewb(struct sgx_epc_page *epc_page, struct sgx_va_page *va_page, unsigned int va_offset, struct sgx_backing *backing) { @@ -292,7 +292,7 @@ static void sgx_encl_ewb(struct sgx_epc_page *epc_page, if (sgx_va_page_full(va_page)) list_move_tail(&va_page->list, &encl->va_pages); - ret = __sgx_encl_ewb(encl, epc_page, va_page, va_offset, backing); + ret = __sgx_encl_ewb(epc_page, va_page, va_offset, backing); if (ret == SGX_NOT_TRACKED) { ret = __etrack(sgx_epc_addr(encl->secs.epc_page)); if (ret) { @@ -300,8 +300,7 @@ static void sgx_encl_ewb(struct sgx_epc_page *epc_page, ENCLS_WARN(ret, "ETRACK"); } - ret = __sgx_encl_ewb(encl, epc_page, va_page, va_offset, - backing); + ret = __sgx_encl_ewb(epc_page, va_page, va_offset, backing); if (ret == SGX_NOT_TRACKED) { /* * Slow path, send IPIs to kick cpus out of the @@ -312,8 +311,8 @@ static void sgx_encl_ewb(struct sgx_epc_page *epc_page, */ on_each_cpu_mask(sgx_encl_ewb_cpumask(encl), sgx_ipi_cb, NULL, 1); - ret = __sgx_encl_ewb(encl, epc_page, va_page, - va_offset, backing); + ret = __sgx_encl_ewb(epc_page, va_page, va_offset, + backing); } } -- 2.24.1