Commit 10534d17 authored by William Lee Irwin III's avatar William Lee Irwin III Committed by Linus Torvalds

[PATCH] sparc32: turbosparc flush warnings

FLUSH_BEGIN() is a nop at the moment, so the mm variable for its argument
trips a warning.  Pass vma->vm_mm directly instead.
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 9d294bd8
...@@ -1697,9 +1697,7 @@ static void turbosparc_flush_cache_mm(struct mm_struct *mm) ...@@ -1697,9 +1697,7 @@ static void turbosparc_flush_cache_mm(struct mm_struct *mm)
static void turbosparc_flush_cache_range(struct vm_area_struct *vma, unsigned long start, unsigned long end) static void turbosparc_flush_cache_range(struct vm_area_struct *vma, unsigned long start, unsigned long end)
{ {
struct mm_struct *mm = vma->vm_mm; FLUSH_BEGIN(vma->vm_mm)
FLUSH_BEGIN(mm)
flush_user_windows(); flush_user_windows();
turbosparc_idflash_clear(); turbosparc_idflash_clear();
FLUSH_END FLUSH_END
...@@ -1750,9 +1748,7 @@ static void turbosparc_flush_tlb_mm(struct mm_struct *mm) ...@@ -1750,9 +1748,7 @@ static void turbosparc_flush_tlb_mm(struct mm_struct *mm)
static void turbosparc_flush_tlb_range(struct vm_area_struct *vma, unsigned long start, unsigned long end) static void turbosparc_flush_tlb_range(struct vm_area_struct *vma, unsigned long start, unsigned long end)
{ {
struct mm_struct *mm = vma->vm_mm; FLUSH_BEGIN(vma->vm_mm)
FLUSH_BEGIN(mm)
srmmu_flush_whole_tlb(); srmmu_flush_whole_tlb();
FLUSH_END FLUSH_END
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment