tree: https://gitee.com/openeuler/kernel.git OLK-5.10 head: 737efe73dd2ca6ee503ba26e6fc3ee41bd8cf633 commit: 4fca036fe49fc7b29c8c2fb4e67a5dc64041507c [13084/30000] x86/sgx: Introduce virtual EPC for use by KVM guests config: x86_64-randconfig-122-20240331 (https://download.01.org/0day-ci/archive/20240331/202403312308.poZqKVE9-lkp@i...) compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240331/202403312308.poZqKVE9-lkp@i...)
If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot lkp@intel.com | Closes: https://lore.kernel.org/oe-kbuild-all/202403312308.poZqKVE9-lkp@intel.com/
sparse warnings: (new ones prefixed by >>) arch/x86/kernel/cpu/sgx/virt.c:59:13: sparse: sparse: incorrect type in assignment (different base types) @@ expected int [assigned] ret @@ got restricted vm_fault_t @@ arch/x86/kernel/cpu/sgx/virt.c:59:13: sparse: expected int [assigned] ret arch/x86/kernel/cpu/sgx/virt.c:59:13: sparse: got restricted vm_fault_t arch/x86/kernel/cpu/sgx/virt.c:60:20: sparse: sparse: restricted vm_fault_t degrades to integer
arch/x86/kernel/cpu/sgx/virt.c:95:35: sparse: sparse: symbol 'sgx_vepc_vm_ops' was not declared. Should it be static?
vim +/sgx_vepc_vm_ops +95 arch/x86/kernel/cpu/sgx/virt.c
94
95 const struct vm_operations_struct sgx_vepc_vm_ops = {
96 .fault = sgx_vepc_fault, 97 }; 98