From: Tobias Klauser Date: Tue, 13 Dec 2016 00:41:53 +0000 (-0800) Subject: mm/gup.c: make unnecessarily global vma_permits_fault() static X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=771ab4302c592d1de9e6b73f58979e9e5c424f4c;p=linux-beck.git mm/gup.c: make unnecessarily global vma_permits_fault() static Make vma_permits_fault() static as it is only used in mm/gup.c This fixes a sparse warning. Link: http://lkml.kernel.org/r/20161017122353.31598-1-tklauser@distanz.ch Signed-off-by: Tobias Klauser Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/gup.c b/mm/gup.c index ec4f82704b6f..fc04f1c3cf08 100644 --- a/mm/gup.c +++ b/mm/gup.c @@ -632,7 +632,8 @@ next_page: return i; } -bool vma_permits_fault(struct vm_area_struct *vma, unsigned int fault_flags) +static bool vma_permits_fault(struct vm_area_struct *vma, + unsigned int fault_flags) { bool write = !!(fault_flags & FAULT_FLAG_WRITE); bool foreign = !!(fault_flags & FAULT_FLAG_REMOTE);