Skip to content
This repository was archived by the owner on Jun 2, 2025. It is now read-only.

Commit 10a2f21

Browse files
authored
Merge pull request #86 from iyernaveenr/sgx_vma
sgx_vma: return unsigned int from sgx_vma_fault
2 parents 0b76a7c + 24011ec commit 10a2f21

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

sgx_vma.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,11 @@ static void sgx_vma_close(struct vm_area_struct *vma)
9696
kref_put(&encl->refcount, sgx_encl_release);
9797
}
9898

99-
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,11,0))
99+
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,1,0))
100+
static unsigned int sgx_vma_fault(struct vm_fault *vmf)
101+
{
102+
struct vm_area_struct *vma = vmf->vma;
103+
#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(4,11,0))
100104
static int sgx_vma_fault(struct vm_fault *vmf)
101105
{
102106
struct vm_area_struct *vma = vmf->vma;

0 commit comments

Comments
 (0)