mm: Change vm_is_stack_for_task() to vm_is_stack_for_current()
[linux-2.6-block.git] / mm / util.c
index 662cddf914af2048ab6c9c674f59d37a7aceba69..c174e8921995bb1dab8264cb74122fc8c7f38009 100644 (file)
--- a/mm/util.c
+++ b/mm/util.c
@@ -230,8 +230,10 @@ void __vma_link_list(struct mm_struct *mm, struct vm_area_struct *vma,
 }
 
 /* Check if the vma is being used as a stack by this task */
-int vma_is_stack_for_task(struct vm_area_struct *vma, struct task_struct *t)
+int vma_is_stack_for_current(struct vm_area_struct *vma)
 {
+       struct task_struct * __maybe_unused t = current;
+
        return (vma->vm_start <= KSTK_ESP(t) && vma->vm_end >= KSTK_ESP(t));
 }