ANDROID: Fix sparse warning in wp_page_copy caused by SPF patchset

SPF patchset introduced a sparse warning caused by type mismatch in
wp_page_copy. Fix the variable type.

Fixes: 'FROMLIST: mm: prepare for FAULT_FLAG_SPECULATIVE'

Bug: 161210518
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: Id0db15db82bce0808d58f27bd72a1db0f63c72b7
This commit is contained in:
Suren Baghdasaryan
2021-01-25 19:58:08 -08:00
parent aa29f32988
commit b55d8223ca

View File

@@ -3006,7 +3006,7 @@ static vm_fault_t wp_page_copy(struct vm_fault *vmf)
pte_t entry;
int page_copied = 0;
struct mmu_notifier_range range;
int ret = VM_FAULT_OOM;
vm_fault_t ret = VM_FAULT_OOM;
if (unlikely(anon_vma_prepare(vma)))
goto out;