projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f33a08
)
mm/gup.c: make unnecessarily global vma_permits_fault() static
author
Tobias Klauser
<
[email protected]
>
Tue, 13 Dec 2016 00:41:53 +0000
(16:41 -0800)
committer
Linus Torvalds
<
[email protected]
>
Tue, 13 Dec 2016 02:55:07 +0000
(18:55 -0800)
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]
>
mm/gup.c
patch
|
blob
|
history
diff --git
a/mm/gup.c
b/mm/gup.c
index ec4f82704b6f368bf4e128d3feb7356a8c482022..fc04f1c3cf08b09b3c6c0133ddb745eb172afcfb 100644
(file)
--- 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);