Messages in this thread Patch in this message | | | Date | Wed, 4 Aug 2004 21:38:17 -0700 | From | William Lee Irwin III <> | Subject | [sparc32] [1/13] turbosparc flush warnings |
| |
On Mon, Aug 02, 2004 at 01:55:27AM -0700, Andrew Morton wrote: > ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.8-rc2/2.6.8-rc2-mm2/
viro needs to do sparse work on sparc32, so this series of patches fixes up the compile for him.
FLUSH_BEGIN() is a nop at the moment, so the mm variable for its argument trips a warning. Pass vma->vm_mm directly instead.
Index: mm2-2.6.8-rc2/arch/sparc/mm/srmmu.c =================================================================== --- mm2-2.6.8-rc2.orig/arch/sparc/mm/srmmu.c +++ mm2-2.6.8-rc2/arch/sparc/mm/srmmu.c @@ -1697,9 +1697,7 @@ 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(mm) + FLUSH_BEGIN(vma->vm_mm) flush_user_windows(); turbosparc_idflash_clear(); FLUSH_END @@ -1750,9 +1748,7 @@ 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(mm) + FLUSH_BEGIN(vma->vm_mm) srmmu_flush_whole_tlb(); FLUSH_END } - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |