--- a/mm/gup.c~mm-gup-remove-set-but-unused-local-variable-major +++ a/mm/gup.c @@ -1276,7 +1276,7 @@ int fixup_user_fault(struct mm_struct *m bool *unlocked) { struct vm_area_struct *vma; - vm_fault_t ret, major = 0; + vm_fault_t ret; address = untagged_addr(address); @@ -1296,7 +1296,6 @@ retry: return -EINTR; ret = handle_mm_fault(vma, address, fault_flags, NULL); - major |= ret & VM_FAULT_MAJOR; if (ret & VM_FAULT_ERROR) { int err = vm_fault_to_errno(ret, 0);