mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
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/[email protected] Signed-off-by: Tobias Klauser <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
5f33a0803b
commit
771ab4302c
1 changed files with 2 additions and 1 deletions
3
mm/gup.c
3
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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue