x86/sgx: Fix a build error introduced by WARN->ENCLS_WARN conversion
PATCH 1/1 x86/sgx: Fix a build error introduced by WARN->ENCLS_WARN conversion
Remove an unwanted param when invoking ENCLS_WARN on EREMOVE failure.
--- arch/x86/kernel/cpu/sgx/reclaim.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kernel/cpu/sgx/reclaim.c +1 -1
@@ -352,7 +352,7 @@ static void sgx_reclaimer_write(struct sgx_epc_page *epc_page,if (atomic_read (&encl->flags) &SGX_ENCL_DEAD ) { ret =__eremove (sgx_epc_addr (epc_page)); -ENCLS_WARN (ret,"EREMOVE returned %d\n" , ret); +ENCLS_WARN (ret,"EREMOVE returned %d\n" ); }else {sgx_encl_ewb (epc_page, backing); }
Signature · 1 line
2.24.1
Quoted 3 lines · Sean Christopherson
Remove an unwanted param when invoking
ENCLS_WARNon EREMOVE failure.Signed-off-by Sean Christopherson <[email protected]>
Applied [1].
Had not set $LINUX_OVERRIDE_SRCDIR when building my BuildRoot environment which caused buildroot to pull remote version of the kernel tree instead of local. I.e. ended up compiling kernel without the change that caused this compilation failure.
/Jarkko
Quoted 11 lines · Jarkko Sakkinen
Quoted 3 lines · Sean Christopherson
Remove an unwanted param when invoking
ENCLS_WARNon EREMOVE failure.Signed-off-by Sean Christopherson <[email protected]>Applied [1].
Had not set $LINUX_OVERRIDE_SRCDIR when building my BuildRoot environment which caused buildroot to pull remote version of the kernel tree instead of local. I.e. ended up compiling kernel without the change that caused this compilation failure.
Not that this is an excuse to leak that kind of code, just trying to backtrack things whenever this kind of stuff happens. Try to be more careful next time.
/Jarkko