x86/sgx: Fix the return type of sgx_init()
mainline inclusion from mainline-v5.12-rc1-dontuse commit 31bf9288 category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I4SIGI CVE: NA -------------------------------- device_initcall() expects a function of type initcall_t, which returns an integer. Change the signature of sgx_init() to match. Intel-SIG: commit 31bf9288 x86/sgx: Fix the return type of sgx_init() Backport for SGX Foundations support Fixes: e7e05452 ("x86/sgx: Initialize metadata for Enclave Page Cache (EPC) sections") Signed-off-by:Sami Tolvanen <samitolvanen@google.com> Signed-off-by:
Borislav Petkov <bp@suse.de> Reviewed-by:
Darren Kenny <darren.kenny@oracle.com> Reviewed-by:
Jarkko Sakkinen <jarkko@kernel.org> Link: https://lkml.kernel.org/r/20210113232311.277302-1-samitolvanen@google.com Signed-off-by: Fan Du <fan.du@intel.com> #openEuler_contributor Signed-off-by:
Laibin Qiu <qiulaibin@huawei.com> Reviewed-by:
Bamvor Zhang <bamvor.zhang@suse.com> Signed-off-by:
Zheng Zengkai <zhengzengkai@huawei.com>
Loading
Please sign in to comment