x86/sgx: Fix the return type of sgx_init()
authorSami Tolvanen <samitolvanen@google.com>
Wed, 13 Jan 2021 23:23:11 +0000 (15:23 -0800)
committerBorislav Petkov <bp@suse.de>
Thu, 21 Jan 2021 13:04:06 +0000 (14:04 +0100)
commit31bf92881714fe9962d43d097b5114a9b4ad0a12
tree198a2095bb4efd9d3af4b621aca90acecbfcee86
parent7c53f6b671f4aba70ff15e1b05148b10d58c2837
x86/sgx: Fix the return type of sgx_init()

device_initcall() expects a function of type initcall_t, which returns
an integer. Change the signature of sgx_init() to match.

Fixes: e7e0545299d8c ("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
arch/x86/kernel/cpu/sgx/main.c