* [next:master 183/372] mm/gup.c:531:53: sparse: implicit cast to nocast type
@ 2014-05-06 11:39 kbuild test robot
0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2014-05-06 11:39 UTC (permalink / raw)
To: Kirill A. Shutemov
Cc: Linux Memory Management List, Andrew Morton, kbuild-all
tree: git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 7df9f89cbcffc4f7bd8feea287af7b8d32b9ed96
commit: b28f3d3d605378f4d5b4b037033ebfeee74be1c2 [183/372] mm: move get_user_pages()-related code to separate file
reproduce: make C=1 CF=-D__CHECK_ENDIAN__
sparse warnings: (new ones prefixed by >>)
>> mm/gup.c:531:53: sparse: implicit cast to nocast type
vim +531 mm/gup.c
515 * such architectures, gup() will not be enough to make a subsequent access
516 * succeed.
517 *
518 * This should be called with the mm_sem held for read.
519 */
520 int fixup_user_fault(struct task_struct *tsk, struct mm_struct *mm,
521 unsigned long address, unsigned int fault_flags)
522 {
523 struct vm_area_struct *vma;
524 vm_flags_t vm_flags;
525 int ret;
526
527 vma = find_extend_vma(mm, address);
528 if (!vma || address < vma->vm_start)
529 return -EFAULT;
530
> 531 vm_flags = (fault_flags & FAULT_FLAG_WRITE) ? VM_WRITE : VM_READ;
532 if (!(vm_flags & vma->vm_flags))
533 return -EFAULT;
534
535 ret = handle_mm_fault(mm, vma, address, fault_flags);
536 if (ret & VM_FAULT_ERROR) {
537 if (ret & VM_FAULT_OOM)
538 return -ENOMEM;
539 if (ret & (VM_FAULT_HWPOISON | VM_FAULT_HWPOISON_LARGE))
---
0-DAY kernel build testing backend Open Source Technology Center
http://lists.01.org/mailman/listinfo/kbuild Intel Corporation
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-05-06 11:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-06 11:39 [next:master 183/372] mm/gup.c:531:53: sparse: implicit cast to nocast type kbuild test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox