qcacld-3.0: 4.8 Kernel Migration - Remove VM_FAULT_MINOR

VM_FAULT_MINOR was finally removed in the 4.7 Linux Kernel. According
to the below documentation, we should be returning a bitmask. In this
case, we are not handling the fault and should return 0, which
happens to be what VM_FAULT_MINOR was defined as anyway.

"The vma's ->fault is responsible for returning a bitmask of
 VM_FAULT_xxx flags that give details about how the
 fault was handled.

Replace the reference to VM_FAULT_MINOR with 0.

Change-Id: Id1703a61b8798f307630ccdbb7b928799490413e
CRs-Fixed: 1078189
(cherry picked from commit 09dd4f4dfff7320a2312245f6952f56e5f322c6b)
This commit is contained in:
Dustin Brown 2016-10-14 12:43:24 -07:00 • committed by qcabuildsw
commit c70038b2de

View file

@ -852,8 +852,9 @@ int pktlog_fault(struct vm_area_struct *vma, struct vm_fault *vmf)
get_page(virt_to_page((void *)address));
vmf->page = virt_to_page((void *)address);
return VM_FAULT_MINOR;
return 0;
}
static struct vm_operations_struct pktlog_vmops = {
open: pktlog_vopen,
close:pktlog_vclose,