* [PATCH] mm/gup: Make unnecessarily global vma_permits_fault() static
@ 2016-10-17 12:23 Tobias Klauser
0 siblings, 0 replies; only message in thread
From: Tobias Klauser @ 2016-10-17 12:23 UTC (permalink / raw)
To: Andrew Morton, Dave Hansen; +Cc: linux-mm
Make vma_permits_fault() static as it is only used in mm/gup.c
This fixes a sparse warning.
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
---
mm/gup.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/mm/gup.c b/mm/gup.c
index 96b2b2fd0fbd..a52766e1afe8 100644
--- a/mm/gup.c
+++ b/mm/gup.c
@@ -623,7 +623,8 @@ long __get_user_pages(struct task_struct *tsk, struct mm_struct *mm,
}
EXPORT_SYMBOL(__get_user_pages);
-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);
--
2.9.0
--
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:[~2016-10-17 12:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-17 12:23 [PATCH] mm/gup: Make unnecessarily global vma_permits_fault() static Tobias Klauser
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox